Re: [PHP] Australian *nix Hosts?

2002-04-19 Thread Justin French
Hi, I stopped searching in Australia and looked over to the US, and am pretty happy with experthost.com (2GB/50meg/20POP starting at US$15/m)... since signing up, I changed over to a reseller account to run multiple domains for clients, and am now paying around US$6.25/m per domain. I know that

Re: [PHP] $PHP_SELF question

2002-04-19 Thread Justin French
Spend a bit of time reading up on predefined variables (like $PHP_SELF) in the manual: http://www.php.net/manual/fi/reserved.variables.php I believe you're after SCRIPT_NAME, but it's worth familiarising yourself with them all for future reference. Justin French Creative D

Re: [PHP] header redirection

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 05:07, Norman Zhang wrote: > Hi, > > I use header(location: ...) for redirection to another page. But I also > want to include , and tags in the other page. Is there > a way to this? Because php complains that the header already been sent. Show us your code. -- Jason

Re: [PHP] some problems about gd in php

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 09:36, zhaoxd wrote: > Yeah,I have already restarted web server and there was no error in > compiling during configure/make/install .Using gd,I get the information > that concern about GD Support ,GD version,WBMP Support ,etc.as follow: > GD Support

Re: [PHP] redirect browser

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 09:26, Joe wrote: > = > > > Warning: Cannot add header information - headers already sent > by (output started at c:\html\html\check.php:4) in > c:\html\html\check.php on line 42 > > > I had no idea about th

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 09:41, Andre Dubuc wrote: > Is there a way I can verify that (a) globals are off and (b) $_SESSION or > $_POST are on? This probably what's happening -- I can't access the arrays > at all -- so, I think that might be where the problem lies. The $vars still > work though

Re: [PHP] Getting All Variables?

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 07:23, Devin Atencio wrote: > Is there an easy way in PHP to have it display to screen all the variables > that > it has in memory? So i can see what variables there is and what they are > set to? print_r($GLOBALS); -- Jason Wong -> Gremlins Associates -> www.gremlins.

[PHP] About socket function

2002-04-19 Thread KeithAY
Hi all, I got a problem when I using socket function in PHP. After I use fsockopen() to open socket, I send a msg using fwrite() and receive a msg using fread(), this work fine. However, I use fwrite() again to send a msg and use fread() to receive a response msg, it failed. The sequence of funct

Re: [PHP] Attachments

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 12:29, Jason Soza wrote: > Using both Perl and PHP to send mail with attachments from forms, the > attachments get truncated. Since both Perl scripts and PHP scripts do this, > I'm ruling out coding error, and since my mailserver has been receiving > e-mails from other s

[PHP] Attachments

2002-04-19 Thread Jason Soza
I apologize in advance, this question most likely doesn't belong here, but if anyone can help that'd be great: Using both Perl and PHP to send mail with attachments from forms, the attachments get truncated. Since both Perl scripts and PHP scripts do this, I'm ruling out coding error, and since m

[PHP] .phps

2002-04-19 Thread Mantas Kriauciunas
Hey [EMAIL PROTECTED], as i understand files .phps should view code nice and in colors... but when i set up everything good in http.conf and (as i think) everything is perfect it wants me to download that .phps file...what can be wrong? im using PHPTriad on win2k thank you :---

[PHP] Re: [PHP-INST] can't view PHP

