Re: [PHP] Re: Redirecting

2002-04-27 Thread The_RadiX
IOW ?? what's this abbrev? thx.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student :: 04475739 ::: - Original Message - From:

[PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread The_RadiX
Hi Y'all... Ok. I just got Apache 1.3.xx and I have PHP4.1.1 and MySQL 3.23.47 on WinXP Pro... I am currently using IIS5.1 with PHP4 and MySQL but I'd like to move across to Apache.. Catch is? I have hunted through all the FAQ's for Apache and there is no mention of how-to configure

[PHP] date format

2002-04-27 Thread Ananth Rajaraman
Hi all, I'm trying to query a date field from mySQL and display in a differnet format. the mysql date is in the format -MM-DD and I want to convert it to DD-MM- how do I do that? TIA Ananth = visit www.locustechnologies.com __ Do

Re: [PHP] date format

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 14:43, Ananth Rajaraman wrote: Hi all, I'm trying to query a date field from mySQL and display in a differnet format. the mysql date is in the format -MM-DD and I want to convert it to DD-MM- how do I do that? Use mysql's extensive date formatting

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Jason Wong
On Monday 22 January 2001 14:36, The_RadiX wrote: Hi Y'all... Ok. I just got Apache 1.3.xx and I have PHP4.1.1 and MySQL 3.23.47 on WinXP Pro... I am currently using IIS5.1 with PHP4 and MySQL but I'd like to move across to Apache.. [snip] BUT.. when I call $SERVER_NAME in my php's

Re: [PHP] Re: Redirecting

2002-04-27 Thread Jason Wong
On Monday 22 January 2001 14:31, The_RadiX wrote: IOW ?? what's this abbrev? in other words -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I hold it, that a little

[PHP] Another silly email

2002-04-27 Thread baldey_uk
Um im trying to take the input from a txt field in an html form (which happens to be a number) and convert it to currency. Anyone know if there is a function in PHP to do this or do i have to convert to a float etc? Cheers From baldey_uk -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: date format

2002-04-27 Thread George Nicolae
try ? $date=2002-04-27; echo date(d-m-Y,strtotime($date)); ? -- Best regards, George Nicolae IT Manager ___ PaginiWeb.com - Professional Web Design www.PaginiWeb.com Ananth Rajaraman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all,

Re: [PHP] date format

2002-04-27 Thread Miguel Cruz
On Fri, 26 Apr 2002, Ananth Rajaraman wrote: I'm trying to query a date field from mySQL and display in a differnet format. the mysql date is in the format -MM-DD and I want to convert it to DD-MM- how do I do that? How did you figure out anything else that you've done in MySQL?

Re: [PHP] Another silly email

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, baldey_uk wrote: Um im trying to take the input from a txt field in an html form (which happens to be a number) and convert it to currency. Anyone know if there is a function in PHP to do this or do i have to convert to a float etc? What do you mean by a currency? If you

Re: [PHP] Re: Redirecting

2002-04-27 Thread Liam MacKenzie
RTFM? what's this abbrev? - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 4:55 PM Subject: Re: [PHP] Re: Redirecting On Monday 22 January 2001 14:31, The_RadiX wrote: IOW ?? what's this abbrev? in other words --

[PHP] POST/GET is not working for PHP 4.2.0 on W2K Advanced Server

2002-04-27 Thread JaseyX
Hi there, Anyone else having trouble with vanished form posts/gets with the new PHP 4.2.0 on Windows 2000 Advanced Server? I re-installed 4.1.1 and everything worked again... Regs, Jason __ Do You Yahoo!? Yahoo! Health - your guide to health and

[PHP] 1. ImageTTFBox not working and 2. System command

2002-04-27 Thread Remek
Hi all, I have problem with TTF support on my vhost. PHP says it has no ttf support. The configure command is: './configure' '--prefix=/opt/php' '--enable-exif' '--with-apxs' '--enable-memory-limit=yes' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-ftp'

Re: Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-27 Thread Richard Archer
At 9:57 AM -0400 26/4/02, Alan McKay wrote: Session4 without Session4_custom uses native php containers, e.g. files or mm. Where is this session4? I pulled php-lib-stable out of CVS yesterday and do not see this anywhere. Is this part of the bleeding edge in php-lib (without the stable) in

[PHP] reg-ex please

2002-04-27 Thread John Fishworld
Help please from one of the reg-ex experts out there please ! I'm trying to find the pattern #(5 number); example #69880; This works $code[$i] = ereg_replace(#([0-9])+ , replace\\0.bing , $code[$i] ); and I get back replace #69880;.bing but I also want to lose the # and the ; so I get back

[PHP] PHP is making errors for no apparents reason..?

2002-04-27 Thread newton
Hi all.. I've been trying to understand actually what is the error in the following code for 2 hours, i played with the code, moved stuff around and the like but nothing worked.. Can someone help me please? The PHP error is as follow: Parse error: parse error in /usr/home/iro/numripps.php

[PHP] Failed to compiled w/ T1lib

2002-04-27 Thread Victor Boivie
To make a long story short: I'm trying to compile PHP 4.2 with Apache, GD, T1lib and more. This is what I'm using: [configuring apache first] ./configure --with-apache=../apache_1.3.24 --enable-ftp --with-mysql=/usr/l ocal/mysql/ --enable-track-vars --enable-inline-optimization --disable-debug

[PHP] CAllin PHP Gurus-FREE WEBHOSTING

2002-04-27 Thread r
Greetings guys/girls (Like there are many of them around on the list), Special greetings to Steve,Nathon,Michael,John and ANYBODY else who was kind enough to help me.) Anyway, I was not joking when I said free webhosting for you. Little bit of background first. I am in charge of buying

