RE: RE: [PHP] PHP Editor - which to use?

2003-09-24 Thread Ralph Guzman
>It doesn't do syntax highlighting, but if you need >that, then you need to learn to code better. Ha,ha. too funny. -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:56 AM To: jeffrey pearson; [EMAIL PROTECTED] Subject: Re: RE: [PHP] PHP Ed

RE: [PHP] Subcategories in php

2003-09-24 Thread Ralph Guzman
This article explains four methods for doing this: http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17 /4047/index.html -Original Message- From: phpu [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 7:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Subcatego

RE: [PHP] php with MsSql

2003-09-24 Thread Ralph Guzman
You might also want to look at these libraries for mssql native support: http://www.freetds.org -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 9:21 AM To: [EMAIL PROTECTED] Subject: [PHP] php with MsSql I'm creating a site

Re: [PHP] Document Management App

2003-09-24 Thread Becoming Digital
If I understand you correctly, it seems like you're asking for Adobe's new Enterprise version of Acrobat. I've had the opportunity to play with it and I was quite impressed. http://www.adobe.com/enterprise/main.html Edward Dudlik Becoming Digital www.becomingdigital.com - Original Messag

Re: [PHP] POST Parameters

2003-09-24 Thread Stephan Becker
> As for redirecting, you cannot force a client to send a POST request to another > URL (thankfully). So, you either need to send the POST request yourself (and > send the output to the client), or you need to think of another solution (such > as using URL variables for everything). OK, that soun

[PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Cranky
Hello, Is it possible to determine a lifetime for the session in the case of a cookie-less sessions ? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to connect ms sql server in linux apache+php?

2003-09-24 Thread Larry_Li
First I can't find something like mssql.so in extensions folder. BTW, I also need gd2.so. How could I get them back? Any easy way to connect ms sql server? I need migrate my site into linux apache server from win 2k IIS. Thanks a lot, Larry

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Becoming Digital
I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove me wrong, if only for

[PHP] mySQL vs pgSQL | php vs others

2003-09-24 Thread nabil
Dear all; I have been using Mysql for a long time, but I have a benchmark Q. Is pgsql , better ? faster ? more reliable than mysql ? any comment ? Some people say that php is not for a very big enterprise, banking , application !! they said that java or even .NET is better ... I m against that b

[PHP] Re: How to connect ms sql server in linux apache+php?

2003-09-24 Thread nabil
You need to use FreeTDS to connect from Linux to ms sql server. and you have to recompile php with gd and mssql (example --with-mssql=/usr/local/freetds ) I did this 2 month ago and it work with me like a charm I\on very heavy load server. for any more info , email me back Nabil "Larry Li" <[E

Re: [PHP] GD problem

2003-09-24 Thread Becoming Digital
It's generally a good idea to post your code so that we can see what's actually happening. Fortunately, Peter and Andrew were able to give some good tips this time, but you might not always be so lucky. I was going to include some of my code but I fear it may just lead to further confusion. I

Re: [PHP] Shopping Cart Solutions

2003-09-24 Thread Didier McGillis
As everyone has said osCommerce is a good cart program, but if you need a serious customized solution then you are going to need to either spend your time foucsing on that app and get into it, or your going to want to find something a little less polished and more just foundation, not saying os

Re: [PHP] mySQL vs pgSQL | php vs others

2003-09-24 Thread Duncan Hill
On Wednesday 24 Sep 2003 11:24, nabil wrote: > Dear all; > > I have been using Mysql for a long time, but I have a benchmark Q. > > Is pgsql , better ? faster ? more reliable than mysql ? How long is a piece of string? > any comment ? > Some people say that php is not for a very big enterprise, b

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Leif K-Brooks
Becoming Digital wrote: I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove

Re: [PHP] mySQL vs pgSQL | php vs others

2003-09-24 Thread John W. Holmes
nabil wrote: Dear all; I have been using Mysql for a long time, but I have a benchmark Q. Is pgsql , better ? faster ? more reliable than mysql ? Maybe. any comment ? Some people say that php is not for a very big enterprise, banking , application !! they said that java or even .NET is better .

Re: [PHP] Running system commands

2003-09-24 Thread Nitin
Thanks for your help, I'v configured ssh, though it's running fine, I'm not able to connect to my server, it says- connect: connection to on port 22 refused. i think this is due to, some firewall. I'll check it out. in the mean time can you clearify what are verbatim commands!!! Thnaks for your

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
I bet you don't indent your code either. And all white characters are useless too, they only slow interpreter down. Good coder will understand this at a glimpse: if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_params);$back_url_params=substr($HTTP_GET_VARS['origin'],$pos_p

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Marek Kilimajer
session.gc_maxlifetime integer session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does

Re: [PHP] Shopping Cart Solutions

2003-09-24 Thread Didier McGillis
I had been doign interchange back when it first changed names to Interchange, I havent used it since it was aquired by Redhat, no particular reason just personal preference. Here is the link to FreeTrade. I believe the Restoration Hardware site started with this code, they have since gone bigg

[PHP] Print current and next three years

2003-09-24 Thread Shaun
Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { echo ''.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } $i++; } ?

Re: [PHP] Php returns wrong content-type (one php, two apaches)

2003-09-24 Thread Marek Kilimajer
This will be some misterios error. I would change more configuration options, namely output log filenames. Well, but this won't help you now. Are you sure the other apache is not runnig? Jan Vitek wrote: Hello, I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine

[PHP] Add a leading zero

2003-09-24 Thread Shaun
Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? '.$i.''; $i+=15; } ?> Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Print current and next three years

2003-09-24 Thread Marek Kilimajer
$current=date('Y'); for($i=0;$i<4;$i++){ echo $current + $i; } Shaun wrote: Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { e

Re: [PHP] Add a leading zero

2003-09-24 Thread Marek Kilimajer
www.php.net/str_pad Shaun wrote: Hi, How can i add a leading zero to the first result of this loop so that i get 00, 15, 30, 45? '.$i.''; $i+=15; } ?> Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Users Online

2003-09-24 Thread Matias Hohl
Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 minutes on a users page? I don't want to make always a redirect. Isn't the a possibility like streaming? :-) Greetings, Matias from

Re: [PHP] Print current and next three years

2003-09-24 Thread Becoming Digital
'.$year.''; } ?> Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 24 September, 2003 08:29 Subject: [PHP] Print current and next three years Hi, I am trying to print the current

[PHP] WHAT IS PEAR?

2003-09-24 Thread Webmaster
I checked the PEAR HOMEPAGE but still I don't quite understand what the project is about. I am familiar with writing classes and functions. Now, I can not figure out what the deal is. Does Pear consist of a class library that comes with the installation? There is a directory "pear" which is full of

Re: [PHP] Users Online

2003-09-24 Thread Becoming Digital
Do your users have to logon? If so, run a count of logged-in users every 2min and use an IFRAME or Flash movie so that the rest of the page is unaffected. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Matias Hohl" <[EMAIL PROTECTED]> To: <[EMAIL P

RE: [PHP] Users Online

2003-09-24 Thread Jay Blanchard
[snip] Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 minutes on a users page? I don't want to make always a redirect. Isn't the a possibility like streaming? :-) [/snip] Place a

Re: [PHP] Users Online

2003-09-24 Thread Matias Hohl
No, they don't have to login. Does the Netscape Navigator know the IFRAME-Tag? Can I read values from a DB with Flash? Thanx "Becoming Digital" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] Do your users have to logon? If so, run a count of logged-in users every 2min and use

Re: [PHP] Users Online

2003-09-24 Thread Matias Hohl
Ok, thanx. I think this is the best way to get a clean result. But do all the Browsers know the IFRAME-Tag? "Jay Blanchard" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] [snip] Hello php-Freaks I would like to display the number of users that are online on my page. Scripting th

