Discussion and technical support for using and deploying PHP based websites.
Do you have some great PHP topics that you'd like to write about (and get paid for)? We're looking for high quality PHP articles to publish on PHPBuilder.com. If you're interested, send me a note at sclark at jupitermedia.com with your proposed article!
Frequently Asked Questions
(If you have comments or suggestion for this FAQ, post them in this thread.)
1. What is PHP?
2. Is there online documentation and tutorials that can help me learn PHP?
3. Can I run PHP locally on my PC?
4. How do I make my code color-coded and indented in my...
this thread. - MOD]
How to upload images using PHP is one of the most frequently asked questions in this PHP forum so I am going to use this post to look at the basics.
Uploading images can be broken down into the three following steps which will be looked at in turn:
An HTML form with a...
what is basic syntax of PHP
Basic syntax of PHP and code for validation form
A friend of mine mentioned that a colleague of his made good side money providing hosting to local small businesses using drupal. He basically rented a VPS and put multiple sites on it. This got my interest and I've been trying to research how to go about it.
I was hoping someone familiar with...
Looking for a way to do dynamic dns.. but where I have an html page with my list of computers and it updates that page with the new IP's.. either from router or a computer. Is php a good way to do this? If not what would be better? and some guidance as to how I can achieve this would be...
I'm new to this forum and to the web development. I have an assignment that I'm having a hard time coming up with answers. If anyone can help I'd be greatly appreciate. Below are only 3 problems that I couldn't come up with answers. I tryed to answere last on and got helf way done...
I would like to calculate the total distance of driving beetween multiple locations (loop), including the distance (starting point (garage) - first location sarting point) and (last location finishig point - finishing point (garage)). Example: (Garage + D1) + (D1 + D2) + (D2 + E1) + (E1 + E2) + E2...
I am building a plagiarsm checking tool for my company but have problems on calculating the uniqueness factor.
Calculation works by searching the snippet into Google using GSERP. The script then checks if there where results then snippet is not unique.
This is my code;
. . .
I have a mobile redirect that works and points to a template mobile site. Now I need to bypass that and have the option to view the "Full Site" through a link on the mobile site. I've read the best way to do this is by setting a cookie, and found a site that gives example files to do this.
With this cone above, I got this error.
Can anyone help me?
$longitude = '-47.894317';
$latitude = '-15,7366566';
$timestamp = '1367349998375';
$mysql_id = mysql_connect('127.0.0.1', 'root', '') or die(mysql_error());
I am trying to fetch the data from a particular web page using Php curl but unable to do it.Below is my code.It would be great if anyone can help me out in this.
error_reporting(E_ALL ^ E_NOTICE);
Is it possible for PHP to be able to convert a pdf file into html?
Objective: A countdown box, with a Start button, that any user on the webpage can start. The countdown should then appear so all users are able to see countdown, when countdown reaches 0, it should display message ex. "Lets Drink, Cheers" for 5-10 seconds, then the start button should...
Simple way to find difference between two dates.
You will get php/mysql/ajax/jqery tips and tricks from the site.
I can't send emails through a PHP script using mail(); It's really more of a server issue as from close inspection the PHP code is fine.
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!
Hi, i am an asp.net developer but recently had to switch to php to design a website for a friend, i am currently trying out the file upload but keep on getting errors.
error: Undefined index
I've tried soo many scripts online but none work, so could you please here me out.
hello, so basically what I am trying to do is add an image and file upload field to an existing form.
i have a database
Field Type Collation Attributes Null Default Extra Action
id int(11) No auto_increment
first varchar(50) latin1_general_ci No ...
I'm sure this has been discussed many many times, but I'm stuck with no idea what to do. I've looked at using jquery to put the results of my php function into a div with no luck - been staring at it for two days now and been through countless forums.
<form method="post" class="ui-buttonset"...
So I'm not entirely sure how this all works and I've spent hours upon hours trying to research and figure this out, but now i'm just stuck.. here is a generic version of my code:
$serverName = "dbname";
$username = "dbusername";
I was just wondering if anyone knows about osclass in here
My issue with it is, I added a cars attribute plugin and all works ok but I can't get a attribute to return any search results
I am testing it with the colour attribute and I type in a colour that I know is the database but...
In php Need a logic to form an array to store the carry over balance in a array
sum of 4522 and 6788 is 11310, i have to store 111 its carry over balance in an arrray in php.
a-1, a-1, a-1 like that..
can any one give a solution for this...
I have this code, but it says it is not able to open it:
$myFile = "/home/user/Desktop/webapp.log";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "Stuff";
I am using this website's download script for my download page.
I use the proper format, but then it tells me that the file does not exist. I know the file exists. It is in the same directory, and it is a .php file. Is there any reason that it is not able...
I have a bit of php code on index.php of my main site, here... http://dominionroofing.com/
This code redirects visitors on mobile browsers to my mobile version of the site, here... http://dominionroofing.com/m/
On the mobile site, the visitor has the option to view the full site,...
So I need to be able to use the data that was sent with ajax to a PHP page and create an image tag with it as the src value.
The thing is that data is not being sent as a result of an input field or form submission. Here is the jquery I'm using the grab the data I need and send it...
There are currently 332 users browsing this forum. (2 members & 330 guests)
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.