AW: [PHP] reg-ex please

2002-04-27 Thread Red Wingate
Try it like this : $code[$i] = ereg_replace(#([0-9] {5}); , \\1.bing , $code[$i] ); -Ursprüngliche Nachricht- Von: John Fishworld [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 27. April 2002 1:11 PM An: [EMAIL PROTECTED] Betreff: [PHP] reg-ex please Help please from one of the

AW: [PHP] reg-ex please

2002-04-27 Thread Red Wingate
Woops , one to many whitespace :) -- Try it like this : $code[$i] = ereg_replace(#([0-9]{5}); , \\1.bing , $code[$i] ); -Ursprüngliche Nachricht- Von: Red Wingate [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 27. April 2002 1:26 PM An: [EMAIL PROTECTED] Betreff: AW: [PHP]

[PHP] FreeMovie/PHP mailing lists

2002-04-27 Thread Jacek Artymiak
Hi, I set up two mailing lists for FreeMovie users. You can find links to these lists on the FreeMovie page http://freemovie.sourceforge.net Sorry, if you've seen this message on this list before, I was having some problems with my e-mail setup. Thanks, Jacek -- Encyklopedia

Re: [PHP] PHP is making errors for no apparents reason..?

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 22:19, newton wrote: Hi all.. I've been trying to understand actually what is the error in the following code for 2 hours, i played with the code, moved stuff around and the like but nothing worked.. Can someone help me please? The PHP error is as follow:

Re: [PHP] reg-ex please

2002-04-27 Thread John Fishworld
Excellent :-))) Thanks ! Can I trouble you again with one more ! I get an url http://whatever/file.whatever (text/html/chtml) Now trying to do the following get just the http://whatever bit and go through my array and find .gif or .html or .chtml and replace the eg pics/my.gif with

AW: [PHP] reg-ex please

2002-04-27 Thread Red Wingate
Sure :) -Ursprüngliche Nachricht- Von: John Fishworld [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 27. April 2002 1:46 PM An: Red Wingate; [EMAIL PROTECTED] Betreff: Re: [PHP] reg-ex please Excellent :-))) Thanks ! Can I trouble you again with one more ! I get an url

[PHP] current date query

