Visit Experts Exchange from your mobile device to search, ask, and monitor your questions. Never lose touch again.

Preview From Your Desktop
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested PHP Solutions: 1 - 25 of 6421
 
Im want to verify the domain name where my scripts are running what I started with is $_SERVER['HTTP_HOST'] the problem with this is that the result could be www.domain.com or domain...
Hi, What I'm trying to do is this. Have the user select an option from a form and depending on the option include a file. here is my code <FORM action="<?php echo $_SERVER['PHP_...
I have a page in PHP that accesses an XMLRPC Server.  However, sometimes it does not display the response from the server, and sometimes it does...but it ALWAYS ALWAYS reaches the server becau...
Hi there, I'm testing on passing parameter via url with the three php files as shown below: 1. index.php 2. pg2.php 3. pg3.php The index.php will allow user to input something and the...
Is there any way I can retrieve the server's root file path from within my PHP 5.0 scripts?  It seems a bit odd such a feature would not be available for the language.  Im using Windows 2003 S...
Somthing like this... <?php $string = fopen("textfile.txt","r"); echo $string; ?> I dont want to use the "include" function or anything like that. I want to load the text file into th...
Can someone tell me what is the PHP equivalent of the ASP's CInt() function? I am trying to convert this piece of code to PHP for k=1 to 4    if CInt(userChoice) = k Then choiceChecked ...
Is there anyway to check if a number is a valid U.S. cellphone number? it will be in this format: 0000000000 (10 digits, area code+number) and the user will have selected their service ...
ive got a MSSQL date / time format like: Oct 24 2006 12:00AM im trying to change it so it displays like: 24/Oct/2006 using the mktime() but im getting: Warning: mktime() expects pa...
Does PHP have GetYear, GetMonth, &  GetDay Functions? For example: $Date = 2003-3-3; $Year = GetYear($Date); // yields 2003 and so on . . .
Hi, Strange problem here. I have installed (for months) on my local server php, mysql & phpMyAdmin using AppServ ver 2.4. Now I've also used the php mailer in the past to send out emails. In...
Hi. I saw PHPMailer recommened on this site so I'm now trying to use it. However, I'm getting the above error message. All I've done so far is take the example code and changed it to suit my I...
I have an array storing "10", "11", "12", "13", "14" "20", "21", "22", "23", "24" "30", "31", "32", "33", "33" Obviously, this is a 2D array, so array[0][0] is "10", array[0][1] is "11"....
Hi, i would like to know how to code in php to strip proxy list only from a textarea ex. in textarea contain 80.249.72.180:80          elite proxy          Algeria (Algiers) 80.24...
I need an upload script that will upload multiple files at once.  I need to set the file names to be the same everytime.  So it renames the files after uploading.  I need to upload 5-10 files ...
Hello Experts: Is there any sort of API code to check Online/Offine Status for  Facebook? Please post code if possible? Regards, CS
$i=0; $datearray; $array2; while($row=mysql_fetch_array($result)) {      $datearray[i]=$row['setnum'];      //echo $datearray[i];      $array2[i]=$row['date'];      //echo $array2[i];      $i=$i+1; } ...
I am doing some forward thinking on a project i'm working on. With the help of some gurus here I got the attached code working perfectly.  I am anticipating that my boss will want to be abl...
Hello, I would like a php function to remove all "special characters" but leave all letters. The problem is that I need to support European languages, many which use letters beyond the 2...
Hello Expert: When I open my web browser and enter in http://local/phpMyAdmin/index.php.  I get the authentication dialog box asking for my user name and passord.  I type in root and then t...
Hi experts, I have a problem with datetime format in PHP Example :  I have a string :  "2007-10-06 20:45:00" (a datetime string) , and How to that string convert to "20:45 06-10" ? ...
Hi X-perts, How to assign one smarty variable to another in PHP? here is a simple code: <{php}> $this->assign('test', 'this is my string'); //works fine and creates a smarty variable...
i have folder full of images. is there any way using php to delete the file(s) example i have 4 files (images) called D001_image1.jpg D001_image2.jpg D002_image1.jpg D003_image...
Hi, I am trying to convert a javascript function to PHP for a project I am working on. The javascript function uses ParseInt to convert a hex string, but Im not sure of it purpose. Is there...
I work on a php script that might be used by other people too. I don't know where they will put it on their server and don't know from which file it might get included. So I wanted to use some...