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

2003-09-24 Thread tjr
AEdiX - Original Message - From: jeffrey pearson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 11:59 PM Subject: Re: RE: [PHP] PHP Editor - which to use? I like to use Edit Plus. www.editplus.com It has the syntax highlighting for php, perl, java, and

Re: [PHP] Validation: Problems with header(Location) in PHP

2003-09-24 Thread Jason Wong
On Thursday 25 September 2003 08:46, Martin Raychev wrote: This is exasperating as well as a waste of time! it's not the code snip that is important Of course it is important. It is *your* code which is causing something which *ought to work* to not work. but the fact that I DO have to

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

2003-09-24 Thread Jason Wong
On Wednesday 24 September 2003 12:00, Shawn McKenzie wrote: O.K. I am collecting PHP code in a textarea and then using var_export() to a file for later use. In the file, the PHP is in single-quotes. I'm curious, why are you using var_export() if it's causing so many problems? Acutally why

Re: [PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-24 Thread Duncan Hill
On Tuesday 23 Sep 2003 19:59, Joe Harman wrote: Is there a CSV file out there for this Does anyone know where I can aquire a file that has IP address with the corresponding Postal Code? How do you handle dynamic IP pools that cover entire states (or countries) ? : (Some of AOL's IPs come to

Re: [PHP] Function in php

2003-09-24 Thread Becoming Digital
You could also get lazy and just use @strpos(). Tom's way is (obviously) better, Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Uma Shankari T. [EMAIL PROTECTED] Cc: PHP [EMAIL PROTECTED] Sent: Wednesday, 24

[PHP] Re: SQL statement

2003-09-24 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello, Im having a bit of trouble with the DATE_FORMAT function in mysql. $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM custlogon'); I know its failing because php doesnt like the quotation before

[PHP] present php code with css

2003-09-24 Thread Decapode Azur
For people interested in presenting php code on their web site and integrate it with their css, here is a small sed script I have made. Just change the colors in it, or move it to your css. === # Put php sources in SRC dir, or change FROM definition. FROM=SRC DEST=listing if [

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

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]

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

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

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 sounds

[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

[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

[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

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.

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

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, banking

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

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 host 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

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:

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

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

[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: select name=start_date_year ?php $i = 1; while ($i = 4){ if ($i + 1 == date(Y, strtotime($_GET[mysql_date]))){ echo 'option

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

[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? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i.''.$i.'/option'; $i+=15; } ? Thanks for your help -- PHP General

Re: [PHP] Print current and next three years

2003-09-24 Thread Marek Kilimajer
$current=date('Y'); for($i=0;$i4;$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: select name=start_date_year ?php $i = 1; while ($i = 4){

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? select name=start_date_minute ?php $i = 0; while ($i = 45){ echo 'option value='.$i.''.$i.'/option'; $i+=15; } ? Thanks

[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

Re: [PHP] Print current and next three years

2003-09-24 Thread Becoming Digital
select name=start_date_year ? for( $i=0;$i3;$i++ ) { $year = date( 'Y' )+$i; echo 'option value='.$year.''.$year.'/option'; } ? /select Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: Shaun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[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

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

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 an

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 that

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.

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 cron job

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

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:

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,

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. But

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['origin'],

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 in

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: if

[PHP] Re: Users Online

2003-09-24 Thread pete M
I've dome this recently using a small iframe src=users_online.php in the top right corner. users_online.php has the meta refresh tag set. META HTTP-EQUIV=refresh content=2;URL=users_online.php pete Matias Hohl wrote: Hello php-Freaks I would like to display the number of users that are

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 iframe src=users_online.php in the top right corner. users_online.php has the meta refresh tag set. META HTTP-EQUIV=refresh content=2;URL=users_online.php

[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: ? class Ovelha { var $age; var $owner; function __construct($age, $owner) { $this-age = $age; $this-owner = $owner; }

[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 iframe src=users_online.php in the top right corner. users_online.php has the meta refresh tag

[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 iframe

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, so

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

[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

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=valueValue2=value How can I retrieve those values in

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

[PHP] Re: Accepting data from URL Parameters

2003-09-24 Thread Gal
try this: ?php echo 'Value1 = '.$_GET['Value1']; echo br\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

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: ?php echo 'Value1 = '.$_GET['Value1']; echo br\n; echo 'Value2 = '.$_GET['Value2']; ? even better try this: ?php foreach ($_GET as $key=$value) { echo $key = $valuebr /; } ? -Jackson Jared Steckel wrote: I

[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', how

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 Pine.LNX.4.21.0309241037390.2263- [EMAIL PROTECTED], [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:

[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 the

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 number

[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 Commences: 24th

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: Booking

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 writing

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:

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 server

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:

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.. will

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. page_1.php ?php session_start(); $bar = 'hello'; $now = date('H:i:s'); $_SESSION['foo'] = $bar; $_SESSION['begin'] = $now; header('Location: page_2.php?'.SID); exit; ? page_2.php ?php session_start(); print_r($_SESSION); echo

[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: [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 may want to

[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

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

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 *high school memoryHwat the hell do I need typing

[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

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 retype this

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

[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', surely

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

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 know

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 :

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 again) now

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

  1   2   >