2002-04-27 Thread Thomas Goeminne
Hi, I am a beginning programmer and I am missing my Mysql/php book for some days so I can't look up what i need. i need a query something like this: query= SELECT from calender WHERE ('$day','$month','$year')= current date i need a script that looks in my database for events that are going

[PHP] Re: PHP is making errors for no apparents reason..?

2002-04-27 Thread michael kimsal
if (!$chck) { $zquery = SELECT name from users WHERE handle like '$row[handle]'; $zres = mysql_query($zquery); $zrow = mysql_fetch_array($zres); $user = $zrow[name]; $query = INSERT into husers values (\'$row[handle]\' , \'$user\');

[PHP] Directory System Splitter

2002-04-27 Thread Randum Ian
Hi guys, trying to get my head around possible code for this problem. My website has various sections which have their own directory like below: HOME - Main part of the website CHARTS - Various DJ charts MUSIC - Review, News and other things and so on.. At the top of each page I have a link

Re: [PHP] Directory System Splitter

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 20:34, Randum Ian wrote: [snip] For example: http://www.danceportal.co.uk/diary/2002/may/ has this in the panel: Home / Diary / 2002 / May / -- These are links back down the system of directories.

Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-27 Thread Maxim Derkachev
Hello Richard, Saturday, April 27, 2002, 2:24:21 PM, you wrote: RA It's in the unsup directory. Maxim's release notes are in there too. No, I meant the file session4.inc in the php-lib/php/session. session4_custom.inc release notes (quite outdated, but still usable) are there too. It's

php-general Digest 27 Apr 2002 13:25:00 -0000 Issue 1311

2002-04-27 Thread php-general-digest-help
php-general Digest 27 Apr 2002 13:25:00 - Issue 1311 Topics (messages 94846 through 94891): Re: Opening manual - .bz2 94846 by: John Holmes Re: good php editor for the mac 94847 by: Miguel Cruz Re: Variables not working 94848 by: Nathan 94850 by: baldey_uk

RE: [PHP] Re: date format

2002-04-27 Thread John Holmes
No...Do it in your query. Use DATE_FORMAT in your query. ---John Holmes... -Original Message- From: George Nicolae [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 12:43 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: date format try ? $date=2002-04-27; echo

RE: [PHP] Another silly email

2002-04-27 Thread John Holmes
How about number_format www.php.net/number_format ---John Holmes... -Original Message- From: baldey_uk [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:20 PM To: Php-General Subject: [PHP] Another silly email Um im trying to take the input from a txt field in an html

RE: [PHP] PHP is making errors for no apparents reason..?

2002-04-27 Thread John Holmes
$zquery = SELECT name from users WHERE handle like '$row[handle]'; Missing an ending quote here. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] current date query

2002-04-27 Thread John Holmes
SELECT * FROM calendar WHERE date_column = CURDATE() ---John Holmes... -Original Message- From: Thomas Goeminne [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 5:25 AM To: [EMAIL PROTECTED] Subject: [PHP] current date query Hi, I am a beginning programmer and I am

RE: [PHP] POST/GET is not working for PHP 4.2.0 on W2K Advanced Server

2002-04-27 Thread John Holmes
Register_globals is off by default and you have to use the $_GET and $_POST arrays for your data. ---John Holmes... -Original Message- From: JaseyX [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 1:38 AM To: [EMAIL PROTECTED] Subject: [PHP] POST/GET is not working for PHP

RE: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread John Holmes
Use $_SERVER[SERVER_NAME] ---John Holmes... -Original Message- From: The_RadiX [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 21, 2001 10:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Apache: SERVER_NAME gone? Hi Y'all... Ok. I just got Apache 1.3.xx and I have PHP4.1.1

[PHP] Stop to fast caching/parsing

2002-04-27 Thread Jan Peuker
Hi List, my Problem is, on the second line of my script I validate a session. If it's false, it dies. But in the first line, I require a header(html,body,title etc.). Now, if a session fails, my die-Message ends in a script-Part, so nobody sees it but gets an error by JS. Is there any way to

Re: [PHP] Stop to fast caching/parsing

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 22:49, Jan Peuker wrote: Hi List, my Problem is, on the second line of my script I validate a session. If it's false, it dies. But in the first line, I require a header(html,body,title etc.). Now, if a session fails, my die-Message ends in a script-Part, so nobody

[PHP] PHP Training in NYC

2002-04-27 Thread Daniel Kushner
Hi Group, I would like to remind any beginner PHPers that live near (or in) New York City that the next PHP Training will take place on May 8th - 9th. More information at http://www.websapp.com/training.php Best regards, Daniel Kushner -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: help needed with headers

2002-04-27 Thread Yuri Petro
Try this: header (Content-type: text/plain); header (Content-disposition: attachment; filename=file.txt); -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Vins [EMAIL PROTECTED] I would like to create a text file that doesn't save to disk but askes me to save the file. like

[PHP] Re: auto_increment

2002-04-27 Thread Yuri Petro
MySQL: create table foo ( id int not null auto_increment primary key, state enum('enabled', 'disabled') ); PostgreSQL: create table foo ( id int not null primary key default nextval('foo_id_seq'), state varchar(8) check (state in ('enabled', 'disabled')) ); create sequence

[PHP] Re: BBS system

2002-04-27 Thread Yuri Petro
PHPBB is REALLY best! :-) http://www.phpbb.com/ -- Kind regards, Yuri. www.AceHoster.com Quality web hosting R [EMAIL PROTECTED] Hey all, Just a small q, does anybody know of any particular good BBS system that is free? (I aint rich :-( ) Been to hotscripts.com can you recomend

Re: [PHP] Stop to fast caching/parsing

2002-04-27 Thread Jan Peuker
But I WANT to do something else, loading other code! But ok, I will check at first, then include a short header before dying. This runs, but isn't beautiful. Thanks. Jan - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 4:56 PM

[PHP] Re: Stop to fast caching/parsing

2002-04-27 Thread Yuri Petro
http://www.php.net/manual/en/function.flush.php flush -- Flush the output buffer Flushes the output buffers of PHP and whatever backend PHP is using (CGI, a web server, etc). This effectively tries to push all the output so far to the user's browser. -- Kind regards, Yuri.

[PHP] Re: Counter ?

2002-04-27 Thread Yuri Petro
http://www.hotscripts.com/PHP/Scripts_and_Programs/Counters/Text_Based/ -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Cms [EMAIL PROTECTED] ???/ ? ?: news:r01050100-0922-9FEB9500593A11D68F37DC65D4C7C8B9@[192.168.0.14]... I am looking for a php

Re: [PHP] Re: BBS system

2002-04-27 Thread Chuck \PUP\ Payne
The I like I have try three now is phpnuke it so easy to set up you can have it up and running in 5 mins. YBBSE is another that is good. http://www.phpnuke.org http://www.yabbse.org | Chuck Payne | | Magi Design and Support | | www.magidesign.com

[PHP] PayPal: Instant Payment Notification

2002-04-27 Thread Lauri Vain
Hello there, Has anybody worked with PayPal's Instant Payment Notification? How exactly does it work -- will the payer ever go to PayPal's site itself (and leave my site for a sec) or will all contact with PayPal's servers be handled by my script? I have to write a system that enables

[PHP] Re: POST/GET is not working for PHP 4.2.0 on W2K Advanced Server

2002-04-27 Thread Yuri Petro
Just set register_globals to On in php.ini file. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Jaseyx [EMAIL PROTECTED] ???/ ? ?: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, Anyone else having trouble with vanished form posts/gets

[PHP] Producing images in different sizes

2002-04-27 Thread Ray Paseur 703.346.0600
This is off-topic, but someone in the group may have a good idea, so I'll ask it here. Please also reply to my email - [EMAIL PROTECTED] -- thanks. I am storing several detailed images at about 400x400 pixels (inventory for an art gallery). I show a page with thumbnails of the images. When a

Re: [PHP] Producing images in different sizes

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, Ray Paseur 703.346.0600 wrote: I am storing several detailed images at about 400x400 pixels (inventory for an art gallery). I show a page with thumbnails of the images. When a site visitor clicks on a thumbnail, I open a separate window to display the detailed image.

[PHP] right place to start a session?

2002-04-27 Thread Kirk Babb
Here's my code: html body ?php //trying to start a session right here for the usr and pwd variables session_start(); session_register(usr, pwd); if (isset($login)): ? FORM ACTION='?php echo($PHP_SELF); ? etc., etc where the usr enters their usrname and pwd but I get the

[PHP] IP and ICMP datagrams

2002-04-27 Thread Ero Stig Karlsen
I'm trying to write a trace route program in PHP. The algorithm in itself is not a problem, but i need to know how to set time to live (by number of hops) in an IP datagram and send it. I also need to be able to listen for and recieve ICMP messages and to exctract the IP adress of the sending

[PHP] init_set(): auto_append_file doesn't work?

2002-04-27 Thread Matt Wong
hello, init_set doesn't seem to work for setting auto_append_file, in php 4.1.2. the master setting is NULL, and the local setting is properly set when I do a phpinfo(), but the file never gets appended. Any ideas? thanks -Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: help needed with headers

2002-04-27 Thread Donna Robinson
Hi, I spent ages figuring this one out so it work work on Windoze, Linux, Mac, ... and this *always* works: Create a hyperlink for user to click on: echo ' td class=nbcc ahref='.$PHP_SELF.'?action=*download=txtDownload TXT/a/td'; On click, we come back in to this: if ( $action == '*' ) { if

Re: [PHP] right place to start a session?

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, Kirk Babb wrote: Here's my code: html body ?php //trying to start a session right here for the usr and pwd variables session_start(); session_register(usr, pwd); if (isset($login)): ? FORM ACTION='?php echo($PHP_SELF); ? ? session_start();

Re: [PHP] IP and ICMP datagrams

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, Ero Stig Karlsen wrote: I'm trying to write a trace route program in PHP. The algorithm in itself is not a problem, but i need to know how to set time to live (by number of hops) in an IP datagram and send it. I also need to be able to listen for and recieve ICMP messages

RE: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Philip Olson
because $SERVER_NAME is created IF the php directive register_globals = on. this setting is off by default as of PHP 4.2.0. all server predefined variables behave this way, such as $PHP_SELF, etc. regards, philip On Sat, 27 Apr 2002, John Holmes wrote: Use $_SERVER[SERVER_NAME]

RE: [PHP] POST/GET is not working for PHP 4.2.0 on W2K AdvancedServer

2002-04-27 Thread Philip Olson
also consider extract or import_request_variables as they can be useful too. regards, philip olson On Sat, 27 Apr 2002, John Holmes wrote: Register_globals is off by default and you have to use the $_GET and $_POST arrays for your data. ---John Holmes... -Original Message-

[PHP] session expires on server side

2002-04-27 Thread Aljosa Mohorovic
session cookie exists on client side and it is set to last 5 days. the problem is that after some time session data expires. cookie on client side exists ($PHPSESSID), but session data on server side does not exists. i think that the answer is something like: ini_set(session.cache_expire, 7200);

[PHP] Re: right place to start a session?

2002-04-27 Thread Kirk Babb
Thanks Miguel and Nathan for your help! If I can make this more secure I would definitely like to do so. Suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] compiling extensions from HEAD for 4.1.1?

2002-04-27 Thread Thomas Seifert
Hi folks, I would like to use a extension from the php4-cvs for my current php4.1.1-production-system. Is it possible to use such an extension? if so, how? using phpize produces error messages about the m4-macros. thanks a lot, Thomas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] right place to start a session?

2002-04-27 Thread Padraig Kitterick
The session_start() needs to come before any code outputs anything to the browser, so in your case you need to put it before the html and body tags: ?php session_start(); ? html body ? etc... Padraig Kirk Babb wrote: Here's my code: html body ?php //trying to start a session

[PHP] simplify if/then statement

2002-04-27 Thread Jim Long
Hi, I've got the following statement for a state options menu. How can this be expressed in a simple manner for all 52 states? //choose state if ($state == AL) { // include class include(CalcAL.class.inc); } else if ($state == AR) { // include class include(CalcAR.class.inc); } else if

Re: [PHP] PayPal: Instant Payment Notification

2002-04-27 Thread Jason Wong
On Sunday 28 April 2002 00:25, Lauri Vain wrote: Has anybody worked with PayPal's Instant Payment Notification? Not yet, but am about to. How exactly does it work -- will the payer ever go to PayPal's site itself (and leave my site for a sec) or will all contact with PayPal's servers be

Re: [PHP] Stop to fast caching/parsing

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 23:57, Jan Peuker wrote: But I WANT to do something else, loading other code! But ok, I will check at first, then include a short header before dying. This runs, but isn't beautiful. Thanks. If you want (hopefully) better suggestions, post your code. -- Jason Wong

RE: [PHP] simplify if/then statement

2002-04-27 Thread Stuart Dallas
$incfilename = Calc.$state..class.inc; if (file_exists($incfilename)) include($incfilename); else echo Please select a State.br\n; -- Stuart -Original Message- From: Jim Long [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 20:00 To: php Subject: [PHP] simplify if/then

Re: [PHP] simplify if/then statement

2002-04-27 Thread Jason Wong
On Sunday 28 April 2002 02:59, Jim Long wrote: Hi, I've got the following statement for a state options menu. How can this be expressed in a simple manner for all 52 states? //choose state if ($state == AL) { // include class include(CalcAL.class.inc); } else if ($state == AR) {

Re: [PHP] simplify if/then statement

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, Jim Long wrote: I've got the following statement for a state options menu. How can this be expressed in a simple manner for all 52 states? switch(strtolower($state)) { case 'al': include 'CalcALclass.inc'; break; case 'ar': include 'CalcALclass.inc';

[PHP] Re: init_set(): auto_append_file doesn't work?

2002-04-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Matt Wong) wrote: init_set doesn't seem to work for setting auto_append_file, in php 4.1.2. the master setting is NULL, and the local setting is properly set when I do a phpinfo(), but the file never gets appended. Any ideas? The function

Re: [PHP] PayPal: Instant Payment Notification

2002-04-27 Thread Gianluca Baldo
Hi all- Has anybody worked with PayPal's Instant Payment Notification? Not yet, but am about to. we integrated paypal in phpauction. At paypal.com, one you register as developer, you have access to their documentation. That's enough to get it working. How exactly does it work -- will the

RE: [PHP] simplify if/then statement

2002-04-27 Thread Philip Olson
I'd do something similar to this, along with putting all states in an array to make sure $state is actually a state (in_array). And maybe you want to add guam :) a) be sure $state is set, else load default b) be sure $state is not bogus, else yell at them c) be sure the $state file exists,

Re: [PHP] simplify if/then statement

2002-04-27 Thread Pekka Saarinen
Hi, Make an array $arr of all the states and loop $state = AR; $arr = array(); array_push($arr, AL, AR, AZ); foreach ($arr as $key = $value) { if ($state == $value){ include(Calc$value.class.inc); } } Cheers, Pekka http://photography-on-the.net/ At 4/27/2002, you wrote: Hi, I've

RE: [PHP] simplify if/then statement

2002-04-27 Thread Miguel Cruz
On Sat, 27 Apr 2002, Philip Olson wrote: I'd do something similar to this, along with putting all states in an array to make sure $state is actually a state (in_array). And maybe you want to add guam :) As an early Christmas present, here's the array (to save the OP some typing - I'm

Re: [PHP] simplify if/then statement

2002-04-27 Thread Jim Long
Using pull down for $state. This works great! $incfilename = Calc.$state..class.inc; if (file_exists($incfilename)) include($incfilename); else echo Please select a State.br\n; Thanks To Everyone, j -- http://jimlong.net/web I'd do something similar to this, along

[PHP] PHP-GTK 0.5.1 released

2002-04-27 Thread Andrei Zmievski
Hello, fans of GUI development! PHP-GTK 0.5.1 also known as hardboiled wonderland has escaped from the CVS holding pen. Be on the lookout. The identifying features are: - changed gdkwindow::set_cursor() to allow reverting the cursor to default one. (Andrei) - fixed

[PHP] tutorial on global variables

2002-04-27 Thread John Hughes
Can someone point me toward a tutorial on the proper use of global references under PHP4. I have been declaring function something() { global $foo, $bar; /* some actions */ } in functions and I understand that this is not the way I'm supposed to be doing this. Or there is a new way that

[PHP] sessions and reload/refresh

2002-04-27 Thread Javier
Is it possible that everytime un click the refresh button a new session is created? Here's my index.php Every time refresh this page a new session is created. ?php function MostrarPaginaPrincipal() { include html/index.html; } include include/sesiones.php; include

Re: [PHP] Producing images in different sizes

2002-04-27 Thread php3
I think he already has the best solution. Store two images. How many thumbnails are there on a page? At 1-2 seconds per image to resize how long will you make every visitor wait to see the thumbnails? Disk space is cheap. If you have to buy another drive - no big deal. I don't know about

Re: [PHP] Directory System Splitter

2002-04-27 Thread Paul Roberts
search zend.com for breadcrumbs - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 2:01 PM Subject: Re: [PHP] Directory System Splitter On Saturday 27 April 2002 20:34, Randum Ian wrote: [snip] For example:

[PHP] new guy

2002-04-27 Thread Don Tait
Running Apache 1.3 , XP Pro, and PHP 4.2 but get this: Can't find this ref: in apache conf nor php.ini Warning: Failed opening '/inetpub/wwwroot/test.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] 1. ImageTTFBox not working and 2. System command

2002-04-27 Thread heinisch
At 27.04.2002 18:59, you wrote: Hi all, I have problem with TTF support on my vhost. PHP says it has no ttf support. The configure command is: './configure' '--prefix=/opt/php' '--enable-exif' '--with-apxs' '--enable-memory-limit=yes' '--enable-track-vars' '--enable-trans-sid'

[PHP] Re: tutorial on global variables

2002-04-27 Thread Henrik Hansen
[EMAIL PROTECTED] (John Hughes) wrote: Can someone point me toward a tutorial on the proper use of global references under PHP4. I have been declaring function something() { global $foo, $bar; /* some actions */ } in functions and I understand that this is not the way

[PHP] Sessions and Query String Variable Handling

2002-04-27 Thread Dennis Moore
Env: Apache 1.3.x/php4.0.6/mysql3.23.x Scenario: I have built a system that uses PHP sessions for user access. Within the system I send user notifications via email. Within the email are links to certain pages with variables. For example. http://mysite.com/view_page.htm?id=6 My system

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
$page = $_SERVER[SERVER_NAME] . $_SERVER[SCRIPT_NAME] . $_SERVER[QUERY_STRING]; That will recreate the URL that the user clicked on. Save that to a variable before you check for a session. Once you start a session or verify that one exists, use header() to send them back to that page.

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
You'll have to add an http:// to that string, too. ---John Holmes... -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 5:50 PM To: 'Dennis Moore'; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions and Query String Variable Handling $page

Re: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread eric.coleman
You can also use $page = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; - Original Message - From: John Holmes [EMAIL PROTECTED] To: 'Dennis Moore' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, April 27, 2002 8:49 PM Subject: RE: [PHP] Sessions and Query String

[PHP] I've Got It :: Windows PHP Users Read This

2002-04-27 Thread Vins
if you get errors trying to include files cannot find include file in c:/php4/pear/ open up your php.ini and find the windows include path directive. paste this there include_path = ./ will sort out that error have fun Vins :-) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: new guy

2002-04-27 Thread Vins
check my new post I've Got IT :: Windows Users Read This will sort your prob out Cheerz Vins Don Tait [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Running Apache 1.3 , XP Pro, and PHP 4.2 but get this: Can't find this ref: in apache conf nor php.ini

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread The_RadiX
Hmm because $SERVER_NAME is created IF the php directive register_globals = on. this setting is off by default as of PHP 4.2.0. all server predefined variables behave this way, such as $PHP_SELF, etc. Yes so I've heard... One thing though.. I use PHP4.1.1... not 4.2.x Anywayz will try

Re: [PHP] Producing images in different sizes

2002-04-27 Thread Miguel Cruz
I'm guessing the issue is that it complicates the process of adding new images, because someone has to create and upload two corresponding files. This way, they get the benefit of rapid page generation combined with a simpler administration process. miguel On Sat, 27 Apr 2002 [EMAIL

Re: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread Dennis Moore
Thanks, Is there any way of doing this without using the header() to redirect? I have some functions that get executed before the sessions stuff. I am trying to avoid using output buffering or re-writing my code. /dkm - Original Message - From: John Holmes [EMAIL PROTECTED] To:

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
Not for server side. You can use a META REFRESH on the client side, but I personally find that ugly. This is why I always write my functions so that they don't output anything. They just assign the output to a variable and return it. That way, I can call the function anywhere, save the result,

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Philip Olson
On Tue, 23 Jan 2001, The_RadiX wrote: Hmm because $SERVER_NAME is created IF the php directive register_globals = on. this setting is off by default as of PHP 4.2.0. all server predefined variables behave this way, such as $PHP_SELF, etc. Yes so I've heard... One thing

Re: [PHP] Re: tutorial on global variables

2002-04-27 Thread Jason Wong
On Sunday 28 April 2002 04:39, Henrik Hansen wrote: [EMAIL PROTECTED] (John Hughes) wrote: Can someone point me toward a tutorial on the proper use of global references under PHP4. The manual has very good information. I have been declaring function something() { global

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Jason Wong
On Tuesday 23 January 2001 07:55, The_RadiX wrote: Hmm because $SERVER_NAME is created IF the php directive register_globals = on. this setting is off by default as of PHP 4.2.0. all server predefined variables behave this way, such as $PHP_SELF, etc. Yes so I've heard... One

[PHP] class PHP

2002-04-27 Thread Peter
The text of this proposal, test code, and updates live at petermoulding.com/class. I place it here for discussion of the best approach before people build code. Class PHP An invention for a classier PHP. This invention uses PHP classes as Web pages. The invention can be implemented as a

[PHP] does ImageCreateFromJPEG suck up memory?

2002-04-27 Thread DrTebi
Hi, I was using this little check to see if an uploaded image has the correct type: if($img $img_type != 'image/jpeg'){ $error['img'] = 'image has to be jpegBR'; } but the ImageCreateFromJPEG function in the next script returned: Warning: imagecreatefromjpeg: '/tmp/1.jpg' is not a valid

[PHP] Question

2002-04-27 Thread Gerard Samuel
Is it possible to have PHP find out the ethernet's card MAC address?? I know that one can parse the output of dmesg or equvalent to find it out, but that would be OS platform specific code. I just want to know if php has a native way of finding out that information. Thanks Gerard -- PHP

[PHP] PGP

2002-04-27 Thread Richard Lynch
Please Cc: me on replies... I've got to be doing something stupid, because I've succeeded at this PGP (gpg, whatever) stuff before (years ago), but... I'm doing this: $test = escapeshellarg($cleartext); exec(cat $test | /usr/bin/pgpe -a -t -f -r '[EMAIL PROTECTED]'

RE: [PHP] class PHP

2002-04-27 Thread John Holmes
Can someone translate this to English? -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 27, 2002 7:21 PM To: [EMAIL PROTECTED] Subject: [PHP] class PHP The text of this proposal, test code, and updates live at petermoulding.com/class. I place it

  1   2   >