Re: [PHP] WHAT IS PEAR?

2003-09-24 Thread Duncan Hill
On Wednesday 24 Sep 2003 13:48, Webmaster wrote: > I checked the PEAR HOMEPAGE but still I don't quite understand what the > project is about. > I am familiar with writing classes and functions. > Now, I can not figure out what the deal is. Does Pear consist of a class > library that comes with the

[PHP] Script that pulls several pages from list?

2003-09-24 Thread MIKE YRABEDRA
Hopefully someone can help. I want to create a php script that will... 1. Take a list of URLs separated by commas 2. Covert that to an array 3. Then go through and pull the content from each page in a loop I am doing this so I can set up a cron job to automatically cache pages with jpcache. T

Re: [PHP] Script that pulls several pages from list?

2003-09-24 Thread CPT John W. Holmes
- Original Message - From: "MIKE YRABEDRA" <[EMAIL PROTECTED]> > I want to create a php script that will... > > 1. Take a list of URLs separated by commas > 2. Covert that to an array > 3. Then go through and pull the content from each page in a loop > > I am doing this so I can set up a

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Didier McGillis
I love editplus, I love homesite and emacs. I hate Dreamweaver. I can read code like that not a problem, but for debugging and layout its alot easier for me with the returns and tabs. What I do is I have a script that strips out any space, tabs, carriage returns and then moves the code into the

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 08:12, Marek Kilimajer wrote: > I bet you don't indent your code either. And all white characters are > useless too, they only slow interpreter down. Good coder will understand > this at a glimpse: > if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_par

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Curt Zirzow
* Thus wrote Didier McGillis ([EMAIL PROTECTED]): > alot easier for me with the returns and tabs. What I do is I have a script > that strips out any space, tabs, carriage returns and then moves the code > into the production environment. But really unless you are dealing with In some cases, f

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 09:43, Curt Zirzow wrote: > * Thus wrote Didier McGillis ([EMAIL PROTECTED]): > > alot easier for me with the returns and tabs. What I do is I have a script > > that strips out any space, tabs, carriage returns and then moves the code > > into the production environment. B

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Curt Zirzow
* Thus wrote Robert Cummings ([EMAIL PROTECTED]): > *COUGH* *COUGH* EVERY REAL coder knows that you have to use the > following brace style for your code to be accepted into the l33t > hierarchy of [EMAIL PROTECTED]: > > if( $pos_params != false ) > { > $back_url = substr( $HTTP_GET_VARS['orig

Re: [PHP] [AWF-TOPIC] PHP Editor - which to use?

2003-09-24 Thread Robert Cummings
On Wed, 2003-09-24 at 09:51, Curt Zirzow wrote: > > cat | realprogrammer > Dear sir, I am a complete newbie to PHP and have never seen the cat or realprogrammer programs. Could you please send me detailed documentation on how each works and where I can find a free copy. Also what does the | do i

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Jon Haworth
Hi, > Good coder will understand this at a glimpse: [snip horrible code] > if($pos_params!=false) Assuming it's a boolean, $pos_params is *already* true or false, so testing it like this is pretty much pointless. It makes more sense (and is much more readable IMHO) to do something like this: i

[PHP] Re: Users Online

2003-09-24 Thread pete M
I've dome this recently using a small in the top right corner. users_online.php has the tag set. pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are online on my page. Scripting that is not the problem... but how can I refresh this number all 2 min

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
Curt Zirzow wrote: cat | realprogrammer | in_a_rush if($p) { $bu = substr( $_GET['o'], 0, $p ); $bup = substr( $_GET['o'], ++$p ); } else { $bu = $_GET['o']; $bup = ''; } This is a real world example of how real programmer in a rush can introduce bugs. Original example did not modify $p (

[PHP] Re: Users Online

2003-09-24 Thread Gal
You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it to a DIV. Pete M wrote: I've dome this recently using a small in the top right corner. users_online.php has the tag set. pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are

[PHP] __clone() questions ???

2003-09-24 Thread --
Hello srs, Q 1. Will the methode __clone() have the posibility of take arguments It would be usefull to reinitialize the clone: age = $age; $this->owner = $owner; } function __clone($owner) { $this->age = 0; $this->owner = $owner; } } $molly =

[PHP] Re: Users Online

2003-09-24 Thread pete M
Does xml_HTTP work with Mozilla ??? ! pete al wrote: You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it to a DIV. Pete M wrote: I've dome this recently using a small in the top right corner. users_online.php has the tag set. pete Matias Hohl wrote: Hello php

[PHP] Re: Users Online

2003-09-24 Thread Gal
yes. But it think that only since version 1.1 (latest mozilla version is 1.5rc1) Pete M wrote: Does xml_HTTP work with Mozilla ??? ! pete al wrote: You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it to a DIV. Pete M wrote: I've dome this recently using a small in th

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Curt Zirzow
* Thus wrote Jon Haworth ([EMAIL PROTECTED]): > Hi, > > > Good coder will understand this at a glimpse: > > [snip horrible code] > > > if($pos_params!=false) um... you rewrote that, his code was: if( $pos_params != false ) > > Assuming it's a boolean, $pos_params is *already* true or false,

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Marek Kilimajer
Jon Haworth wrote: if($pos_params!=false) Assuming it's a boolean, $pos_params is *already* true or false, so testing it like this is pretty much pointless. It makes more sense (and is much more readable IMHO) to do something like this: if ($pos_params) { // something } From the futher reading

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
Maybe use strlen to check the length of the $i then if it's less than 2 do $i = "0".$i Quick and dirty, but I've done that trick myself in the past. C -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: 24 September 2003 12:43 To: Shaun Cc: [EMAIL PROTECTED] Subject

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
Duh Sorry didn't realise I was replying to a reply to the original message. And to add insult to injury str_pad looks like it does the job a lot better... C -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: 24 September 2003 12:43 To: Shaun Cc: [EMAIL PROTECTED

[PHP] Re: Users Online

2003-09-24 Thread Gal
here you can find example of XML HTTP that will work both I.E & Mozilla http://webfx.eae.net/dhtml/xmlextras/xmlextras.html Gal wrote: yes. But it think that only since version 1.1 (latest mozilla version is 1.5rc1) Pete M wrote: Does xml_HTTP work with Mozilla ??? ! pete al wrote: You can

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Kevin Bruce
FYI- New to this list but have been a php coder for 2 years. I know a lot of you out there are going to groan inwardly, but I use Dreamweaver, mainly because that's what I used since it's inception when I was writing static sites. I use OSX for my writing platform and occasionally use BBedit as we

Re: [PHP] __clone() questions ???

2003-09-24 Thread Curt Zirzow
* Thus wrote -- ([EMAIL PROTECTED]): > Hello srs, > > Q 1. > > Will the methode __clone() have the posibility of > take arguments It would be usefull to > reinitialize the clone: Wont the clone() not be a clone anymore? Curt -- "I used to think I was indecisive, but now I'm not so sure.

[PHP] Accepting data from URL Parameters

2003-09-24 Thread Jared Steckel
I appologize for what may be a newbie-like request, but I have not been able to find this information in the PHP documentation. If I were to have a link on an HTML page such as the following: http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value How can I retrieve those values in t

Re: [PHP] PHP code in form field - var_export() (slashes)?

2003-09-24 Thread Shawn McKenzie
I'm storing some multi-dimensional associative arrays in the file and then when I need the values somewhere I just include the file and voila my arrays are defined. Seemed better than looping through arrays writing to a file and then using the same loop structure to read lines from the file and as

[PHP] Re: Accepting data from URL Parameters

2003-09-24 Thread Gal
try this: \n"; echo 'Value2 = '.$_GET['Value2']; ?> Jared Steckel wrote: I appologize for what may be a newbie-like request, but I have not been able to find this information in the PHP documentation. If I were to have a link on an HTML page such as the following: http://www.foo.com/myscri

Re: [PHP] Re: Accepting data from URL Parameters

2003-09-24 Thread Jackson Miller
On Wednesday 24 September 2003 9:47, Gal wrote: > try this: >echo 'Value1 = '.$_GET['Value1']; > echo "\n"; > echo 'Value2 = '.$_GET['Value2']; > ?> even better try this: $value) { echo "$key = $value"; } ?> -Jackson > > Jared Steckel wrote: > > I appologize for what may

[PHP] Problem with adding text to emails using the date function

2003-09-24 Thread Shaun
Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Booking Commences: 24th September 2003 a09:00 I think the \t is being interpreted as a 'tab', h

RE: [PHP] Document Management App

2003-09-24 Thread Luis Lebron
You may want to look at Verity's products http://downloadcenter.verity.com/dlc/index.jsp -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Document Management App Howdy & Good Afternoon! I am

[PHP] Re: Accepting data from URL Parameters

2003-09-24 Thread David Robley
In article , [EMAIL PROTECTED] says... > I appologize for what may be a newbie-like request, but I have not been > able to find this information in the PHP documentation. > > If I were to have a link on an HTML page such as the following: > > http://www.foo.com/myscripts/myscript.php?Value1=value

[PHP] Re: Add a leading zero

2003-09-24 Thread John
Take your result and use sprintf. $variable_fixed=sprintf("%06s",$variable); The above code with make $variable 6 digits long and fill all "empty" spaces with zeros. So if $variable=42, the $variable_fixed with be 42. Specifically, for your code below, I would say put an if statement after t

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Raquel Rice
On Wed, 24 Sep 2003 11:42:12 +0200 Cranky <[EMAIL PROTECTED]> wrote: > Hello, > Is it possible to determine a lifetime for the session in the case > of a cookie-less sessions ? > > Thanks for your help. > In my sessions I set an "expire time", which is the current time (unix timestamp) plus the

[PHP] Re: Problem with adding text to emails using the date function

2003-09-24 Thread pete M
$subject .= "\nBooking Commences: ".date("jS F Y")." at ".date("H\:i") Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Booking Commen

Re: [PHP] Problem with adding text to emails using the date function

2003-09-24 Thread Marek Kilimajer
You are right, the same way as \n is interpreted as a newline. Use single quotes Shaun wrote: Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i", strtotime($booking_start_date)); However the output is: Book

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread andu
On Wed, 24 Sep 2003 10:34:33 -0400 Kevin Bruce <[EMAIL PROTECTED]> wrote: > FYI- New to this list but have been a php coder for 2 years. > > I know a lot of you out there are going to groan inwardly, but I use > Dreamweaver, mainly because that's what I used since it's inception when I > was writ

Re: [PHP] mySQL vs pgSQL | php vs others

2003-09-24 Thread Dan Anderson
> Is pgsql , better ? faster ? more reliable than mysql ? I won't speculate on which one is faster (although I think both camps would claim ownership of the trump card). But Postgresql does conform closer to the SQL standard, and there are a number of features available in it that are not

Re: [PHP] PHP code in form field - var_export() (slashes)?

2003-09-24 Thread Jason Wong
On Wednesday 24 September 2003 22:43, Shawn McKenzie wrote: > I'm storing some multi-dimensional associative arrays in the file and then > when I need the values somewhere I just include the file and voila my > arrays are defined. Seemed better than looping through arrays writing to a > file and

Re: [PHP] How can I auto upload a file to the server?

2003-09-24 Thread Raditha Dissanayake
Hi John, My Impression from Jane's mail was that she was thinking of using a PHP script on the client side and not the server side. Am i correct jane? If so there would not be security concerns. Obviously as john has so rightly pointed out php on the server side cannot access local files. The

[PHP] Casting nulls

2003-09-24 Thread Carl Furst
IF $int is null and I have a test If($int < 1) { //do some foobar } will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a null $int into a zero?? Documentation aint too clear. Thanks, Carl. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] How can I auto upload a file to the server?

2003-09-24 Thread CPT John W. Holmes
From: "Raditha Dissanayake" <[EMAIL PROTECTED]> > My Impression from Jane's mail was that she was thinking of using a PHP > script on the client side and not the server side. Am i correct jane? If > so there would not be security concerns. Obviously as john has so > rightly pointed out php on the s

Re: [PHP] Accepting data from URL Parameters

2003-09-24 Thread Raquel Rice
On Wed, 24 Sep 2003 10:40:42 -0400 (EDT) Jared Steckel <[EMAIL PROTECTED]> wrote: > I appologize for what may be a newbie-like request, but I have not > been able to find this information in the PHP documentation. > > If I were to have a link on an HTML page such as the following: > > http://www

Re: [PHP] Casting nulls

2003-09-24 Thread Robert Cummings
In the time you've waited for an answer so far, you could have made yourself a 3 line script to find out. Rob. On Wed, 2003-09-24 at 11:30, Carl Furst wrote: > IF $int is null and I have a test > > If($int < 1) { > //do some foobar > } > > will $int be evaluated as a zero? IF I cast (int) $int

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Cranky
I just come to do some test this afternoon and here are the results. Now : '.date('H:i:s'); ?> Reload And here are the results : session.use_cookie = 0; session.gc_maxlifetime = 30; // 30 seconds session.gc_probability = 100; // 100% => the gc is always called On page 2, I have : Array ( [begi

[PHP] Accellerators and Encryptors: Taking Scripts to the Next Level

2003-09-24 Thread Dan Anderson
On this listserv I have heard quite a bit of talk about "accelerators". And I have also seen some advertisements about "Encryptors" -- letting PHP code be sold in a byte compiled type form so your clients can't pirate your scripts. Do these things work? And if they do, can you re

Re: [PHP] Casting nulls

2003-09-24 Thread CPT John W. Holmes
From: "Carl Furst" <[EMAIL PROTECTED]> > IF $int is null and I have a test > > If($int < 1) { > //do some foobar > } > > will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a > null $int into a zero?? > > Documentation aint too clear. No idea what you're doing here, but you m

[PHP] date problem

2003-09-24 Thread Shaun
Hi, Why does the following code print '00', surely it should print '08', I'm baffled! date("H", mktime(8, 0, 0, 0, 0, 0)); Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sql faq

2003-09-24 Thread Jonatan Pugliese.
select MaeSocio.* from MaeSocio LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio where MaeSeguro.NroSocio is null MaeSeguro.NroSocio is not null count(*) MaeSocio = 354000 count(*) MaeSeguro=108000 how i can retype this query? Jonatan Pugliese Area Sistemas ACA - Automovil club A

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Cesar Cordovez
THE best text/code editor in this planet is BBEdit. No questions about it. It is a pitty it only runs on Macs. I have used it to write text, code fortran, pascal, c, c++, html, css and php (among others). It is great, I love it. Kudos to Bare Bones! Great find/replace utility. Incredible ad

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Kevin Bruce
Thanks:) I'll give BBedit a go for a week and let you know how it turns out. Yes, Dreamweaver does sucketh much, but it's great for hashing out the page (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing nested tables.* :P *Hwat the hell do I need typing for, I'm going to be a

[PHP] Select form dynamic creation.

2003-09-24 Thread Jeremy Russell
Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. What I want to do is build a page by first having a selection form. This select statement will have a number of items within it. When a use scroll

Re: [PHP] sql faq

2003-09-24 Thread Dan Anderson
On Wed, 2003-09-24 at 12:30, Jonatan Pugliese. wrote: > select MaeSocio.* from MaeSocio > LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio > where MaeSeguro.NroSocio is null > > MaeSeguro.NroSocio is not null > > count(*) MaeSocio = 354000 > count(*) MaeSeguro=108000 > > how i can ret

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Clint Tredway
The new Dreamweaver is much better than the previous version. I still have not found 'the ideal' editor for me and I use several tools. The one tool that looks like it could become my tool of choice could be eclipse. because you can build custom editors (plugins) for anything you need. Clint

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread John Nichel
I know we've discussed this numerous times, but I'll chime in again (mainly because I'm bored). By far, I have been totally satisfied with UltraEdit. Lightweight, just about any language you want to edit, user configurable syntax highlighting (for those into that), handles UNIX / DOS / Mac fil

[PHP] Re: date problem

2003-09-24 Thread John
For me, on Windows, it won't work because Windows won't do anything prior to 1970. On linux, I get 17 as the result. If I change the year to 2000, then I get 08 on both. John "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Why does the following code print '00', su

Re: [PHP] Re: date problem

2003-09-24 Thread Robert Cummings
>From the documentation: http://ca2.php.net/manual/en/function.mktime.php "Date with year, month and day equal to zero is considered illegal (otherwise it what be regarded as 30.11.1999, which would be strange behavior)." I think the point here to think about is that the date()

Re: [PHP] Select form dynamic creation.

2003-09-24 Thread Marek Kilimajer
Have you considered using multiselect? Jeremy Russell wrote: Hello list, I've spent a little time looking to see if this has been done before, and haven't found it, though I'm certain it has been done. What I want to do is build a page by first having a selection form. This select state

RE: [PHP] Select form dynamic creation.

2003-09-24 Thread Jeremy Russell
Yes, that would probably work just as well, but I still am having trouble seeing how to handle things, without having 1000 if's. I now I probably need an array of the list items and then remove the item from the array when it is selected but that's as far as I've been able to think it through. >

[PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hi all, Am having a bit of a problem understanding this, can anybody tell me where i'm going wrong please? Basically trying to limit the "vote" to just 1 per person, first am checking if the the person with username has voted, if that comes back as false then am checking his ip (because i dont kno

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Jeremy Russell
You might try to perform bother queries first then check then by If ($result1 || $result2) { echo "You have already voted"; } else { ... } This means that if either the username or ip or both exists in the db, then the user is denied... Hope this is along the lines of what your needing

Re: [PHP] PHP Editor - which to use?

2003-09-24 Thread Eugene Lee
On Wed, Sep 24, 2003 at 01:04:45PM -0400, Kevin Bruce wrote: : : Thanks:) I'll give BBedit a go for a week and let you know how it turns out. : Yes, Dreamweaver does sucketh much, but it's great for hashing out the page : (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing : nes

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Basically trying to limit the "vote" to just 1 per person, first am checking > if the the person with username has voted, if that comes back as false then > am checking his ip (because i dont know if the person changed his username > and is trying to vote agai

Re: [PHP] POST Parameters

2003-09-24 Thread Chris Shiflett
--- Stephan Becker <[EMAIL PROTECTED]> wrote: > With perl there is a CPAN modul that could act as a HTTPclient to > handle such HTTP issues properly. With PHP, there is PEAR: http://pear.php.net/package/HTTP http://pear.php.net/package/HTTP_Client http://pear.php.net/package/HTTP_Request Or, you

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Dan Joseph
Hi, Another way to restrict them to one vote is to set a cookie. Although not completely full-proof, its a method I've seen a lot of them use. -Dan Joseph > -Original Message- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 24, 2003 1:54 PM > To

Re: [PHP] PHP class and extends

2003-09-24 Thread Burhan Khalid
BENARD Jean-philippe wrote: [ snip ] Is there something to do in order that when I use xxx_cl_app->ExecuteQuery(), there's a function ExecuteQuery() in xxx_cl_app that do something like this : (xxx_cl_app.php) function ExecuteQuery(x,y) { $tmpResult = [herited_class]->ExecuteQuery(x,y);

Re: [PHP] date problem

2003-09-24 Thread Curt Zirzow
* Thus wrote Shaun ([EMAIL PROTECTED]): > Hi, > > Why does the following code print '00', surely it should print '08', I'm > baffled! > > date("H", mktime(8, 0, 0, 0, 0, 0)); kinda wierd, I say blame it on the y1969 bug. make sure your day and month don't go backwards, that seems to be what t

Re: [PHP] sql faq

2003-09-24 Thread Curt Zirzow
* Thus wrote Dan Anderson ([EMAIL PROTECTED]): > On Wed, 2003-09-24 at 12:30, Jonatan Pugliese. wrote: > > select MaeSocio.* from MaeSocio > > LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio > > where MaeSeguro.NroSocio is null > > > > MaeSeguro.NroSocio is not null > > > > count(*) M

Re: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread Ryan A
Hey John, Thanks for replying. > Just get rid of the check for IP address. All you're going to do is restrict > a bunch of people that actually haven't voted just because they have the > same IP address as someone else. Some ISPs have it so that all requests look > like they are coming from the sa

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread chris . neale
You could take it further and only allow one vote per user and then log their IP address as well. There won't be many people who are determined to sway the vote by going through the hassle of creating a new user and then voting again. But there may be some. You can weed these out by looking throug

Re: [PHP] How to achieve bi-directional communication between two servers?

2003-09-24 Thread Burhan Khalid
Daevid Vincent wrote: I have a script on all my client machines that checks into a master server to dump statistical information into a mysql database. That works great (using $_GET and an encrypted string). However, now I'd like to have the client check in to the master and see if it needs any up

  1   2   >