2002-04-19 Thread Andre Dubuc
Hi Joey, Don't know whetehr I can help, but I ran into the same problem with my Linux box. In Mozilla et al, I had to change in "Preferences > Advanced > Proxies > Manual Proxy Config >> No proxy for: Localhost". I haven't followed your thead, and I'm no familair with networking, butthta migh

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
I'm running PHP 4.1.2 + Apache 1.3.23 + PostgreSQL 7.2. I've tried reverting back to globals=on, and same problem. Yet, earlier in another script I used $sfname = $_GET['sfname']; to get the value of sfname -- now, it won't work. I'm truly stumped -- I don't know whether it's my code? [I begin

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Jeff Oien wrote: >> Far better would be to put a placeholder in $body like @@@ and then just >> do $body = ereg_replace('@@@', $url, $body); > > That's giving me a blank also. The form for changing the email is in a > password protected area where only two people are allowe

Re: [PHP] Does anyone have auto-signup stopping code? URGENT!

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Leif K-Brooks wrote: > I have a website where people can signup. Some jerk just made a program > that cheats by signing up automaticly and transfering what he gets when > he starts (you can get virtual money in my game). Does anyone have code > to stop automatic signups? I

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
> On Fri, 19 Apr 2002, Jeff Oien wrote: > >> Use eval(). > > > > I have $url (literally) embedded in some text in the database that is to be > > sent as an email message. I'm using this and $url disappears with a blank > > spot in the text: > > eval("\$body = \"$body\";"); > > I've tried variati

[PHP] Does anyone have auto-signup stopping code? URGENT!

2002-04-19 Thread Leif K-Brooks
I have a website where people can signup. Some jerk just made a program that cheats by signing up automaticly and transfering what he gets when he starts (you can get virtual money in my game). Does anyone have code to stop automatic signups? I would write it, but he's about to distribute his p

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
On Friday 19 April 2002 08:13 pm, you wrote: > On Fri, 19 Apr 2002, Andre Dubuc wrote: > > Whenever I try: > > > > print("$_SESSION['sfname']); or print("$_POST['scity'] > > > > I get a parse error "expecting 'T_STRING' . . ." -- obviously there's > > nothing in the array or I haven't set it. >

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Jeff Oien wrote: >> Use eval(). > > I have $url (literally) embedded in some text in the database that is to be > sent as an email message. I'm using this and $url disappears with a blank > spot in the text: > eval("\$body = \"$body\";"); > I've tried variations and can't ge

Re: [PHP] some problems about gd in php

2002-04-19 Thread zhaoxd
Yeah,I have already restarted web server and there was no error in compiling during configure/make/install .Using gd,I get the information that concern about GD Support ,GD version,WBMP Support ,etc.as follow: GD Support ---enabled GD Version

RE: [PHP] Variable Inside Variable

2002-04-19 Thread Jeff Oien
> On Friday 19 April 2002 09:31, Jeff Oien wrote: > > I have a script which retrieves the body of an email message from > > a MySQL database to be sent to someone who applies using a form. > > The script contains this: > > > > $url = " > href=\"http://$HTTP_HOST$SCRIPT_NAME\";>http://$HTTP_HOST$SC

[PHP] redirect browser

2002-04-19 Thread Joe
I had developed the web-based survey for student. And I need to check that each only fill in the form once time. So I write following code to check if the student number exist in the database or not. if yes, don't let them to fill in again. if no, redirect the browser to the page for them to fill

[PHP] Re: 3dim Array problem

2002-04-19 Thread Hugh Bothwell
> while( $res=$UDV -> getDbAns()) {// fetch mains Just checking: On success, $UDV->getDbAns() returns array of string; On fail, it returns false. > if(strlen($res[0]) > 2) { // if result is OK > $menarr[$h]=$res[0]; // put them in array Here is your problem - you set $menarr[$h]

Re: [PHP] Leading zeros in array index

2002-04-19 Thread Kent Briggs
"Joshua B. Jore" wrote: > > Oh it's probably because your numbers are being interpreted as octal. > Either use the array as '00' .. '09' or just 0 .. 9. 00 .. 09 is valid for > 00 to 07 but there is no such thing as 08 and 09 in octal. Ok, thanks. -- Kent Briggs, [EMAIL PROTECTED] Briggs Soft

Re: [PHP] multidimensional array

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Rodrigo Peres wrote: > In order to avoid many left joins I took an aproach that I didn't know > if it's good, but I couldn't figure out another way. If my cliente has > 10 phone numbers I buld an array, serialize it and store in database, so > I didn't have to create another t

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Andre Dubuc wrote: > Whenever I try: > > print("$_SESSION['sfname']); or print("$_POST['scity'] > > I get a parse error "expecting 'T_STRING' . . ." -- obviously there's nothing > in the array or I haven't set it. You just have a simple syntax error. You can use any of

[PHP] Out of memory error message

2002-04-19 Thread Mullin, Reginald
Hi Guys, Does anyone know what the following error message is and how I can go about solving it? ***ERROR MSG*** Out of memory during "large" request for 2147487744 bytes, total sbrk() is 1459608 bytes. This error message gets written to Apache's error logs every other time I execute my MSSQL q

[PHP] multidimensional array

2002-04-19 Thread Rodrigo Peres
Hi list, In order to avoid many left joins I took an aproach that I didn't know if it's good, but I couldn't figure out another way. If my cliente has 10 phone numbers I buld an array, serialize it and store in database, so I didn't have to create another table. The problem is now I need to migra

[PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Andre Dubuc
I've switched "register_globals=off" and "register_argc_argv=off" in php.ini to use $_SESSION and/or $_POST. All my code had been written using $var Unfortunately, I cannot seem to access the arrays in either $_SESSION and $_POST. I've set each page to start with since I'm also processing the

[PHP] PHP @ 24-hour programming competition

2002-04-19 Thread Visontay Peter
Hi! I have quite an unusual problem for you :) There will be a 24-hour programming competition at our university, where teams of 3 have one day to solve a complex problem (which will be revealed on the day of the competition). Teams cannot get help from "outside", so no outward network / phone co

[PHP] Getting All Variables?

2002-04-19 Thread Devin Atencio
Is there an easy way in PHP to have it display to screen all the variables that it has in memory? So i can see what variables there is and what they are set to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL for "Powered by PHP" gif

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 06:46, Todd Cary wrote: > Can someone provide me with the URL for a gif that I can place on my pages > so that I can give credit to PHP (Apache would be nice too). Presumably you've already looked on www.php.net? You can get the PHP logo and a "Powered by Zend" logo usi

[PHP] URL for "Powered by PHP" gif

2002-04-19 Thread Todd Cary
Can someone provide me with the URL for a gif that I can place on my pages so that I can give credit to PHP (Apache would be nice too). Many thanks.. Todd -- Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523 [EMAIL PROTECTED] -- PHP General Mailing List (

[PHP] $HTTP_*_VARS ?

2002-04-19 Thread Tobias Lindqvist
Hi there. Hoe come I cant use $HTTP_*_VARS in my script ? I have register_globals on, track vars is also on and i have made the necessary changes in my apache config ( the ALLOWOVERRIDE ALL ). My system is Win XP, Apache ( newest ) and newest PHP release. Thanks. -- PHP General Mailing List (h

Re: [PHP] Leading zeros in array index

2002-04-19 Thread Joshua b. Jore
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh it's probably because your numbers are being interpreted as octal. Either use the array as '00' .. '09' or just 0 .. 9. 00 .. 09 is valid for 00 to 07 but there is no such thing as 08 and 09 in octal. Joshua b. Jore http://www.greentechnologist.or

[PHP] Leading zeros in array index

2002-04-19 Thread Kent Briggs
My first post here, sorry if this has been covered before: Why does including a leading zero in an array index cause problems? For example, the output of this script: $x = array("a","b","c","d","e","f","g","h","i","j"); echo $x[0]; echo $x[1]; echo $x[2]; echo $x[3]; echo $x[4

Re: [PHP] header redirection

2002-04-19 Thread Kevin Stone
Headers will be created whenever information is outuputted to the browser. In this case when you include the .html file into your php script the browser is going to create all the headers it will ever know for that page. Obviously this does you no good if you want to add headers later. Ways aroun

[PHP] header redirection

2002-04-19 Thread Norman Zhang
Hi, I use header(location: ...) for redirection to another page. But I also want to include , and tags in the other page. Is there a way to this? Because php complains that the header already been sent. Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Image functions

2002-04-19 Thread Matthew Gray
You won't get very far if you aren't outputting an image to the browser using ImageJpeg(), etc. Matt Matthew J Gray UWRF - Information Technology Services [EMAIL PROTECTED] Gerard Samuel wrote: > Im trying to modify a poll script to not use the hard coded image files > and use php's image func

Re: [PHP] srand, array_rand

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Gerard Samuel wrote: > Im trying to get a random value to select a random row out of *a* > database. Not just mysql. > array_rand would do me just fine, but Im reading in the manual -> > > "Don't forget to call *srand()* >

[PHP] srand, array_rand

2002-04-19 Thread Gerard Samuel
Im trying to get a random value to select a random row out of *a* database. Not just mysql. array_rand would do me just fine, but Im reading in the manual -> "Don't forget to call *srand()* to seed the random number generator. " Im not too ce

[PHP] Re: include() and require() problem

2002-04-19 Thread Vins
I'm also having a problem with including file into and include file. my script reads. ( (strpos($PHP_SELF,"admin/")) ? include('../includes/mysql.inc.php') : include('includes/mysql.inc.php') ); @mysql_pconnect($mysqlDBhost,$mysqlDBuser,$mysqlDBpass) or die ("Database access error. Please contac

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

[PHP] R: file_get_contents source??

2002-04-19 Thread Giovanni Lenzi
ok thanks, i solved my problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php permissions

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 02:44 PM, ROBERT MCPEAK wrote: > Isn't it quite common to have php creating/editing/deleting files on > the server? How is this done in a secure manner? Running Apache/PHP as 'nobody' isn't really that secure, since there may be other services running on the sys

RE: [PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
Craig, you seem very knowledgable and I appreciate your help. I confused matters by mentioning the word "upload." I'm actually not using php to upload the files. The user ftps the files to the server, and the ownership permissions prevent php from manipulating the files. I'm looking for a clea

RE: [PHP] php permissions

2002-04-19 Thread Craig Vincent
> How? Manually each time a file is uploaded? Or with PHP somehow? > > I appreciate your response, but perhaps I'm not clear enough. > > Isn't it quite common to have php creating/editing/deleting files on > the server? How is this done in a secure manner? > > Could you explain further? Well t

RE: [PHP] creating table help

2002-04-19 Thread Craig Vincent
> Warning: Wrong parameter count for pg_exec() in > /var/www/html/elkan/createtable.php on line 23 > The table, ghdsl could not be created > if (pg_exec($dbname, $query, $connect)) I assume pg_exec is a synonym for pg_query (the pg_exec command does exist in the PHP docs). According to the fun

Re: [PHP] creating table help

2002-04-19 Thread Tyler Longren
I checked the php manual, and there doesn't seem to be a pg_exec function. You'll probably be able to use pg_query instead. But that error makes it sound like pg_exec is a valid function for your version of PHP, maybe it's not in newer versions. http://www.php.net/manual/en/function.pg-query.php

Re: [PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
How? Manually each time a file is uploaded? Or with PHP somehow? I appreciate your response, but perhaps I'm not clear enough. Isn't it quite common to have php creating/editing/deleting files on the server? How is this done in a secure manner? Could you explain further? Thanks. >>> "Dave

[PHP] creating table help

2002-04-19 Thread webmaster
I'm very new to php and PostgreSQL. I keep getting the following error when I try to create a table: Warning: Wrong parameter count for pg_exec() in /var/www/html/elkan/createtable.php on line 23 The table, ghdsl could not be created Here is the code I'm using: thanks for any help. -- PHP

Re: [PHP] php permissions

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:53 PM, ROBERT MCPEAK wrote: > My sysadmin is hesitant to give php more access until I do some > research about the security issues involved, and I am a relative newbie > and I'm not sure what the issues are or how to find out more about > them. > > How do I give

[PHP] R: file_get_contents source??

2002-04-19 Thread Giovanni Lenzi
thanks very much. now i'll read the entire article. However my problem is that i want to transmit characters like : £ $ % & ^ § so file and readfile function don't work correctly. Can you say me something more?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Re: file_get_contents source??

2002-04-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Giovanni Lenzi) wrote: > file_get_contents function is supposed to return the contents of a file in a > binary safe manner. I tried it on two different servers which has different > versions of APACHE+PHP but it still not works. > The server giv

Re: [PHP] php permissions

2002-04-19 Thread Dave Raven
chown them to nobody. - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 7:53 PM Subject: [PHP] php permissions > php is running on our box as nobody:nogroup. I'm trying to write php > code that will edit/delete files

[PHP] php permissions

2002-04-19 Thread ROBERT MCPEAK
php is running on our box as nobody:nogroup. I'm trying to write php code that will edit/delete files uploaded to the server by other users, and, obviously, I get a permissions error. My sysadmin is hesitant to give php more access until I do some research about the security issues involved, an

[PHP] file_get_contents source??

2002-04-19 Thread Giovanni Lenzi
file_get_contents function is supposed to return the contents of a file in a binary safe manner. I tried it on two different servers which has different versions of APACHE+PHP but it still not works. The server give me this response: Fatal error: Call to undefined function: file_get_contents() in

Re: [PHP] GMT Time

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 01:23 PM, Richard Fox wrote: > I want to compare a timestamp(14) field in a MySQL table with the > current > time. Currently I use the following pseudo-sql: > > select field from table where table.time < date("YmdHis", time()) > > only, the table timestamp is GMT

[PHP] GMT Time

2002-04-19 Thread Richard Fox
Ok, I give up. I want to compare a timestamp(14) field in a MySQL table with the current time. Currently I use the following pseudo-sql: select field from table where table.time < date("YmdHis", time()) only, the table timestamp is GMT time and the time function is returning local time. How do

[PHP] Image functions

2002-04-19 Thread Gerard Samuel
Im trying to modify a poll script to not use the hard coded image files and use php's image functions. On the file that will be outputing the poll graphics, I tried at the top of the page -> header("Content-type: image/png"); and header("Content-type: image/jpeg"); For some reason, when the pag

[PHP] Re: Querying Oracle from PHP

2002-04-19 Thread Michael Kimsal
Jon wrote: > Hi, > > I am evaluating if it is posible to connect Oracle 8i from PHP, running a > > PL/SQL procedure and returning the results, avaible in a temp table, to > > HTML. Besides, I need to format the results of the query in PDF document and > > make a pie chart based on he results o

Re: [PHP] how to popup a new browser window from php

2002-04-19 Thread Erik Price
On Friday, April 19, 2002, at 12:42 PM, Justin French wrote: > Sure, it opens another window, but it doesn't achieve the same affect > as a > javascript alert (ok|cancel for starters), nor does it provide any > control > over the size/specs of the resultant window. Yeah, but nobody said anyt

Re: [PHP] how to popup a new browser window from php

2002-04-19 Thread Justin French
Sure, it opens another window, but it doesn't achieve the same affect as a javascript alert (ok|cancel for starters), nor does it provide any control over the size/specs of the resultant window. Justin French Creative Director http://Indent.com.au on

RE: [PHP] Within the date format

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Demitrious S. Kelly wrote: > Whatever works > > And the function works fine for any year after 2000 Not for 2100. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Truncated files

2002-04-19 Thread Jason Soza
I don't have the code I used right in front of me, so I'm sorry that I can't give specifics, but maybe someone may have an idea about this off the top of their head. I have a script that processes a form on my site where people can submit information and upload files. The files don't upload to

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
Whatever works And the function works fine for any year after 2000 Besides... it was just a quick and dirty example -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:14 AM To: Demitrious S. Kelly Cc: [EMAIL PROTECTED] Subject: RE: [PHP] With

RE: [PHP] Within the date format

2002-04-19 Thread Miguel Cruz
1) That function isn't correct. 2) It's slow. 3) You still would have to call it once for each year in the range in order to figure out how many intervening leap years there are, and you'd have to check whether the dates in question fell before or after Feb 29. Much easier to just calculate t

Re: [PHP] Variable name assembly

2002-04-19 Thread Jason Wong
On Friday 19 April 2002 23:52, Jason Lam wrote: > How do I assemble strings to become a variable? > > These code do not work... > $abc = 10; > echo $('ab'.'c'); echo ${'ab'.'c'}; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design &

[PHP] file extension validation

2002-04-19 Thread jas
Here is what I have currently to validate the file type on upload to a server: Right now it just checkes the file extension, I would like to know how I can use this piece of code and add the functionality of actually checking the file first. If anyone can point me in the right direction that wou

Re: [PHP] .inc over .php

2002-04-19 Thread J Smith
3) Block downloads on .inc files, like using a directive in httpd.conf or a .htaccess file in apache. (Or whatever on another web server.) Now, even if a user tries to view that file, it won't execute at all, thus perhaps saving you some memory and clock cycles. (And it's generally more secu

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
function is_leap($) { $leap=0; $refy=2000; while ( $ >= $refy ) { if ( $refy == $ ) { $leap=1; } else if ( $refy > $ ) { break; } $refy++;

[PHP] Variable name assembly

2002-04-19 Thread Jason Lam
How do I assemble strings to become a variable? These code do not work... $abc = 10; echo $('ab'.'c');

RE: [PHP] Within the date format

2002-04-19 Thread Miguel Cruz
Like I said, if it crosses through a leap year, your calculation may be off. How many days are there in February when you don't know what year it is? miguel On Fri, 19 Apr 2002, Demitrious S. Kelly wrote: > Wouldn't it be easier to convert each date into a unix timestamp, then > subtract... th

RE: [PHP] Within the date format

2002-04-19 Thread Demitrious S. Kelly
Wouldn't it be easier to convert each date into a unix timestamp, then subtract... the resulting number is the difference in seconds. Then devide by 60 for minutes, again for hours 24 for days, etc, etc -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, April

Re: [PHP] Within the date format

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Ron Allen wrote: > This is what I have right now > > $totaltime= date(":H:i:s", mktime(0,0,$totaltime)); > > This is the result > > 04:20:46 > > from the following dates > 2002-04-25 16:30:16 > 2002-04-19 12:09:30 > 534046 seconds > > I would like to be able to get the da

RE: [PHP] Validating User Input

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, SP wrote: > Now should I include all those special characters? I want it to be hack > proof so I don't want to add the user input into my database and have > something bad happen. > > Which ones are safe? > ~ ` ! @ # $ % ^ & * ( ) _ + - = [ ] \ { } | : " ; ' < > ? , . / All

[PHP] Within the date format

2002-04-19 Thread Ron Allen
This is what I have right now $totaltime= date(":H:i:s", mktime(0,0,$totaltime)); This is the result 04:20:46 from the following dates 2002-04-25 16:30:16 2002-04-19 12:09:30 534046 seconds I would like to be able to get the days and, if needed, the number of months and years -- PHP Gene

Re: [PHP] official statement about PHP file extensions?

2002-04-19 Thread heinisch
At 19.04.2002 14:21, you wrote: > > >Is there any official statement (by php.net) about which file > extension you > > >should use when using PHP (1, 2, 3 or 4)? I know that's server > related, but > > >isn't there a standard? > > This only belongs to the settings your webserver allows. > > f

Re: [PHP] .inc over .php

2002-04-19 Thread Meir Kriheli
On Friday 19 April 2002 15:58, Erik Price wrote: > On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote: > > Why use .inc as a file extenstion when you can use .php ?? > > What are the advantages/disadvantages to using .inc? > > Is one more secure? > > Which is faster? > > Which is consider a

Re: [PHP] MySql query

2002-04-19 Thread Chris Kwasneski
Try: SELECT gallery_name, image_id, image_name FROM galleries, Images WHERE galleries.gallery_id = images.gallery_id At 07:57 AM 4/19/2002 -0700, you wrote: >Ok this could be the wrong place to ask this but there seems to be some >people in here that know mysql quite well. >My question is this

RE: [PHP] .inc over .php

2002-04-19 Thread Tim Ward
I've settled on .inc.php, .class.php, etc. that way you get the best of both worlds. Your files are identified as what they are and don't get sent out unparsed Tim Ward Internet Chess www.chessish.com -- From: Jason Wong [SMTP:[EMAIL PROTECTED

RE: [PHP] MySql query

2002-04-19 Thread Fifield, Mike
Ok the formatting got lost on that I will try this again. -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: [PHP] MySql query Ok this could be the wrong place to ask this but there seems to be some peo

Re: [PHP] Querying Oracle from PHP

2002-04-19 Thread Miguel Cruz
On Fri, 19 Apr 2002, Jon wrote: > I am evaluating if it is posible to connect Oracle 8i from PHP, running > a PL/SQL procedure and returning the results, avaible in a temp table, > to HTML. Besides, I need to format the results of the query in PDF > document and make a pie chart based on he result

Re: [PHP] Discarded extension on file download

2002-04-19 Thread Tom Mikulecky
This don't work for me :( Extension .gz is still throwed away. Tom Danny Shepherd wrote: > Hi, > > I recently had this problem and, after hours of hair pulling, found that it > seems to work best if you send > the words Content-Type and Content-Disposition in **lower case**. Not sure > why it h

[PHP] MySql query

2002-04-19 Thread Fifield, Mike
Ok this could be the wrong place to ask this but there seems to be some people in here that know mysql quite well. My question is this; I have a database that looks like this. galleries gallery_id gallery_name 1 3d 2 fractals 3 abstract 4 cats 5 cars Images image_id gallery_id image_na

[PHP] Memory Leak... tracking?

2002-04-19 Thread Robert Cummings
I have written an extension that I compile into PHP in both CGI and in module mode. The CGI version never crashes with a segfault in my code; however, the module version almost always crashes on the second page load. I've tracked it down to what appears to be one of my pointers being overwritten,

[PHP] Re: include() and require() problem

2002-04-19 Thread Michael Virnstein
be sure that the path to the include file is relative to the script that was requested by the user. that's important if you include include-files into included files. you then have to make sure that the path to your include-file in the include-file is relative to the file that included the file, i

RE: [PHP] parse error=> doc contains no data

2002-04-19 Thread Johnson, Kirk
Sorry, I missed the main point of your original question. No more ideas here. > -Original Message- > From: Pedro Garre [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 19, 2002 3:23 PM > To: php-general > Subject: Re: [PHP] parse error=> doc contains no data > > > *This message was tran

Re: [PHP] parse error=> doc contains no data

2002-04-19 Thread Pedro Garre
*This message was transferred with a trial version of CommuniGate(tm) Pro* My php.ini has E_ALL and E_NOTICE I have tried several values with function error_reporting, including error_reporting(0) as recommended in the documentation. I am using the example of error handler function provided in t

Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen
Appreciate the assistance Danny Figured it out $totaltime= date("H:i:s", mktime(0,0,$totaltime)); Just followed PHP from this page http://www.php.net/manual/en/function.mktime.php "Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How is this going to

[PHP] multidimensional array

2002-04-19 Thread Rodrigo Peres
Hi list, In order to avoid many left joins I took an aproach that I didn't know if it's good, but I couldn't figure out another way. If my cliente has 10 phone numbers I buld an array, serialize it and store in database, so I didn't have to create another table. The problem is now I need to m

Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen
How is this going to give the overall time in difference... For instance A circuit went down at 17:30:45 it came back up at 18:37:49 what is the difference in time between the 2 in the format Days XX Hours XX Minutes XX Seconds XX "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message 027601c1

[PHP] include() and require() problem

2002-04-19 Thread Rodrigo Peres
List, I'm trying to include some .inc files in my project, but I got errors all time saying that this includes couldn't be found. I'm a newbie, so I can't understand what's happend, since it worked pretty good in my local machine and not in the ISP. I tried to speak to ISP many times but they

Re: [PHP] if elseif else

2002-04-19 Thread The_RadiX
Nope.. That is fine.. I use it all the time.. It's quite acceptable.. - Original Message - From: "Gerard Samuel" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 12:01 AM Subject: [PHP] if elseif else > I redoing some code, and the original author h

RE: [PHP] if elseif else

2002-04-19 Thread Leotta, Natalie (NCI/IMS)
You can use as many elseifs as you need. I'm not sure how it affects performance, but it works (I have one that goes through all 50 states). -Natalie -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 10:02 AM To: PHP Subject: [PHP] if elseif

[PHP] if elseif else

2002-04-19 Thread Gerard Samuel
I redoing some code, and the original author has code like if elseif elseif elseif else I have always known it to have just one elseif, not multiple ones. I was going to move it to a switch/case, but there is no common switch. So I wanted to know if its technically ok, or just ok to use multiple

RE: [PHP] Validating User Input

2002-04-19 Thread SP
Thanks Danny, that worked! Now should I include all those special characters? I want it to be hack proof so I don't want to add the user input into my database and have something bad happen. Which ones are safe? ~ ` ! @ # $ % ^ & * ( ) _ + - = [ ] \ { } | : " ; ' < > ? , . / -Original Mes

Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Danny Shepherd
use the date() command (http://www.php.net/date) - using $timeDiff as the datestamp. HTH Danny - Original Message - From: "Ron Allen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 2:56 PM Subject: Re: [PHP] Determine the difference between two dates > If I w

RE: [PHP] parse error=> doc contains no data

2002-04-19 Thread Johnson, Kirk
Try setting error_reporting = E_ALL & ~E_NOTICE, or just E_ALL, in php.ini. Kirk > -Original Message- > From: Pedro Garre [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 19, 2002 11:25 AM > To: php-general > Subject: [PHP] parse error=> doc contains no data > > > I set my own error ha

RE: [PHP] How long does a session last? Need to have it at 20mins

2002-04-19 Thread Johnson, Kirk
Garbage collection is launched according to the gc_probablility. If it finds a session file that has not been modified for a longer time than gc_maxlifetime, it deletes it. So, whenever a user requests a page, they essentially reset the session timer to zero for that particular session, since the

  1   2   >