Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested PHP Solutions: 101 - 125 of 6735
 
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...
Hi, I save tuples in the database using a php script, and to save the timestamp I use the time() function. Another page I write in php displays all the information added by the first scrip...
Hello Would someone tell me an easy way to loop through files in a folder. Ideally I would like to only see files of one kind (.pdf) so that I could place a link to them on a web page. I...
Hi, I have the need to make a folder writeable to all (Chmod 777) as the user of my PHP/MySQLapplication needs to be able to upload pictures. I have read that I need to make the folder w...
I need to convert milliseconds to a regular time (mm:ss), no AM or PM because these are durations of songs. I have a code I was using with Microsoft Access to do this but now I need someth...
Hi How do I detect the current directory I am in and also the file which is being viewed?   I would like to use some sort of function that will enable me to display certain headers or grap...
$query = "SELECT COUNT(*) FROM grouplists WHERE grouplists.gid='$groupid'"; $result2 = mysql_query($query); $groupcounter = mysql_fetch_array($result2); This would return an array, i dont...
Is it possible to have a 4 level combo box dynamicaly populated from a mysql database using php and AJAX. Would be great to have a code for that but I'm not asking that much, a good tutoria...
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...
Hello all, I am rather unskilled with PHP and trying to make a form which does two things, first it collects data from the user and sends an email with that information to an address, and s...
hi i am new to Php.  is there any PHP GUI editor available in market for Php. like droping the controls and align the controls etc. because now i am doing only through the html code. ...
I want to display to the the user this date will expire in  1 day 2 hours 30 min and 45 seconds. or what ever the time is.. Here is the script that I have currently, There may be a better w...
I am tearing hair out.... I wish to use a php file to display an image.  Now thats a pretty simple exercise I understand - using the php file as the src element of a img call. Like: <img sr...
How do I use cURL to simulate pressing the Submit button on a form? The form has my username and password hardcoded into it. So the cURL script does not need to send that data; it just need...
Hello Experts, I setup an online form for our university to accept proposals for work. The output in the email that is sent is not up to the standards the committee wants to see. I looked i...
What is the syntax for a GET parameter in a URL for a parameter that is a checkbox where i want it to be checked. when it's a post, the form tag is: <input name="P1" type="checkbox"  value...
Please help me to cut the string like below $CutMe="Hello world, I like chickenOnMyGrill"; Take the first 25 character then display allow those WORDS, if the last word is not complete then...
Hi all, Im using cURL to log into a website and then store a session cookie. Is there a way I can access that session cookie from another PHP script (in the same dir etc.) Ive tried: $...
Hi Experts Using the PHPMailer code below, I got the email with messages but not the attachment. Any suggestions? Thanks <?php require("class.phpmailer.php"); // Instantiate your new ...
I have a simple mysql database with a small table whose primary key is an integer that auto_increments. Upon insert of a new record, I need to get the new primary key that was generated fo...
I need to remap an array.. and I have specific array keys I need to rename... how do I change the name of a key in an array?
Hi, I'm having trouble trying to merge two SimpleXML objects (user preference settings) in PHP.  It should be simple enough - the objects have the same root element, and I simply want to me...
I have a PHP script that processes a long data string.  The string is read into my script via file_get_contents() from a Word, Powerpoint, Excel, flat text file, etc.  So some of the string is...
I have this address on output: "1234   Main Street "; I need a function to clean up the address and strip any double spaces in the middle, and any spaces at the end.
I'm trying to convert a Perl function to PHP, I get a Fatal error: Unsupported operand types on line that starts with $rank. I think that is because $total is actually an array but not sure...