[PHP] Mailing, which is faster

2001-09-06 Thread Niklas Lampén
Which is faster (and/or smarter), using function mail() or doing it by popen(/blah/sendmail)? Niklas

[PHP] Searching help

2001-09-06 Thread Devon
$Query = SELECT * FROM enet WHERE TechContact LIKE '%' AND AdminContact LIKE '%'; This query simply prints out my entire tables, is there a way using PHP so I can make the '%' a user input so they can search the table under those fields. Cheers -- PHP General Mailing List

[PHP] Re: Searching help

2001-09-06 Thread Daniel Masur
$Query = SELECT * FROM enet WHERE TechContact LIKE '%$Avar1%' AND AdminContact LIKE '%$Avar2%'; try this. Avar1/2 needs to be replaced by your var that u use in your html form Devon [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $Query = SELECT * FROM

Re: [PHP] file uploads grief on linux, but okay on BSD

2001-09-06 Thread Rasmus Lerdorf
Are you using move_uploaded_file() to move the file into place? On Thu, 6 Sep 2001, Justin French wrote: Hi all, My understanding of the whole file uploading thing is not fantastic, and i'm unsure where to go next with this one. I have a file-upload script which works fine on my test

[PHP] R: Running php script with ?var=string query inside another php script

2001-09-06 Thread ---
if include doesn't work or isn't an optimal solution, you can also use fopen: this will make another request to the webserver, like a client request, but sometimes is useful. write: $fp = fopen(http://www.site.com/script.php?var=string..., this should work. Federico

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
Sort of yes I thought it can be done with the /e modifier! Can't it be done with pure RegExps? * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Original message From: _lallous [EMAIL PROTECTED] Date: Wed, Sep 05, 2001 at 12:17:21PM +0200 Message-ID:

Re: [PHP] session - why does this not work?

2001-09-06 Thread * RzE:
Original message From: Christian Haines [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 03:15:05AM +1030 Message-ID: [EMAIL PROTECTED] Subject: [PHP] session - why does this not work? hi all, any ideas why this does not work? its just a simple script to test multi-dimensional arrays. the count

[PHP] php.ini not being read

2001-09-06 Thread Brett
Changes made to my php.ini file are not showing up upon a restart of apache. I compiled php to use the php.ini in a directory of my choosing and this is the directory which phpinfo() reports the php.ini file to be found. Yet all changes are ignored. Any ideas why? brett newman [EMAIL

Re: [PHP] str_replace and arrays

2001-09-06 Thread * RzE:
Original message From: Gerard Samuel [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 01:10:15AM -0400 Message-ID: [EMAIL PROTECTED] Subject: [PHP] str_replace and arrays Hey all. Im trying to reduce some lines of code that has muliple lines of str_replace. I figure lets try using arrays but

[PHP] Re: how do I?

2001-09-06 Thread _lallous
onMouseOver=info(?$xline=__LINE__; Dunno, should this be: onMouseOver=info('?$xline=__LINE__;.') instead? I mean I see no quotes surrounding the javascript string (that is generated from PHP). Adrian D'Costa [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
Sort of yes I thought it can be done with the /e modifier! Well... the /e modifier is used. But you have a different problem, you're matching over multiple lines. That's what the /m modifier is for. Can't it be done with pure RegExps? Ehh... no. How would you implement an if-statement

[PHP] mysql_fetch_array

2001-09-06 Thread nate
Can someone tell me what i'm doing wrong here? ?php //Connect to db $db = mysql_pconnect(localhost,login,pass); mysql_select_db(database,$db); //Check for the IP $result2 = mysql_query(SELECT ip FROM ip where ip = '$REMOTE_ADDR',$db); while($myrowmysql_fetch_array($result2)) { echo Print

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
Ehh... no. How would you implement an if-statement then? I thought I could have build a regexp that allow you to specify a default value of a subset if it was not matched... and it seems there is no way then! Thanks Renze. * RZe: [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] mysql_fetch_array

2001-09-06 Thread David Robley
On Thu, 6 Sep 2001 18:09, [EMAIL PROTECTED] wrote: Can someone tell me what i'm doing wrong here? ?php //Connect to db $db = mysql_pconnect(localhost,login,pass); mysql_select_db(database,$db); //Check for the IP $result2 = mysql_query(SELECT ip FROM ip where ip =

[PHP] Question.

2001-09-06 Thread Johan Vikerskog (EMP)
I have done this before but my memory fails me. I am trying to just loop threw ny array and display it. one row per result. How do you do that again? //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Whacky WGET issue...

2001-09-06 Thread Tom Carter
A much better way of doing this would be use to mod_rewrite. an apache module that basically applies regular expressions to urls This would give you a way of avoiding passing variable but without resorting to the work around of 404 - Original Message - From: Sondra Russell [EMAIL

[PHP] How to implement e-mail facility?

2001-09-06 Thread Balaji Ankem
Hi friend, I want to mail a user if he forget password . How to implement that. What are all the requirements. please see the following code. ?php $user_name=Balaji Ankem; $user_mail=[EMAIL PROTECTED]; mail($user_mail,Thanks for visiting,Dear $user_name,\n We appreciate your visit.);

[PHP] php

2001-09-06 Thread AJDIN BRANDIC
Hi I am trying to run a php script of the shell but am getting No Such File or Directory error. I am executing it from cgi-bin but have tried from httpdocs. chmod is 777. Path to php is /usr/local/lib/php. Any idea why is this happening. Part of my code:

Re: [PHP] Re: Running php script with ?var=string query inside another php script

2001-09-06 Thread Dave.O
I cant drop the query (?var=string) as the second script wont do what I want it to do without it. The query in the second script is required for that script to perform the function correctly. Dave - Original Message - From: Ben Holt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [PHP] How to implement e-mail facility?

2001-09-06 Thread Kraa de Simon
Edit the [mail function] section in php.ini: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path = HTH, Simon. -Original Message- From:

[PHP] echo $PHP_SELF doesn't work in an include

2001-09-06 Thread Andre Lacour
I include another script-file with include_once. Now the output of my PHP-Vars ($PHP_SELF, $REQUEST_URI, $DOCUMENT_ROOT) is empty. In my parent-scripts the output works fine, but in the include is neither outputs the parent-data nor the include-data. -- PHP General Mailing List

Re: [PHP] echo $PHP_SELF doesn't work in an include

2001-09-06 Thread indrek siitan
Hi, I include another script-file with include_once. Now the output of my PHP-Vars ($PHP_SELF, $REQUEST_URI, $DOCUMENT_ROOT) is empty. In my parent-scripts the output works fine, but in the include is neither outputs the parent-data nor the include-data. try echo $GLOBALS[PHP_SELF]. if

[PHP] Re: authenticate

2001-09-06 Thread Owe André Jørgensen
Yes, that would be simple... if you was thinking about not showing the 'Realm' variable. I've never heard of any way of ridding yourself of the Site stuff.. if(!isset(PHPAUTH_USER)) { header('WWW-Authenticate: Basic realm='); header('HTTP/1.0 401 Unauthorized'); echo Some error

Re: [PHP] http get vars missing?? track vars enabled - HELP

2001-09-06 Thread Owe André Jørgensen
Kirk Johnson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm about ready to go insane over this one. I have the following link. http://www.wayneswoodworks.net/test/samples.php3?key=1 When I get into samples.php3 I do: $record =

[PHP] Re: Question.

2001-09-06 Thread _lallous
how you mean it/be more specific? while (list(, $value) = each($array)) { echo value = $value\n; } Johan Vikerskog [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].. . I have done this before but my memory fails me. I am trying to just loop threw ny array and

RE: [PHP] echo $PHP_SELF doesn't work in an include

2001-09-06 Thread Andre Lacour
Hi, I include another script-file with include_once. Now the output of my PHP-Vars ($PHP_SELF, $REQUEST_URI, $DOCUMENT_ROOT) is empty. In my parent-scripts the output works fine, but in the include it neither outputs the parent-data nor the include-data. try echo

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
On Wednesday 05 September 2001 21:22, Ouster wrote: I'm making a sort of cache system. I fell to this problem: I leave a cookie with the timestamp of the last access, and when the user reconnect, I compare the timestamp of the last change with the timestamp sent me with the cookie. Then I

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
Original message From: _lallous [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 11:34:45AM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] For the RegExps gurus! Ehh... no. How would you implement an if-statement then? I thought I could have build a regexp that allow you to specify a

Re: [PHP] PHP Stress Testing.

2001-09-06 Thread Tom Carter
I agree with the point about the spec of machine... a lot of comparisons are made using machine where the spec of the machine ends up being the bottleneck. Also, PHP is more tolerant then say JSP in the code you write, it is possible to write some really bad php apps which work albeit very

Re: [PHP] 304 Not Modified

2001-09-06 Thread [EMAIL PROTECTED]
The problem is that PHP has to generate the Last-Modified header, so it can't send only the HTTP/1.0 304 not modified, that is what I want. I think Last-Modified relies on the last modified date and time of the file, but this is irrilevant in server-generated pages. Thank you for your help.

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
And another option... --- PHP code --- PRE ?php $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world www.helloworld.com; /* -- ! First regexp ! -- */ // $mem = preg_replace (/\s+([http:|ftp:]{0,1}\S+\.\S+)/me, ' A // href=\'. //

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
On Thursday 06 September 2001 12:28, [EMAIL PROTECTED] wrote: The problem is that PHP has to generate the Last-Modified header, so it can't send only the HTTP/1.0 304 not modified, that is what I want. You send the Last-Modified on the requests where you *do* send a page back (i.e. those not

Re: [PHP] Making gd Extensions

2001-09-06 Thread Dan Mahoney, System Admin
On Thu, 6 Sep 2001, Dennis Moore wrote: I wrestled with this for about an hour before I looked at WHY the heck the configure script thinks it knows more than I do. Apparently if it can DECOMPRESS a GIF (i.e., Make a PNG *from* a gif, which the FreeBSD installer and some packages like rpms are

[PHP] Statement Confusion

2001-09-06 Thread Jordan Elver
Hi, Could any one explain what this statemnt means? $i = (!$i)?0:$i; Thanks, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Reg---PHP Installation error

2001-09-06 Thread senthilvellan
Hello Techies, I have installed php-4.05 and php4.06 under linux7.1(Red hat).Kernel( 2.4.2-2). The installed lists are: 1.jdk1.2.2 2.jsdk2.0 3)mysql3.23.38 I got the following error while configuring php in both versions(4.05 and 4.06).The configure options is

Re: [PHP] Statement Confusion

2001-09-06 Thread Pavel Jartsev
Jordan Elver wrote: Hi, Could any one explain what this statemnt means? $i = (!$i)?0:$i; http://www.php.net/manual/en/language.operators.comparison.php RTFM :) -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Re: Question.

2001-09-06 Thread Johan Vikerskog (EMP)
ok i have this: ?php include ../config.php; $result = mysql_query(SELECT os from sdb_entries); while($row=mysql_fetch_array($result)) { $os = $row[os]; echo $os; } ? Now i want the echo to make a new line instead of putting everything into one large chunk. Help?!? //Johan the senile

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
Thanks alot man! They are all still using /e switch... ;) * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... And another option... --- PHP code --- PRE ?php $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello

Re: [PHP] Statement Confusion

2001-09-06 Thread Hugh Bothwell
Pavel Jartsev [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jordan Elver wrote: Hi, Could any one explain what this statemnt means? $i = (!$i)?0:$i; Well, literally, if not-$i is equivalent to true then $i becomes string 0, otherwise $i 'becomes' $i.

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread _lallous
The reason I don't want to use the /e switch is that i'll be able to port that expression to perl or to javascript. * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... And another option... --- PHP code --- PRE ?php $mem = Hello world!

Re: [PHP] Re: Question.

2001-09-06 Thread Daniel Masur
echo $os\n; \n does a newline in php, that u only will see in your sourcecode or echo $os\nbr\n; will do a brake in the source, and one in online layout better read php.net first, before posting suh stuff here. Johan Vikerskog [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

RE: [PHP] Re: Question.

2001-09-06 Thread Jon Haworth
So echo a br as well. echo $os. br; //this will do the trick Cheers Jon -Original Message- From: Johan Vikerskog (EMP) [mailto:[EMAIL PROTECTED]] Sent: 06 September 2001 12:24 To: '_lallous'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Question. ok i have this: ?php include

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
Original message From: _lallous [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 02:28:03PM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] For the RegExps gurus! Thanks alot man! They are all still using /e switch... ;) /Original message Reply Yep... still using /e switch. I'm not

[PHP] Re: Compare String in Case-Sensitive

2001-09-06 Thread _lallous
MySql is case sensitive but you have to make sure that you defined your field with BINARY attribute. Augusto cesar castoldi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi. I'm need to compare username and password in Case-Sensitive. When I do the query

Re: [PHP] The future of PHP

2001-09-06 Thread Sean C. McCarthy
B. van Ouwerkerk wrote: I can tell you that in general, companies in Europe appears to be more open to open-source solutions much more than ones in the US. Of course, Europe is comprised of lots of different countries, and each country has lots of different companies, so your mileage may

[PHP] Re: php

2001-09-06 Thread _lallous
Hmm? Are you trying to run it as a shell script? If so it doesn't matter where you put it as long as it have the Execute flag turned on and correct path to script handler. did you try this: ./scriptname.php ? Ajdin Brandic [EMAIL PROTECTED] wrote in message

[PHP] Re: How to implement e-mail facility?

2001-09-06 Thread _lallous
?php $user_name=Balaji Ankem; $user_mail=[EMAIL PROTECTED]; $result = mysql_query(SELECT password FROM users WHERE name='$user_name' ); $r= mysql_fetch_row($result); $user_password = $r[0]; mail($user_mail,Thanks for visiting,Dear $user_name,\n We appreciate your visit.\nYour password is:

[PHP] Refreshing form with submittd data

2001-09-06 Thread Seb Frost
I have 3 radio buttons, and I want the one selected by the user to show as selected when the page reloads. The form uses POST and points to itself. here's what I have: if ($thumbs==faster) { echo input type=\radio\ checked value=\faster\ name=\thumbs\Faster loading; echo input

[PHP] session

2001-09-06 Thread Wilbert Enserink
hi all, i'm trying to use session variables. people can login using a loginform. if they are already logged in I want the previous session to be destroyed before the new session starts. if it's their first login the session shoulds also start. if I first login with name1/password1 I give url1

[PHP] Executing a CGI script from a PHP script

2001-09-06 Thread Patrick Dunford
The server I am on uses a CGI script to get a count for home pages. With server side includes it is executed using the Apache exec SSO directive and works well. The problem with PHP is that the CGI script when executed by Apache sets a lot of environmental variables that apparently aren't set

[PHP] Re: session

2001-09-06 Thread Owe André Jørgensen
First of all, we look a little bit on your code.. It should be something like this: code --- ?php if (true == session_is_registered(main_session_variable) { session_unregister('sessie_loginnaam'); session_unregister('sessie_status'); session_unregister('sessie_url');

Re: [PHP] Refreshing form with submittd data

2001-09-06 Thread David Otton
On Thu, 6 Sep 2001 13:46:59 +0100, you wrote: I have 3 radio buttons, and I want the one selected by the user to show as selected when the page reloads. The form uses POST and points to itself. How can I make this better? With a text field I can just do input type=\text\ name=\foo\

RE: [PHP] Refreshing form with submittd data

2001-09-06 Thread Seb Frost
Thank you thank you thank you. Sheer genius :-) -Original Message- From: David Otton [mailto:[EMAIL PROTECTED]] Sent: 06 September 2001 22:18 To: Seb Frost Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Refreshing form with submittd data On Thu, 6 Sep 2001 13:46:59 +0100, you wrote: I have

Re: [PHP] Statement Confusion

2001-09-06 Thread Rouvas Stathis
Jordan Elver wrote: Hi, Could any one explain what this statemnt means? $i = (!$i)?"0":$i; if (!$i) then $i = "0"; else $i = $i; -Stathis Thanks, Jord -- Jordan Elver Web Developer The InternetOne UK Ltd -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] book help - where is O'Reilly's PHP Programming???

2001-09-06 Thread Leone, Brian
What I have been waiting for is an O'Reilly book on PHP and today I just discovered that Rasmus supposedly edited it for them (titled, PHP Programming), and was supposed to be published at the beginning of the summer. However, both Amazon.com and BN.com say it still hasn't been published.

Re: [PHP] Re: php

2001-09-06 Thread AJDIN BRANDIC
Hi Is it true that a script will not execute if it was uploaded/ftp-ed in a Binary mode rather that ASCII? Ajdin On Thu, 6 Sep 2001, _lallous wrote: Hmm? Are you trying to run it as a shell script? If so it doesn't matter where you put it as long as it have the Execute flag turned on and

RE: [PHP] Re: Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Joe Sheble \(Wizaerd\)
I've searcded PHPBuilder.com, zend.com, hotscripts.com, and php.net... can't find anything -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 2:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Tracking shipments UPS, FEDEX, etc...

[PHP] mysql timestamp field

2001-09-06 Thread Mesut Tunga
Hi all, I need an update on my table. but I have a timestamp field called t_stamp. When I update a field other than t_stamp field, t_stamp field also updates to now(). I need it not to update and saves its value. How should I do this? Regards Mesut Tunga... -- PHP General Mailing List

[PHP] Problem with header()

2001-09-06 Thread Stonix
Hi, Can anyone tell me why header cannot been used after any network operation? In my script, there are following steps: 1).a socket is opened for smtp; 2).send email; 3).closed the socket; 4).use header() to redirect to another page. If no 1), 2) and 3), 4) can be processed without any

