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...
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_...
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 ...
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...
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...
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 ...
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...
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...
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...
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...
After I install phpmyadmin finish it warn me
Cannot load mcrypt extension. Please check your PHP configuration.
How can I fix the problem
$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;
}
...
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...
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...
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...
I would like to know how I can get a javascript variable into a php variable. I have one page with the javascript variable. The user will click a button then a new page will load and I need so...
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 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 a main page which at the moment has links to all of my sites.
I want to change this so it has a login box with a username and password.
I would like it so that when to user enters t...
I am using php proxy. I want to add "quick links", so basically you click on a google link and it goes to that in the proxy. I cant figure out how to do it though.
This is the code in ques...
Hi,
I would like to use PHP to transfer files from remote servers onto my server. I have been informed that wget is the best method to use, the only problem is, I don't know how to use it! :)...
If i have a string... for ex. "http://www.cnn.com/file/uploads/press.doc"
i want to convert this string into "press.doc"
any ideas??
thanks
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...
Hi,
I have a PHP login scripts that takes the "username" and "password" and stores it in a session.
Once verified as a valid user against a mySQL database, the user is redirected to a me...
Hi,
I want to get the image with in javascript. This is my code,
<script language = javascript >
function imagewidth()
{
var img = "tick.gif";
var img1 = image.width;
alert(img1)...