Re: [PHP] Stripping characters.....

2002-04-27 Thread Justin French
Clarification: So really, what you want to achieve is to ONLY have the email address? I'm POSITIVE there's a better way with ereg_replace(), but I haven't got time to experiment, and i'm no expert :) So, what I figured was that you would loop through the $email, and if the first char wasn't a "<

[PHP] Wrapping Text

2002-04-27 Thread Scott Reismanis
Hi PHP digest readers. Ok I have a problem and a question which I am certain many share and even a solution to my problem, however I wish to hear how you dealt with this issue to see if there is a better method. Ok for my problem, it is regarding a smilie system. Currently what happens is if

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Cditty) wrote: > > > ieUser email address is "Chris Ditty" > > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTECTED]> > > > > I need to be able to strip the quotes

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cditty) wrote: > ieUser email address is "Chris Ditty" > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTECTED]> > > I need to be able to strip the quotes and everything between them and the > < > signs from the first one and then the na

[PHP] Stripping characters.....

2002-04-27 Thread CDitty
Hello all, Does anyone have any snippets of code that will strip several characters from a string? I am trying to figure out how to do this without using 3 different if statement blocks. This is what I am looking for. ieUser email address is "Chris Ditty" <[EMAIL PROTECTED]> or Chris

Re: [PHP] session expires on server side

2002-04-27 Thread Padraig Kitterick
Aljosa Mohorovic wrote: > 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: >

[PHP] array question--help

2002-04-27 Thread Mark Pelillo
I am a Newbie at PHP I am sure I am missing something small but... I am trying to create a form selection box which an alphabetically sort list of a unix group file. The group file has the format groupname::groupnumber: I have tried to create an array using the array=fgetcsv($fp, 30, ":") whi

RE: [PHP] class PHP

2002-04-27 Thread SP
Whatever it says the guy took a lot of time to write it out lol -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: April 28, 2002 3:46 AM To: 'Peter'; [EMAIL PROTECTED] Subject: RE: [PHP] class PHP Can someone translate this to English? > -Original Message- >

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 plac

[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]' --pubring=/home/bodyline/.

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

[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 "jpeg"'; } but the ImageCreateFromJPEG function in the next script returned: Warning: imagecreatefromjpeg: '/tmp/1.jpg' is not a valid JP

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

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 hear

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() >

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

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

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] 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 PROTECTED

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

[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

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

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

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

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

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

[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

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

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 yo

[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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[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 gtk::input_add

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.\n"; Thanks To Everyone, j -- http://jimlong.net/web > I'd do something similar to thi

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 post

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

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

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 t

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

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';

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

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.\n"; -- Stuart -Original Message- From: Jim Long [mailto:[EMAIL PROTECTED]] Sent: 27 April 2002 20:00 To: php Subject: [PHP] simplify if/t

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 Won

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

[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"); } e

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 and tags: Here's my code: > > > //trying to start a session right here for the usr and pwd variables > session_start(); > session_register("usr"

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

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

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-

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] 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 messa

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: > > > //trying to start a session right here for the usr and pwd variables > session_start(); > session_register("usr", "pwd"); > if (isset($login)): > ?> >

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 ' Download TXT'; On click, we come back in to this: if ( $action == '*' ) { if ( isset( $download ) ) { downloadFile( $download ); w

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

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

[PHP] right place to start a session?

2002-04-27 Thread Kirk Babb
Here's my code:

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] 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 s

[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

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

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

[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. www.AceHost

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

[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

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

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

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

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 "

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

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

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

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 an

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

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"; > > ech

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

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. > > http://www.danceportal.co.uk/charts/randumian/mon-

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

[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] 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 do

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 http://whate

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

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:

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

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]

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 t

[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

[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] 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 o

[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 𑃸 This works $code[$i] = ereg_replace("&#([0-9])+" , "replace\\0.bing" , $code[$i] ); and I get back replace 𑃸.bing but I also want to lose the &# and the ; so I get back 69880.bi

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 t

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

[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

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"

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 yo

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

  1   2   >