Re: [PHP] mysql timestamp field

2001-09-06 Thread Jason Stechschulte
On Thu, Sep 06, 2001 at 05:09:43PM +0300, Mesut Tunga wrote: I need an update on my table. but I have a timestamp field called t_stamp. When I update a field other than t_stamp field, t_stamp field also updates to now(). I need it not to update and saves its value. How should I do this?

Re: [PHP] Session destruction

2001-09-06 Thread * RzE:
Original message From: Kristofer Thorssell [EMAIL PROTECTED] Date: Thu, Sep 06, 2001 at 04:56:17PM +0200 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Session destruction ? session_start(); if(session_destroy()) echo You are now logged out; ? is there something wrong with this? because

[PHP] how to execute a php script thru a cron job

2001-09-06 Thread Carry Ian
hello, can anybody suggest me how to execute a php file thru a cron job? i have a php script which checks for invalid links in my links database and mails the result to the site admin if any 400 series errors are found. thanks in advance. regards carry Carry Ian e-mail: [EMAIL

Re: [PHP] how to execute a php script thru a cron job

2001-09-06 Thread Daniel Rezny
Hello Carry, Thursday, September 06, 2001, 5:05:53 PM, you wrote: CI hello, CI can anybody suggest me how to execute a php file thru a cron job? CI i have a php script which checks for invalid links in my links database and mails the result to the site admin if any 400 series errors are

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
Got another solution. So far the first solution not using the /e modifier. It's not realy the best solution, but I'm still trying to improve it. Getting closer every time... --- PHP code --- PRE ?php $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world

Re: [PHP] remote scripting objects

2001-09-06 Thread Alfredo Yong
Ok, fine but what about something like this: say you have a page with a dropdown to select cities and a second dropdown to select places in the previously selected city. You change the cities dropdown and normally you reload all the page to fill in the places for the second dropdown. Say also

[PHP] browsing permission

2001-09-06 Thread Wilbert Enserink
Hi all, anybody knows a way to protect a directory on my webserver from browsing via a webbrowser. browsing is only permitted after users have logged in via a form on the website (so, I'm not able to use htaccess). thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526

Re: [PHP] remote scripting objects

2001-09-06 Thread MailingLists
In the ASP page I've been developing for work (yeah, I know... icky ASP...) I have an order form on the screen. The first field is a custmer number. In the OnBlur even for that form field, the javascript on that page instantiates a remote scripting object, which calls another ASP page to

[PHP] Re: how to execute a php script thru a cron job

2001-09-06 Thread Hidulf
php script.php will able to run the php script in command line -- Hidulf http://www.hidulf.com Carry Ian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... hello, can anybody suggest me how to execute a php file thru a cron job? i have a php script which checks for invalid links

RE: [PHP] browsing permission

2001-09-06 Thread Jon Haworth
Without .htaccess you have two options: 1. Does your host offer a control panel? Mine has one where I can add password protection to any directory I wish - worth checking out. 2. require() a php file at the top of every page in that directory that does this: if (user is allowed here) {

Re: [PHP] php includes === Dreamweaver library items

2001-09-06 Thread George Whiffen
Robert, Your time and trouble in going through the issues are much appreciated, and I'm starting to warm to the idea of FastTemplate. It seems DYNAMIC BLOCK is the answer to the itty bitty little html file problem, but I'm still not entirely happy.. a) Nested Loops I notice the warnings about

[PHP] book help

2001-09-06 Thread Nikola Veber
Hi ! As I wrote earlier, I am a begginer in php and I don't have much experience in other programming languages. I have bought the PHP developer's cookbook and , just as I was told, I have read on-line tutorials for beginners(I read as many as I could find), but I still find this book rather

Re: [PHP] Determining IP address

2001-09-06 Thread mike cullerton
hmmm... for those of us really in the know... spoofing doesn't let an invalid user get access to sensitive data on your site. if someone is spoofing a valid ip address, the return packets will travel to the spoofed ip address, not to the 'real' ip address of the spoofer. so, even though they

[PHP] Previous / Next Buttons

2001-09-06 Thread Michael O'Neal
Hi, what's the simplest way to provide previous/next buttons that navigate through individual records of a database? This is for a photo gallery, so I want to do one record at a time until I'm out of records, then I want the next button to disappear. I've been fiddling with it for a while now,

[PHP] SESSIONS! - please help

2001-09-06 Thread Christian Haines
hi all, PHP-4.03pl LINUX 7.0 i am still having problems with sessions. the following does nothing but should appear to do something! it is just a simple experiment to test that sessions work. session_test.php calls session_proc.php to perform one of three functions. i would really appreciate

RE: [PHP] Previous / Next Buttons

2001-09-06 Thread Jack Dempsey
http://www.phpbuilder.com/columns/rod2221.php3 jack -Original Message- From: Michael O'Neal [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:41 PM To: Php-General@Lists. Php. Net Subject: [PHP] Previous / Next Buttons Hi, what's the simplest way to provide

Re: [PHP] password sanity checker

2001-09-06 Thread George Whiffen
A cheap and cheerful rule is to insist on at least one numeric. Then you don't have to bother with a dictionary check! The php to force only alphas and numerics (upper or lower case) and at least one numeric is something like : - if (!ereg(^[a-zA-Z0-9]*[0-9][a-zA-Z0-9]*$,$password)) {

Re: [PHP] book help

2001-09-06 Thread Alexander Deruwe
On Thursday 06 September 2001 16:35, Nikola Veber wrote: Can anyone who has this book suggest what chapters should I read first or which topics on php are the most apropriate for a beginner. You shouldn't use the cookbook in that way. Try like this: You are writing whatever application it is

[PHP] HTML table creation software

2001-09-06 Thread Seb Frost
I expect I'll get flamed for being off topic but never mind. I'm fine with creating simple tables and stuff - even nested a couple of levels. But there's so many sites these days with super-complex table layouts. How are these created? Is it just some super-talented table guru who codes the

RE: [PHP] Previous / Next Buttons

2001-09-06 Thread Jeff Oien
Hi, what's the simplest way to provide previous/next buttons that navigate through individual records of a database? This is for a photo gallery, so I want to do one record at a time until I'm out of records, then I want the next button to disappear. I've been fiddling with it for a while

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
Okay... this time an even better solution, without the /e modifier. Think this comes pretty close to some final solution. --- PHP code --- PRE ?php $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world www.helloworld.com; /* -- ! Fifth regexp !

Re: [PHP] Previous / Next Buttons

2001-09-06 Thread Chris Lee
I just use LIMIT its alot better, alot less CPU intensive. if (!isset($pos)) $pos = 0 SELECT * FROM product LIMIT 0, $pos $pos++ if ( !((SELECT count(*) FROM product) $pos) ) a href='$PHP_SELF?pos=$pos'Next/a you get the idea. Chris Lee [EMAIL PROTECTED] Jeff Oien [EMAIL

[PHP] Re: SESSIONS! - please help

2001-09-06 Thread Chris Lee
this allways buggers people up session_register(count); $count = array(); should be $count = array(); session_register(count); you have to set the var first before registering it. you should also check if the var is allready registerd ($HTTP_SESSION_VARS[]) if so, dont

[PHP] Re: Mailing, which is faster

2001-09-06 Thread Chris Lee
benchamrking is a common question with a common answer, try it yourself, depending on your situation/hardware/software this will very greatly from machine to machine. -- Chris Lee [EMAIL PROTECTED] Niklas lampén [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] php includes === Dreamweaver library items

2001-09-06 Thread Robert V. Zwink
George Whiffen, a) Nested Loops One problem that I see is that if I have nested loops: !-- BEGIN DYNAMIC BLOCK: loop1 -- {LOOP1_VARIABLE} !-- BEGIN DYNAMIC BLOCK: loop2 -- {LOOP2_VARIABLE} !-- END DYNAMIC BLOCK: loop2 -- !-- END DYNAMIC BLOCK: loop1 -- I can assign

[PHP] Problem with session controiler files in PHP on Roxen

2001-09-06 Thread Andreas Lundgren
Hello! We installed php 4.0.6 in a Roxen 2.1.625 web server on Solaris 7. Now we have a problem with temporary session files. The session_start() command will abort with the following error message: Warning: open(/tmp/sess_e8771af1171a6cbdf51eebdba5199d25, O_RDWR) failed: m (0) in

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
And here is version 5.2! I optimized the search patterns. I found out that there was only a very limited scope of URL's that was matched... So I pretty much fixed that now (see the example). Repeating elements from the patterns have been extracted and put in an array, so that you can easily see

SV: [PHP] HTML table creation software

2001-09-06 Thread anders nawroth
I use some rather complex table layouts. I make them with modular programming. Every function that produces a TABLE also produces a /TABLE. And such a function maybe calls another function that also puts a table inside the HTML. And so on ... That way I can keep track on what's happening!

[PHP] Problems with Sessions?

2001-09-06 Thread Tim
When I first browse to a site on my LAN, I get links with URLs that look like this: chat/?PHPSESSID=f3d149f79f5196bd709fb3c256dbb3d8 after a refresh, the whoe PHPSESSID goes away. Wondered if there was some setting in php.ini that I've overlooked? I'm running PHP4 with Apache on an Unstable

[PHP] PHP regexp powerful?

2001-09-06 Thread Jeff Lewis
I have a lot of scripts written in perl here and have been using PHP a lot now. I am wondering if PHPs regexps are powerful or not. I will show a small section of this code below that I clean up witht he perl scripts. It cleans it almost right up but take a look :) And YES there is

RE: [PHP] Re: Mailing, which is faster

2001-09-06 Thread Matthew Loff
Doesn't PHP exec sendmail when mail() is called anyway? (Unless you run another MTA, of course) I would think they'd take the same amount of time, unless there is overhead with using popen() --Matt -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread ~~~i LeoNid ~~
On Wed, 5 Sep 2001 12:15:34 +0200 impersonator of [EMAIL PROTECTED] (* RZe:) planted I saw in php.general: This should do the job: ... You can keep improving:) or you can use piece of my working (except for $Harlem, to which i am not going:) code (I give it for free this time:) No /me, no

[PHP] Unresolved Mistery Error in PHP

2001-09-06 Thread Webmaster
Hi people: I trying to run a script from my shell but I get this error: [root@corotu docs]# ./phorummail php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared object file: No such file or directory Well, some people said to me that usually this library is located in

Re: [PHP] mysql_fetch_array

2001-09-06 Thread sagar
hi, just go thru ur code once u'll getout with the bug. $myrowmysql_fetch_Array($result2); what is $myrow and to which value should the left part should compare. try this : ?php file://Connect to db $db = mysql_pconnect(localhost,login,pass); mysql_select_db(database,$db); file://Check

[PHP] Line number of error

2001-09-06 Thread Jonathan Hilgeman
Is there any way to print the current line number? i.e. 43 print blah; 44 print this is line $LineNumber; 45 print etc; and have it result in : blahthis is line 44etc ? - Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Dan Harrington
No kidding :-) or calculating shipping costs. -Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 11:47 PM To: General PHP List Subject: [PHP] Tracking shipments UPS, FEDEX, etc... has anybody written any routines or

[PHP] PDFLib to generate 2+ page with same content

2001-09-06 Thread Norman
Hi ! I have used the PDFLib to generate a pdf by myself. I would like to know how to make a page break and then draw second page which the content is exactly the first page. I need to repeat this step 9 times so I can use printer function to print 9-in-1 page. Thank you very much !!

Re: [PHP] PDFLib to generate 2+ page with same content

2001-09-06 Thread Rasmus Lerdorf
I have used the PDFLib to generate a pdf by myself. I would like to know how to make a page break and then draw second page which the content is exactly the first page. I need to repeat this step 9 times so I can use printer function to print 9-in-1 page. Why not just put a loop around

[PHP] nested loop confusion

2001-09-06 Thread Jerry Lake
Ok, I will try to explain myself as clearly as possible please let me know if I need to be more so. On my admin page I have a review form. there is a select box that is self populating from a readir. that part works fine. however I would like for the files to not show up if they have been used

RE: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Brian V Bonini
Doesn't UPS provide tools to do this? Not necessarily using PHP but I thought -Original Message- From: Dan Harrington [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 3:45 PM To: Joe Sheble (Wizaerd); General PHP List Subject: RE: [PHP] Tracking shipments UPS,

Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Christopher CM Allen
has anybody written any routines or functions they'd care to share for parsing the tracking information out of UPS, FEDEX, or other shipping carriers tracking pages? /* Begin FEDX GROUND */ $fp = fopen

  1   2   >