Re: [PHP] Maintenance of POP3 accounts

2002-01-16 Thread mike cullerton
on 1/16/02 10:16 AM, HENDERSON, Roy at [EMAIL PROTECTED] wrote: I would like to be able to maintain ( ie create or delete ) POP3 accounts via PHP but my ISP says this cannot be done. I find this confusing since they provide me a PHP-based control panel which I use to do this manually ...

[PHP] Re: HTTP_IL_PAD global variable?

2002-01-16 Thread Julio Nobrega Trabalhando
I don't have it! Could not find using echo $HTTP_IL_PAD neither saw it at phpinfo(). Do you have any non-default module installed? -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Bill [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Newbie question on deleting directories using web Explorer

2002-01-16 Thread Embrace DaPain
From: Embrace DaPain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie question on deleting directories using web Explorer Date: Wed, 16 Jan 2002 11:47:27 -0500 I am trying to delete files using web explorer THere is a section in the code that states the following... Can I

RE: [PHP] Beginner: Open URL

2002-01-16 Thread Rick Emery
In your original post (see below), you stated that that you wanted A tag functinality, which would involve the user clicking. In your last post, you state that you do not want the user to click; which is it to be? Now, your question is really about re-direction based upon a condition, whereby

Re: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Jimmy
Hi Simos, mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); thewall sendmail[4513]: g0H10I604513: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost I am not sendmail expert, so i am just guessing. the nrcpts=0 in your log message might be stands for number of

Re: [PHP] PHP as a cron job

2002-01-16 Thread Tiago Luchini
Unable to open /home/admin/webmin-0.85/ in Unknown on line 0 this is possibly a path or env issue. have you tried using absolute filenames? Yes. Same thing happens with absolute or relative paths. what's the line in your code where this error occurs? it doesn't run any line at

Re: [PHP] PHP as a cron job

2002-01-16 Thread Tiago Luchini
I have to sweat my way through /usr/bin/php if that does not work try /usr/local/bin/php or ask the Unix Sysadmin. both paths work under a TTY but not when I send my script to cron. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] variable problem - help!

2002-01-16 Thread Rick Emery
$row[coloumname_${v$ariable}] -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 8:36 AM To: [EMAIL PROTECTED] Subject: [PHP] variable problem - help! Importance: High Hi! I 'm trying not to hard code my php coding and I'm trying to pass a

RE: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Rick Emery
Put quotes around the TO address: mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -Original Message- From: Simos Varelakis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] Help !! Mail Function Problem (Newbie) Hello

[PHP] Package Ready to Install !!!

2002-01-16 Thread rick
Hi guys , I would like to know if there any package ready to install with Apache , Mysql and PHP4 under Windows ??? I time ago I think , I saw such a package but I don't remenber the address or the link to the web site . If any of you know something I'll be looking forward

RE: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Simos Varelakis
mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); -- Thanks jim I still have the same problem even with mail([EMAIL PROTECTED], Subject, Line 1\nLine 2\nLine 3); and it has to do with permstions ... Wright now I notice that in /var/log/mail/errors exist a line Jan 16 20:20:34

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Erik Price
Kirk, Okay, I now understand why the $_GET and $HTTP_GET_VARS variables are useful. I had made the mistaken assumption that if I leave register_globals on, but write code that works with register_globals off, my code would somehow be safer simply for having been written this way. But this

Re: [PHP] Package Ready to Install !!!

2002-01-16 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 16-01-02 at 19:36 * rick said Hi guys , I would like to know if there any package ready to install with Apache , Mysql and PHP4 under Windows ??? I time ago I think , I saw such a package but I don't remenber the

[PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread Police Trainee
hello. i am trying to write a simple php line that checks the REMOTE_ADDR variable and see if it comes from a specific netblock (to see if A.B.C is contained in a REMOTE_ADDR of A.B.C.D) But how do i do this? i know there is a php function that checks the string for the presence of another one...

Re: [PHP] URGENT : PHP install error on Solaris 7

2002-01-16 Thread Dennis Moore
What is in line 205? It looks as though you are dynamically loading PHP. Are you compiling with --with-apxs in PHP?Just a thought... /dkm - Original Message - From: R'twick Niceorgaw [EMAIL PROTECTED] To: php general [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 12:03 PM

[PHP] using eregi - what regular expression rules does it use ? works in linux ( grep ) but not PHP - help needed

2002-01-16 Thread Neil
There not much documentation in the online manual about eregi. Apart from the usage I need to know more about what regx it uses, in the linux shell , using grep i got it right for my needs .. I want to find and reject content with email address .. [desiredating@opie desiredating]$ echo [EMAIL

Re: [PHP] URGENT : PHP install error on Solaris 7

2002-01-16 Thread R'twick Niceorgaw
Hi dennis, yes i'm using dynamic loading of PHP using --with-apxs line 205 is LoadModule /usr/apache/libexec/libphp4.so I can install php on solaris 8 on an intel (x86) machine using the same source code without any problem. I have gcc 2.95 on the intel machine where as gcc 3.0.1 on the sparc

[PHP] ODBC Connection

2002-01-16 Thread Ing. Fernando Proll Segura
Hi guys: I'm trying to make a connection from PHP to a MS Access. How can I do this?, I know that there are a function for this, but what about the parameters. Thanks in advanced, Fernando

[PHP] [SOLVED] RE: Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Simos Varelakis
ok i found it.. chmod o+w /var/spool/msqueue many thanks to all regards simos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread Police Trainee
nah, there's another one that you don't have to speficy the length. i remember seeing it used once when checking the user's browser to see if the string mozilla was contained within the variable... besides, i changed the string to check for by one digit and it still returned true because PART of

[PHP] Linux Book

2002-01-16 Thread Dennis Gearon
There are a MILLION linux news/listgroups, I didn't know which one to go to. But I knew someof you guys/gals use linux, (and proudly wear the 'nerd inside' t-shirt!) S. slightly OT, but what is the best linux book out there, aimed at admin/DNS/Networking? Thanks in advance. PS, the binary

[PHP] mySQL select statement with mulitple where definitions

2002-01-16 Thread Mike Krisher
someone here has to know the syntax for using multiple items in a where definition, something like: $values = 120106,120095; $sql = SELECT * FROM products WHERE catalognumber = $values ORDER BY price; Does this make sense, » Michael Krisher [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] PHP driven HTML-web front end software tools

2002-01-16 Thread Dennis Gearon
I'm slowly working on a PHP driven, html-web front end state machine design tool. It uses an XML repository for the data, and renders a PHP file for execution. It is good for moderate sized scripts and even better for designing the inside of objects. It would be a perfect compliment to a UML

RE: [PHP] ODBC Connection

2002-01-16 Thread Andrew Hill
Fernando, check http://www.php.net/odbc From Windows you can just create a System DSN and then use it in an odbc_connect() function. From some *nix flavor, you will need to build PHP --with-iodbc as per the howto at www.iodbc.org, and then install OpenLink's Multi-Tier ODBC driver with the

RE: [PHP] URGENT : PHP install error on Solaris 7

2002-01-16 Thread Maciej Uhlig
looks like a PHP bug... maybe you'd like to check the following bug history and try Jani's suggestion: http://bugs.php.net/bug.php?id=13023 Maciek -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 7:52 PM To: php general

Re: [PHP] CONTINUE - variable problem - help!

2002-01-16 Thread hugh danaher
Dani, Not that I've tried this exact condition but the internal portion of this array name works elsewhere. Give it a try. $row['${somename_.($var)}'] - Original Message - From: Dani [EMAIL PROTECTED] To: Stefan Rusterholz [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January

Re: [PHP] Linux Book

2002-01-16 Thread Miles Thompson
Dennis, Book, I don't know. I'd suggest starting with the Guides at the Linux Documentation Project, http://www.linuxdoc.org/guides.html and work from there, and don't forget the HOWTO's. The Linux System Admininstrators Guide was updated in Novemer, 2001 and The Linux Network Administrators

[PHP] Re: using eregi - what regular expression rules does it use ? worksin linux ( grep ) but not PHP - help needed

2002-01-16 Thread Philip Hallstrom
from the manual: These functions all take a regular expression string as their first argument. PHP uses the POSIX extended regular expressions as defined by POSIX 1003.2. For a full description of POSIX regular expressions see the regex man pages included in the regex directory in the PHP

[PHP] Need a quick tip...

2002-01-16 Thread Daniel Alsén
Hi, i need a quick tip. I need a page containing links to get information from a database from different timeperiods. I want the links to start from a given month, ie November 2001, and stretch to the present month. However - i don´t want to manually add a new link every month. How do i

[PHP] 8 bit check sum???? Not 32 bit

2002-01-16 Thread Brian C. Doyle
Hello all, I currently have a perl subroutine that uses an 8 bit check sum. From what I have found, in books and the site, php will only do 32 bit. Here is what I have currently sub _hash_domain { return uc( unpack('H2', pack('C',

RE: [PHP] 8 bit check sum???? Not 32 bit

2002-01-16 Thread Nathan Cassano
This is a strange request but here you go. function CRC8bit($data){ return (crc32($data) 255); } -Original Message- From: Brian C. Doyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] 8 bit check sum Not 32 bit

Re: [PHP] PHP as a cron job

2002-01-16 Thread mike cullerton
on 1/16/02 11:26 AM, Tiago Luchini at [EMAIL PROTECTED] wrote: Unable to open /home/admin/webmin-0.85/ in Unknown on line 0 this is possibly a path or env issue. have you tried using absolute filenames? Yes. Same thing happens with absolute or relative paths. what's the line in your

Re: [PHP] mySQL select statement with mulitple where definitions

2002-01-16 Thread mike cullerton
on 1/16/02 11:57 AM, Mike Krisher at [EMAIL PROTECTED] wrote: someone here has to know the syntax for using multiple items in a where definition, something like: $values = 120106,120095; $sql = SELECT * FROM products WHERE catalognumber = $values ORDER BY price; select * from products

Re: [PHP] PHP as a cron job

2002-01-16 Thread Anas Mughal
I am not clear on what you are trying do. However, let me tell you how we are running PHP scripts as cron jobs. We have setup cron to execute a shell script. The shell script invokes {path-to-php-binary}/php -q my_script.php That works fine. Hope that helps. --- mike cullerton [EMAIL

[PHP] php-4.1.1 and pspell

2002-01-16 Thread Ron Clark
I have a problem that I would be thankful if someone could help with. When php-4.1.1 is compiled using pspell-.12.2 and apache-1.3.22 with mod_ssl-2.8.22 apache core dumps when trying to start. Using the same configure options with php-4.0.6 and apache-1.3.22 and mod_ssl-2.8.22 everything works

Re: [PHP] PHP as a cron job

2002-01-16 Thread sundogcurt
I know this is a total hack job but could you say, set the location of the script as your default page in a browser, then open the browser via cron and it would run it as the page opens? I am interested in this too, I am VERY new to Linux and have only just started to look at cron, any

[PHP] mysql_fetch_row - how do I fetch a specific row?

2002-01-16 Thread Phil Schwarzmann
After I make a queryhow do I fetch a specific row from that query ?? Thanks!

[PHP] Re: Image Fields and PHP...

2002-01-16 Thread Lerp
Hi Zara, are you storing a path to the images in your db? Or the actual image? It's recommended that you stay away from storing actual images in the db. If you are storing a path the code below might help you out. It select a firstname, and an image according to an id. You'll have to change the

RE: [PHP] apache authentication

2002-01-16 Thread Simon Ritchie
Aaron and I have discussed this offline. He has a PHP front-end running on one server which he is using to control access to pages on another server (the target). He wants the front-end code to collect and check the user's credentials, then request an appropriate URL from the target and relay

Re: [PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread Michael Sims
At 10:58 AM 1/16/2002 -0800, Police Trainee wrote: in a nutshell: if (150.200.250.x is within $REMOTE_ADDR){dowhatever} There are a couple of different ways to accomplish this. One is: if (strpos($REMOTE_ADDR,150.200.250.) !== false) { //do whatever } You have to be careful with

Re: [PHP] Search Engine

2002-01-16 Thread LaserJetter
If I wanted to do a search engine for the web (and maybe for just a site) I would set up a MySQL database and have a record for each site which is included in the index. There would be fields for URL, Page title, Keywords and maybe description / text extract from the URL. It would be quite a

[PHP] find and replace help.. VERY important

2002-01-16 Thread Peter Sienkiewicz
Hello ladies and gentlemen, I need a function that opens up an HTML file and looks for position:absolute;top:1038px;left:104px then changes the left: value to be 100 less then it currently is so it should then look like position:absolute;top:1038px;left:4px The problem is that the

RE: [PHP] find and replace help.. VERY important

2002-01-16 Thread Rick Emery
If you're on a unix/linux system, you can use an AWK script -Original Message- From: Peter Sienkiewicz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] find and replace help.. VERY important Hello ladies and gentlemen, I need a

Re: [PHP] Newbie: Ending Sessions

2002-01-16 Thread Janet Valade
I'm not sure what you mean by the session is still active, but if you mean that the variables still are set to the same values, try moving the session_unregister after the session_unset, but still before the session_destroy. Janet - Original Message - From: Lee P Reilly [EMAIL PROTECTED]

Re: [PHP] mysql_fetch_row - how do I fetch a specific row?

2002-01-16 Thread Miles Thompson
Paul, The obvious question is Why do that? If there is a certain criteria you want to meet, it's generally better to do that in your select statement. Having got that out of the way, $result = mysql_query(SELECT * FROM a_table); $num_rows = mysql_num_rows($result); returns the number of

[PHP] Re: php 4.1 and DOMXML question.

2002-01-16 Thread Peter Clarke
function getNodeContent ($node) { $content = ''; $nodechild = $node-children(); if ( is_array( $nodechild ) ) { reset ($nodechild); while (list (, $val) = each ($nodechild)) { if ( $val-type == XML_TEXT_NODE ) { $content .= $val-content;

[PHP] Re: [PHP-DB] Re: [PHP] mysql_insert_id?

2002-01-16 Thread DL Neil
Hi Martin, 2 because the (function argument) controlling feature is the connection, it is not possible for another concurrent user to 'steal' your ID or influence the ID returned to you - it's all yours! Ok, assume you are correct, but what if you are using persistent connections (ie

Re: [PHP] mysql_insert_id?

2002-01-16 Thread DL Neil
Hi Jimmy, 2 because the (function argument) controlling feature is the connection, it is not possible for another concurrent user to 'steal' your ID or influence the ID returned to you - it's all Ok, assume you are correct, but what if you are using persistent connections (ie

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
Hi DL, the only problem i can think of might occur with pconnect is, last_insert_id() will return you the last inserted ID from previous 'session', not current 'session'. to prevent this, you should call last_insert_id() only when your INSERT query executed succesfully. =Of course a

Re: [PHP] mysql_insert_id?

2002-01-16 Thread mike cullerton
on 1/16/02 10:47 AM, Jimmy at [EMAIL PROTECTED] wrote: Hi DL, the only problem i can think of might occur with pconnect is, last_insert_id() will return you the last inserted ID from previous 'session', not current 'session'. to prevent this, you should call last_insert_id() only when

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
Hi mike, last_insert_id() will return you the last inserted ID from previous 'session', not current 'session'. to prevent this, you should call last_insert_id() only when your INSERT query executed succesfully. Most probably the returned value would be wrong, because it will return the

Re: [PHP] mysql_insert_id?

2002-01-16 Thread DL Neil
Hi Jimmy, the only problem i can think of might occur with pconnect is, last_insert_id() will return you the last inserted ID from previous 'session', not current 'session'. to prevent this, you should call last_insert_id() only when your INSERT query executed succesfully. =Of course

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
Hi DL, =session is not the correct word/its use is potentially confusing (perhaps that's why it's in quotes?) - persistence refers to the continuing connection between PHP and MySQL. yup, you're right. session is not the correct word, but i can't find the correct/easy word to subtitute

Re: [PHP] mysql_fetch_row - how do I fetch a specific row?

2002-01-16 Thread DL Neil
Phil, After I make a queryhow do I fetch a specific row from that query ?? =isn't the purpose of the query to return specific results? =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] PHP Security - view source code

2002-01-16 Thread Phil Schwarzmann
How easy/hard is it to view the PHP source code when you're at website? I noticed when I was using Internet Explorer, if I pressed view source...it would show the HTML but not the PHP. -Phil

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Erik Price
Okay, all of that discussion of predefined variables was well and good. I'm going through my code and changing everything over to use $_*['variablename']. The problem is that a good deal of my code consists of MySQL query statements with variables inside those statements. An example: $sql

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Richard Crawford
Well, if you do View Source on any browser, it will only show the source code of the HTML that the page has rendered, not the PHP/Perl/ASP/Cold Fusion/whatever that was used to generate the HTML code. So using View Source will never show you the programming behind the HTML. That said, I

[PHP] Re: Need a quick tip...

2002-01-16 Thread Philip Hallstrom
$m = 11; $y = 2001; $ts = mktime(0, 0, 0, $m, 1, $y); $rightNowTs = time(); while( $ts $rightNowTs ) { print( date(F j, Y, $ts) . br); $m += 1; $ts = mktime(0, 0, 0, $m, 1, $y); } will print out: November 1, 2001 December 1, 2001 January 1, 2002 On Wed, 16 Jan 2002,

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Jason Bell
The PHP code is parsed and interpreted at the server level, and then returns only the output to the browser. It is not possible to view PHP code via view source. - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 16, 2002 1:03 PM

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Richard Baskett
PHP is a server side language so the PHP engine parses all the php code in your webpage and then spits out html code. So when surfing through a website that uses PHP you will never see PHP code unless of course you screwed up and echoed the data :) Rick How wonderful it is that nobody need

[PHP] Business objects functionality in PHP

2002-01-16 Thread Chris Boget
Has anyone written (or know of something) that works similar to business objects that is written in PHP? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] Mail() Timeout

2002-01-16 Thread Ben Sinclair
Is there a way to shorten the timeout for the mail() function? Currently it will wait too long when it is unable to send mail, causing the browser to appear to hang. -- Ben Sinclair [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Erik Price
The entire page, PHP with HTML, is sent to the PHP engine. It follows the instructions of the PHP code, outputting only HTML and error messages, and then hands the data to the web server which sends it to your browser. Unless something damages the PHP engine, causing the webserver to serve

[PHP] Re: security benefits of predefined variables

2002-01-16 Thread Philip Hallstrom
My advice would be to do it like this: $variable = $_POST['variable']; // some PHP code that validates that $variable is something reasonable $sql = SELECT table.column FROM table WHERE criteria LIKE $variable; If you just do this: $sql = SELECT table.column FROM table WHERE criteria LIKE

[PHP] PHP HTML: newbie question

2002-01-16 Thread Richard
Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t parse line 1 Line 1 is simply the HTML tag!! On one of their user forums

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Richard Baskett
Send me your example page and I will be able to tell you what you did wrong and what to watch for. :) Thanks! Rick Too much caution is bad for you. By avoiding things you fear, you may let yourself in for unhappy consequences. It is usually wiser to stand up to a scary-seeming experience and

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Nick Wilson
* On 16-01-02 at 22:29 * Richard said Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t parse line 1 Line 1

Re: [PHP] fixing mail for broken Outlook

2002-01-16 Thread DL Neil
Hank, basically tabs and line breaks disappear ... almost like it's treating the message as html .. whitespace is history. =I haven't gone back to the RFC to see what the rules about tabs are - but then when does M$ follow 'the rules' (Outlook). =are you using a *nix box? There is a

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread mike cullerton
hmmm... not sure about the cgi part. you'll probably need to start the file with something like #!/usr/loca/bin/php -q either way, within the file, you also need to tell the php parser what is php and what is html. surround the php code with ?php ? tags like ?php $var = 'Hello World'; ?

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Richard Crawford
Just out of curiosity, what is the name of your page? It might be as simple as making sure it has a .php extension on your page. If it has an .html extension it won't work properly. Just a thought; I could be wrong about this. Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard

Re: [PHP] PHP HTML: newbie question

2002-01-16 Thread Erik Price
You mispelled the closing /body tag. On Wednesday, January 16, 2002, at 04:33 PM, Nick Wilson wrote: * On 16-01-02 at 22:29 * Richard said Hi there I just signed up for an account at Spaceports so I can play with PHP ­ I placed some PHP code in an HTML page and uploaded it to

[PHP] Re: security benefits of predefined variables

2002-01-16 Thread Erik Price
Ah, good call. Although, in your third example (the one where you say Then you might as well just do this:), you are using the $variable without the $_POST array -- with register_globals off, don't I have to use the $_POST array? But I see what you're saying, that I need to do some checking

Re: [PHP] security benefits of predefined variables

2002-01-16 Thread Rasmus Lerdorf
You can see where I'm going with this. Experiments of mine with using array elements within SQL statements brought some of my questioning to the list just last week. I found that the following did not work: $sql = SELECT table.column FROM table WHERE criteria LIKE $myrow['variable'];

Re: [PHP] Mail() Timeout

2002-01-16 Thread Rasmus Lerdorf
Fix your sendmail flags in your php.ini file to just queue up the mail. On Wed, 16 Jan 2002, Ben Sinclair wrote: Is there a way to shorten the timeout for the mail() function? Currently it will wait too long when it is unable to send mail, causing the browser to appear to hang. -- Ben

RE: [PHP] Re: Image Fields and PHP...

2002-01-16 Thread Gonzalez, Zara E
Joe (And/Or others), We are storing the actual images in the DB. We did not want our pictures to be on our webserver. Instead we felt it would be better to keep them on the database server. In order to do this, they had to be stored in the database itself since the database server is not

[PHP] Re: security benefits of predefined variables

2002-01-16 Thread Philip Hallstrom
Um... yes... you would need the $_POST array if register_globals is off... but since it's not off by default yet... :) On Wed, 16 Jan 2002, Erik Price wrote: Ah, good call. Although, in your third example (the one where you say Then you might as well just do this:), you are using the

[PHP] Remove value from array

2002-01-16 Thread phantom
$Str = apple,orange,cyanide,bananna $Arr = split(,,$Str); How do I remove the unwanted value from the array? (in this example, Cyanide ($Arr[2]) from the Fruit array)??? Thanks. array_splice()??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Mail() Timeout

2002-01-16 Thread Ben Sinclair
I changed my sendmail line to: sendmail_path = /usr/sbin/sendmail -t -i -O DeliveryMode=q That should place it in the queue instead of trying to send it immediately, right? It doesn't seem to work though... It still just sits there when it can't send the mail. -- Ben Sinclair [EMAIL PROTECTED]

Re: [PHP] Mail() Timeout

2002-01-16 Thread Ben Sinclair
I just noticed from phpinfo() that sendmail_path reads: /usr/sbin/sendmail -t -i -O DeliveryMode Did it really drop the =a or is it just a problem with phpinfo()? -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

Re: [PHP] Re: Image Fields and PHP...

2002-01-16 Thread Jason Bell
It basically comes down to speed. While there is nothing Technicaly wrong with storing the images in the database, accessing the images will become slower as the database gets larger, than if the files were stored on the filesystem. Whether or not this degredation of performance is acceptable or

RE: [PHP] Re: Image Fields and PHP...

2002-01-16 Thread Gonzalez, Zara E
Actually, I can't do that. Which is the whole problem I'm having. PHP fails when I try to pull the image field out of my database. After talking to others I thought it might be the @@textsize variable in MSSQL unfortunately setting it to a lower value did not solve my problem. I have recently

Re: [PHP] Re: Extending PHP

2002-01-16 Thread Yasuo Ohgaki
Anas Mughal wrote: Yasuo, I have created the module skeleton using the ext_skel script. I don't have any problems doing that. I am not able to create the dynamically loadable module library. Were you ever able to create a dynamically loadable module? How did you do it? Did you use a make

Re: [PHP] Remove value from array

2002-01-16 Thread Erik Price
This is a good one I just learned last week -- unset the variable. That is, unset($Arr[2]); or unset($Arr['cyanide']); from what I understand, the discovery of this easy way to do this was accidental. See the second annotation of array_splice() in the PHP manual here for the details:

Re: [PHP] mysql_insert_id?

2002-01-16 Thread DL Neil
Jimmy, However it is also possible that in order to save time the LAST_ID information is built into the resultset coming back from the INSERT - thus when mysql_insert_id() is called PHP would not need to go back to MySQL/last_insert_id(). yes, what you said could be true also. Well,

Re: [PHP] Mail() Timeout

2002-01-16 Thread Ben Sinclair
Placing it in quotes made it show up correctly in phpinfo(), however it still sits there if the email address is bad. For example, a domain that doesn't resolve. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Ben Sinclair [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

[PHP] Version conflicts with extentions

2002-01-16 Thread Anas Mughal
Does anybody know if I need to be concerned about version conflicts between the PHP executable and a dynamically loadable module? (e.g. my web hosting company's server is running PHP 4.0.3pl. Would it be okay for me to build a dynamic extention using PHP 4.1.1 and run it on the server.) =

Re: [PHP] Linux Book

2002-01-16 Thread Dennis Gearon
So Far, based on what feedback I have been given, these books are what I'll probably buy: 'Linux System Administration (Linux Library)' 'LPI Linux Certification in a Nutshell' 'Hacking Exposed' (second addition, first is said to be 'avoided', the second 'excellent') 'Hacking Linux

[PHP] Re: Version conflicts with extentions

2002-01-16 Thread Yasuo Ohgaki
Anas Mughal wrote: Does anybody know if I need to be concerned about version conflicts between the PHP executable and a dynamically loadable module? (e.g. my web hosting company's server is running PHP 4.0.3pl. Would it be okay for me to build a dynamic extention using PHP 4.1.1 and run it

Re: [PHP] Re: php 4.1 and DOMXML question.

2002-01-16 Thread Aaron
Well that works. But its a little bizzare. I have to do that to get the content of a node even when that node has no children... e.g. root stuff morestuffSOME TEXT GOES HERE/morestuff /stuff /root So even if the current node is morestuff I still have to do the

Re: [PHP] how to check REMOTE_ADDR to see if it contains PART of an ip

2002-01-16 Thread [EMAIL PROTECTED]
yeah, like strpos() you still could have gotten from the manual. strncmp() does it exactly, like strpos() but only searches the beginning, note that it returns false for matching strings for use in some sorting functions. ?php $testip = 150.200.250.x; $match = 150.200.250.; if

Re: [PHP] PHP Security - view source code

2002-01-16 Thread [EMAIL PROTECTED]
Apart from unfortunately placed ? 's or 's this is possible. A very common mistake is not to register all of your php file extensions with apache. I've seen a number of sites for example that didn't have the .inc extension registered, include() doesn't care about that, but if your includes

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Radu Filip
On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote: I've seen a number of sites for example that didn't have the .inc extension registered, include() doesn't care about that, but if your includes are under the document root of your website (that happens a lot too, i don't know why ?) and you

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Christopher William Wesley
On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote: I've seen a number of sites for example that didn't have the .inc extension registered, include() doesn't care about that, but if your includes are under the document root of your website (that happens a lot too, i don't know why ?) and you

[PHP] OSX Migration Problem

2002-01-16 Thread René Fournier
After some trial and [much] error, I finally have the latest version of PHP (4.0.6??) and MySQL running under Mac OSX 10.1.2. And they seem to be working... sort of. The only problem is when I try to load some pages that use the PHP Session ID function. Now, these exact pages--the whole site

[PHP] Mac OSX !?!?!?

2002-01-16 Thread René Fournier
Can someone PLEASE explain why I get the following error message under OSX (PHP+MySQL), but not under Windows ME or Linux? Warning: Cannot send session cache limiter - headers already sent (output started at /Users/rene/Sites/smartslitters/jupiter/europa/header.inc:6) in

Re: [PHP] Mac OSX !?!?!?

2002-01-16 Thread Richard Baskett
Kind of hard to say without source code for the session part.. Although the MySQL warnings, I got those because MySQL does not automatically start in OSX, if you know it's started then Im not sure, but if not.. go here to get the autostart utility: http://www.entropy.ch/software/macosx/mysql/

Re: [PHP] PHP Security - view source code

2002-01-16 Thread Rasmus Lerdorf
On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote: I've seen a number of sites for example that didn't have the .inc extension registered, include() doesn't care about that, but if your includes are under the document root of your website (that happens a lot too, i don't know why ?) and you

[PHP] Re: PHP Security - view source code

2002-01-16 Thread Billy Harvey
(1) avoid using .inc files; use .php files like for normal script No, it is safer to block access to .inc files with an httpd.conf rule. The way I approach this, besides blocking execution, is to put any sensitive files in a directory above the Document Root for the virtual domain. PHP can

Fwd: Re: [PHP] Remove value from array

2002-01-16 Thread [EMAIL PROTECTED]
I also just discovered how to check for these keys with no value as isset() will return false: ?php $arr = array(foo = bar); $arr[foo] = NULL; print_r($arr); // you can see foo is still there if (array_key_exists(foo, $arr)) { echo(it's there!); } ?

[PHP] gzinflate and gzdeflate

2002-01-16 Thread Mr Percival
Hi, Im having problems with the gzinflate and gzdeflate commands... I am trying to deflate a string of email addresses... If I only have one email address it will deflate and then inflate... If I add another email address to the string then when i try to inflate the string I get a buffer

<    1   2   3   >