473,574 Members | 2,233 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
2
2,532
thread by: Lampa Dario | last post Oct 5 '05 by: Lampa Dario
Hi, this morning I have seen that the script at pagina: http://www.teachingonline.it/script/statistiche2.php wasn't working properly With this code I estract the day of the week in numeric format $data=$record; // year-month-day date format $anno=substr($data,1,4); $mese=substr($data,6,2); $giorno=substr($data,8,2);
2
1,672
thread by: Kevin Cloutier | last post Oct 5 '05 by: Kevin Cloutier
Hi, I'm am brand new to PHP and I'm getting up to speed (slowly) running through some example tutorials. But I am having trouble getting a For Loop to work. It is supposed to return the microscond from the server each time it loops, but it is returning the same second each time through. I'm assuming this is because "function make_seed()"...
4
6,653
thread by: Jon Maz | last post Oct 5 '05 by: Jon Maz
Hi All, I'm getting to grips with PHP and Apache (on Windows for current development, production site will be on Linux), and have a simple (I hope!) request. When you change the httpd.conf file and restart Apache, if you have made an error you simply get a popup saying that there has been an error, but giving no useful information about...
0
1,189
thread by: frizzle | last post Oct 5 '05 by: frizzle
Hi group! I have a code to process text, to make it url/folder fiendly. (code below) The only problem i have, is that the $foldername = ereg_replace(" ]","",$foldername); part deletes all spaces, but as you can see, i want spaces to become underscores, which are no ALNUM-chars. How can i solve this?
1
1,509
thread by: bboldi | last post Oct 5 '05 by: Erwin Moller
I wrote a recursive algorythm to scan a comlete directory structure (2-3 levels deep) with few hundred pictures in it (i just need to store filenames in a cache file). it's taking forewer :(. i used readdir function. Any idea to a faster solution? ps.: sorry for my English.
2
1,272
thread by: meltedown | last post Oct 5 '05 by: Gordon Burditt
In this statement: "INSERT INTO logins(accountid,userid,login,jobdesc) values($preaccountid,$userid,NOW(),'$jobdesc')") How do I add an hour to NOW() ? I tried NOW+60*60, but it adds 37 minutes, which makes no sense at all.
2
1,476
thread by: Vic Spainhower | last post Oct 5 '05 by: Harris
Hello, Can someone point me to a tutorial or book on how to create an updateable grid (PHP & MySL). I have not been able to come up with a thing from my searchings. Thanks, Vic
1
2,760
thread by: PaulK | last post Oct 5 '05 by: Ramon
How do I pass POST data to php-cgi.exe so that in the PHP script I can work with that data using $_POST?
7
1,611
thread by: meltedown | last post Oct 4 '05 by: Oli Filth
Why doesn't this return anything ? SELECT DATE_SUB('FROM_DAYS(TO_DAYS(2005-09-28 18:04:19))', INTERVAL 6 DAY)
2
2,231
thread by: windandwaves | last post Oct 4 '05 by: Geoff Berrow
Hi Gurus What is the most reliable and efficient way to find out if the user has cookies enabled? I know this is a really stupid question, but I can't seem to work it out.
0
1,395
thread by: windandwaves | last post Oct 4 '05 by: windandwaves
Hi There Can some Flash guru tell me if this Flash code is OK to set / retrieve a cookie for exchange with PHP? stop(); var ses:string; //create the local Shared Object myLocalSO = sharedobject.getLocal("hookie" );
2
1,622
thread by: windandwaves | last post Oct 4 '05 by: windandwaves
Hi Folk I am new to flash (just so you don't think I am completely stupid) I have a flash file that I want to execute a short action script and then load a PHP file in the its own window, while posting some of the variables to this new script: e.g. A
2
2,400
thread by: spid3r | last post Oct 4 '05 by: spid3r
hello i sniffed a program that make aregisteration account through the program itself i need to make asimple form in php/html that make registeration through web instead of the application here's the result of sniffing PE,™؛ZPE,™؛POST /register.php HTTP/1.1 Accept: */* Content-Type: application/x-www-form-urlencoded Host:...
6
2,109
thread by: Marcus | last post Oct 4 '05 by: Gordon Burditt
Hello all, This is baffling me. I am starting a session and I know it is setting a cookie on my computer - I called getallheaders() and see that it is setting the cookie, and it is also accessible in $_COOKIE. I cleared all cookies in my Cookies folder before starting the session, and everytime I run the script it does not create a cookie...
13
1,499
thread by: Maverick | last post Oct 4 '05 by: Malcolm Dew-Jones
Don't you think by now, being the 5+ version they would have fixed the Header() to have a target, like " _top " and so on... ~ Somebody's Not Thinking ~
1
1,762
thread by: garimapuri | last post Oct 4 '05 by: Jerry Stuckle
hi ihad an array in php and iwant to insert its value in database the coding is: <?php $nv_pairs = explode('&',$query_string); $array; list ($name, $value) = explode ('=',$nv_pairs); $i = 0; foreach($nv_pairs as $array) {
4
2,705
thread by: Japhy | last post Oct 4 '05 by: Japhy
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display .="<li>".$wohdate."</li>" ; $TemplateText = Replace($TemplateText,"@$wohdisplayndx@",$woh_display);
3
2,173
thread by: Faree | last post Oct 4 '05 by: fipaj1992
Hi, I am a PHP Developer.can any one help me on image upload and display of that image.what i want is uploading an image to a directory ,displaying of that image as a thumbnail.when i click on that image the image should be diplayed in another page. I wrote code for image uploading and as well as display code.but i couldn't write...
0
1,152
thread by: Wayne | last post Oct 4 '05 by: Wayne
Hey all, I'm looking for APC compiled for PHP 5.0.5. It's not included the PECL extension bundle on php.net or anywhere else. There is a PHP 5.1 version but I don't (yet) know if that will work (I'm assuming not). Does anyone have a Win32 compiled version of APC for PHP 5.0.5? Thanks,
2
3,937
thread by: srussell | last post Oct 4 '05 by: srussell
I have the following code: <?php print "1. " . $_GET . "-2. " . $_GET; ?> The file is called test_globals.php. On most servers I can type:
5
1,237
thread by: damezumari | last post Oct 4 '05 by: damezumari
I use PHP 4.4.0 and MySQL 4.0.26 and Mozilla Firefox. This code: $dummy = strtotime("-13 hour"); $csql = "update citc_weather set imagepath = '$p_image', text = '$p_text', lastupdated = $dummy where id = 1";
3
1,696
thread by: Jerry Sievers | last post Oct 4 '05 by: Mustafa Yalcin Acikyildiz
Hello. I have session files stored in a special tmp directory specific to a virtual host instance. The Max_lifetime is long 86400 (1 day) which I don't suppose is the problem. Anyway the sessions do indeed expire and "most" of the old session files disappear as expected. Not all however. I am finding several old session files with...
2
2,678
thread by: marco.avidano | last post Oct 4 '05 by: JDS
I'm asking: for the PHP parser, it's better to create one large file with all the code inside or a lot of small files? Can a large file slow down the execution of the script?
12
6,779
thread by: Will Ferrer | last post Oct 4 '05 by: Will Ferrer
I am looking to get started using PHP and I am looking for a nice GUI to use. Basically I have been programing in Macromedia Director, and Macromedia Flash for years now, and I have gotten spoiled by having auto code formating, basic error checking, and a nice library of syntax with help featured attached to them for when I am trying to hunt...
1
1,882
thread by: frizzle | last post Oct 4 '05 by: Marcin Dobrucki
Hi group, Why won't $new_var be unset in the following function? Am i missing out something? Greetings Frizzle. *************************************

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.