Re: [PHP] Re: sanitizing/security

2004-12-21 Thread Chris Shiflett
--- Richard Lynch [EMAIL PROTECTED] wrote: What regular expression does one use when there really isn't a whole lot you can say about the text?... I mean, say for a guestbook or bulletin board or for a person's Bio or... You can limit it to a certain number of characters in length. You

[PHP] Re: Help wth coding

2004-12-21 Thread M. Sokolewicz
Karl James wrote: Team I am trying to teach myself php through a book I got at the store. Its kinda rough with limited programming experience. I was wondering if you could take a look at my code and tell me or write the code so it Will work and make comments in it so I know what I did wrong.

[PHP] Nameserver checking ?

2004-12-21 Thread Dave Carrera
Hi List, Is there a way of checking a list of say 10, 100, 1000 domain names to see if they actually point to our nameservers and report back which ones are not ? I would really appreciate any help you may give with this enquiry and I thank you fully in advance Dave C -- No virus found in

[PHP] External scripts in safe mode

2004-12-21 Thread Chadwin Tom
Hello If this is an inappropriate place to seek help, many apologies, and where might I try? I have a PHP 4.1.2 script on Red Hat (Apache 1.3.27) which calls an external script (Tidy, from tidy.sourceforge.net). It is called via popen() so that I can pipe through some arguments and receive

[PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Eakin, W
Hello, This question could be seen as a general programming question, but because PHP is what I know best, I'll ask it here. A good friend of mine is the person who got me more interested in programming as a career. She's a professional COBOL programmer, and works for a large bank. She once

[PHP] Re: Writing new code vs. re-writing someone else's code

2004-12-21 Thread M. Sokolewicz
W Eakin wrote: Hello, This question could be seen as a general programming question, but because PHP is what I know best, I'll ask it here. A good friend of mine is the person who got me more interested in programming as a career. She's a professional COBOL programmer, and works for a large

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Ian Firla
Good question. Personally, I think I tend to write more new code than reworking old code. However, I have taken on numerous projects where I've been required to port ASP to PHP and MSSQL dbs to Postgre or MySQL... but these projects also require a fair bit of new code. There are *so* many

[PHP] Re: An object oriented database in PHP?

2004-12-21 Thread symbulos partners
Jason Barnett wrote: Symbulos Partners wrote: Has anybody implemented an object oriented database in PHP yet? Boy you are new ;) Check out the PEAR DB package for several OO implementations. Is PEAR DB not a OO DB API? Is there a OO DB embedded? -- symbulos partners -.- symbulos -

RE: [PHP] An object oriented database in PHP?

2004-12-21 Thread symbulos partners
Brandon Thompson wrote: We use Propel for all of our development. Where can we find more about it? -- symbulos partners -.- symbulos - ethical services for your organisation http://www.symbulos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] couldnt backup database

2004-12-21 Thread Sagar C Nannapaneni
Hello all, I've a table in my database with 1 lakh records using a disk space of around 50Mb. I wanted to download the records. I used phpmyadmin (coz my hosting provider doesnt allow remote access to my db) to export the database but its not working for larger databases. I thought that it

[PHP] Using encrypted passwords (what we would like to achieve)

2004-12-21 Thread symbulos partners
What we would like to achieve? If a malicious user finds a way of entering of accessing the docroot (rwx) of a website with CMS (PHP + MySQL), we would like to have further barrier to him accessing the Mysql database. We had some problem with one hacker using the database of a website with PhpBB

[PHP] Re: nntp://news.php.net -- read only?

2004-12-21 Thread karthikeyan
Jason Barnett wrote: Jason Morehouse wrote: Sorry for the lame question... but I prefer to read and reply to messages via the news server. However, I can't seem to post to news.php.net. I'm using thunderbird, and have tried a few different outgoing servers, including news.php.net. Is the

Re: [PHP] An object oriented database in PHP?

2004-12-21 Thread John Nichel
symbulos partners wrote: Brandon Thompson wrote: We use Propel for all of our development. Where can we find more about it? Google is your friend. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Justin French
On 21/12/2004, at 9:41 PM, Eakin, W wrote: The question is, how much of your time (you, the professional PHP coder reading this), is spent rewriting/repairing old code vs. writing new code. When I'm working on a new project, my time is generally spent hooking into my existing framework with new

Re: [PHP] can I compile php source

2004-12-21 Thread Paul Aviles
Bruce, that is the typical answer when someone has a God complex and feels is his duty to teach everyone to be like him... Don't worry just feel sorry for him. QT, take a look at these links http://www.zend.com/store/products/zend-safeguard-suite.php http://www.sourceguardian.com/ just some of

[PHP] Re: php terminal.

2004-12-21 Thread Bogomil Shopov
Hello First try to ask what permissions you have on your server. After that if you have permissions you can using system() command to emulate some functionality. Regards Bogomil Shopov http://purplerain.org Adwin Wijaya wrote: Hello all.. Since my webhosting didnt provide me with telnet access,

Re: [PHP] can I compile php source

2004-12-21 Thread Raditha Dissanayake
Bruce Douglas wrote: and this response was helpful to the guy who asked the original question, how i mean, aside from showing that you know how to do a link, what did you show peace... You have shown that you are a newby to mailing lists. -- Raditha Dissanayake.

Re: [PHP] can I compile php source

2004-12-21 Thread Raditha Dissanayake
Paul Aviles wrote: Bruce, that is the typical answer when someone has a God complex and feels is his duty to teach everyone to be like him... Don't worry just feel sorry for him. Your sympathy is misplaced. -- Raditha Dissanayake.

Re: [PHP] can I compile php source

2004-12-21 Thread John Nichel
Paul Aviles wrote: Bruce, that is the typical answer when someone has a God complex and feels is his duty to teach everyone to be like him... Don't worry just feel sorry for him. QT, take a look at these links http://www.zend.com/store/products/zend-safeguard-suite.php

RE: [PHP] can I compile php source OT

2004-12-21 Thread Jay Blanchard
[snip] Bruce, that is the typical answer when someone has a God complex and feels is his duty to teach everyone to be like him... Don't worry just feel sorry for him. [/snip] So, if I teach everyone to be like me, which includes the following traits; a. I RTFM 2. I STFW and STFA III. I try to

[PHP] Liveticker problem

2004-12-21 Thread Ross Hulford
Her is the code (not mine) what I am trying to so is cut out all the header info that is included in the message as shown here http://supercool-74.com/sms/liveticker.php The message is supposed to be terminated by the xx string which is defined in config.php but it just continues and prints

Re: [PHP] can I compile php source

2004-12-21 Thread Greg Donald
when someone has a God complex I always thought that was a basic requirement for being a programmer.. *shrug* -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] can I compile php source OT

2004-12-21 Thread Paul Aviles
the delivery is the problem not the thought process. people are trying to find answers not being lectured and reprimanded. Many people are getting into the field and are new and may not have the wisdom or experience other people have. Think about it How many times have you been dealing with

Re: [PHP] can I compile php source

2004-12-21 Thread Paul Aviles
no sympathy, reality. So, if someone asks how to past the max_upload size limit will you send them to google or maybe point them to your web site how-to? hmmm. be kind, is free, and people will respect you more. - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] Cc:

[PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread Raditha Dissanayake
It's sad to see how the quality of the help you can get in this list has dropped of late. It's not because of the people who post off topic messages or don't bother to read the FAQ or RTFM before posting. It's because of the people who immidiately spring to the defence of the off topic

RE: [PHP] An object oriented database in PHP?

2004-12-21 Thread Brandon Thompson
symbulos partners wrote: Brandon Thompson wrote: We use Propel for all of our development. Where can we find more about it? Google is your friend. http://propel.phpdb.org It requires PHP 5, plus it requires additional tools like Creole and Phing (similar to Ant). The

RE: [PHP] can I compile php source OT

2004-12-21 Thread Jay Blanchard
[snip] the delivery is the problem not the thought process. people are trying to find answers not being lectured and reprimanded. Many people are getting into the field and are new and may not have the wisdom or experience other people have. Think about it How many times have you been

[PHP] Compiling PHP Source guides

2004-12-21 Thread Donald Tyler
Hi, I am looking for a guide on compiling PHP 4. I am a complete newbie to compiling and have no idea where to start, so any links to guides and/or other useful info would be much appreciated. My reason is that I need MySQL 4 support, but I would like to get a general overview of compiling a

RE: [PHP] can I compile php source

2004-12-21 Thread Jay Blanchard
[snip] no sympathy, reality. So, if someone asks how to past the max_upload size limit will you send them to google or maybe point them to your web site how-to? hmmm. be kind, is free, and people will respect you more. [/snip] Nope, because the question requires more than a yes or no

Re: [PHP] can I compile php source

2004-12-21 Thread Paul Aviles
some people will never get it. - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Paul Aviles [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:41 AM Subject: RE: [PHP] can I compile php source [snip] no sympathy, reality. So, if someone asks how to

RE: [PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread Jay Blanchard
[snip] It's sad to see how the quality of the help you can get in this list has dropped of late. It's not because of the people who post off topic messages or don't bother to read the FAQ or RTFM before posting. It's because of the people who immidiately spring to the defence of the off topic

Re: [PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread John Nichel
Raditha Dissanayake wrote: snip I see that many people who used to make valuable contributions in this list an year ago no longer make any posting. No doubt they are fed up. Others make fewer contributions than they used to. The way things are going pretty soon it will be a case of blind

RE: [PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread Robert Cummings
On Tue, 2004-12-21 at 10:53, Jay Blanchard wrote: [snip] It's sad to see how the quality of the help you can get in this list has dropped of late. It's not because of the people who post off topic messages or don't bother to read the FAQ or RTFM before posting. It's because of the people

Re: [PHP] can I compile php source

2004-12-21 Thread John Nichel
Paul Aviles wrote: some people will never get it. Yeah, I said I wasn't going to reply to this thread, but since you're not going to let it die... You said that I have a 'God' complex, yet you sit here and try to impose your political correctness on us; sitting up there on your high and mighty

Re: [PHP] Compiling PHP Source guides

2004-12-21 Thread Christophe Chisogne
Donald Tyler wrote: I am looking for a guide on compiling PHP 4. I am a complete newbie to compiling and have no idea where to start, so any links to guides and/or other useful info would be much appreciated. PHP is a scripting language, no need to compile it. If you're really new, 2 links from

Re: [PHP] Compiling PHP Source guides

2004-12-21 Thread John Nichel
Donald Tyler wrote: Hi, I am looking for a guide on compiling PHP 4. I am a complete newbie to compiling and have no idea where to start, so any links to guides and/or other useful info would be much appreciated. My reason is that I need MySQL 4 support, but I would like to get a general

Re: [PHP] can I compile php source

2004-12-21 Thread Bruce Douglas
after looking at the msgs on this list for this thread... i'm curious. if you see an email that you don't want to respond to, why can't you simply choose not to respond to it, and ignore the msg. peace.. -Original Message- From: Paul Aviles [EMAIL PROTECTED] Sent: Dec 21, 2004 7:48

RE: [PHP] can I compile php source OT

2004-12-21 Thread Jay Blanchard
[snip] some people will never get it. [/snip] Can we vote someone off of the island? He's a little too grouchy for being this close to Christmas. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Matthew Sims
I promised myself that I wouldn't get in the middle of any flame wars but I just had to say something about my experience. The day I stopped looking for free handouts and became self-sufficient in my ability to find the answers myself was the day someone told me to RTFM a few years ago. It was a

[PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Steve Brown
I'm working on a script that will parse through a long string using regexs to pattern match a certain format. I'm having an issue with a '?' in a string being picked up as an end-of-code character, but only if the line before it is commented out. If the line before is NOT commented out, PHP

[PHP] Re: This list is dying: was:can I compile php source OT

2004-12-21 Thread Jason Barnett
Raditha Dissanayake wrote: It's sad to see how the quality of the help you can get in this list has dropped of late. It's not because of the people who post off topic It's probably just because it's the holiday season and/or people working feverishly to meet year-end deadlines. I know I don't

Re: [PHP] couldnt backup database

2004-12-21 Thread Jason Wong
On Tuesday 21 December 2004 07:44, Sagar C Nannapaneni wrote: I've a table in my database with 1 lakh records using a disk space of around 50Mb. I wanted to download the records. I used phpmyadmin (coz my hosting provider doesnt allow remote access to my db) to export the database but its not

Re: [PHP] Compiling PHP Source guides

2004-12-21 Thread Jason Barnett
John Nichel wrote: Donald Tyler wrote: Hi, I am looking for a guide on compiling PHP 4. I am a complete newbie to compiling and have no idea where to start, so any links to guides and/or other useful info would be much appreciated. What OS are you using? I have found compiling on Windows to be

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Christopher Fulton
Honestly, I think it does depend a lot on the language you are using. From my experience, most people who work in PHP tend to write more new code than those who use COBOL. [snip] There are *so* many legacy COBOL applications though that, yeah, I think a COBOL programmer will very rarely get to

[PHP] Re: OT Re: [PHP] can I compile php source

2004-12-21 Thread Jason Barnett
The day I stopped looking for free handouts and became self-sufficient in my ability to find the answers myself was the day someone told me to RTFM a few years ago. It was a friend of mine and it was a little hurtful. But he was right! The answer was right in the man page. Then I felt stupid for

Re: [PHP] Using encrypted passwords (what we would like to achieve)

2004-12-21 Thread Jason Wong
On Tuesday 21 December 2004 20:06, symbulos partners wrote: What we would like to achieve? If a malicious user finds a way of entering of accessing the docroot (rwx) of a website with CMS (PHP + MySQL), we would like to have further barrier to him accessing the Mysql database. Like I said,

Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 01:00, Bruce Douglas wrote: after looking at the msgs on this list for this thread... i'm curious. if you see an email that you don't want to respond to, why can't you simply choose not to respond to it, and ignore the msg. It's probably because they *do* want to

Re: [PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread John Holmes
Subject: [PHP] This list is dying: Wait.. has Netcraft confirmed it? FYI, I don't think the list is any different... ups and downs...it's always the same questions, flamers, newbies, etc. All that changes are the names. Whoever this John Nichel character is though should be banned... ;)

Re: [PHP] can I compile php source

2004-12-21 Thread Paul Aviles
Guys, this is trivial. It takes the same effort to provide the answer to whoever this guy was, than to lecture him on how to think. this question has been answered before, use google and do a search for and follow this link before posting as it may help you in the future I am not trying

[PHP] disable_functions per vhost on apache

2004-12-21 Thread Eduardo M. Bragatto
Hi folks, according to this old message [http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] it's not possible to use php_value disable_functions on Apache's vhost. Since this message is two years old I would like to know if it's still being true. I have to allow system()

Re: [PHP] can I compile php source OT

2004-12-21 Thread Jason Wong
On Tuesday 21 December 2004 23:34, Jay Blanchard wrote: It seems either Paul responded directly (and only) to Jay or I missed this message (by Paul): the delivery is the problem not the thought process. people are trying to find answers not being lectured and reprimanded. Many people are

Re: [PHP] Liveticker problem

2004-12-21 Thread Richard Lynch
Ross Hulford wrote: Her is the code (not mine) what I am trying to so is cut out all the header info that is included in the message as shown here http://supercool-74.com/sms/liveticker.php Granted, it's 5 hours later, but I'm not seeing anything much at that URL... The message is supposed

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread John Holmes
From: Steve Brown [EMAIL PROTECTED] Unexpected results: If line 16 (indicated below) is commented out, the '?' in the string on line 17 makes PHP stop parsing and the rest of the script is simply dumped to stdout. If line 16 is NOT commented out, the '?' is NOT picked up as being a PHP tag

[PHP] email form results

2004-12-21 Thread Ken Bolton
Is there a simple way to send the results of a form to an email address? I have created a form with multiple categories of radio boxes and I have created a response PHP file that will give the user a confirmation. I'm just not sure how to send the results through email. I've checked the

Re: [PHP] Using encrypted passwords (what we would like to achieve)

2004-12-21 Thread Richard Lynch
symbulos partners wrote: What we would like to achieve? If a malicious user finds a way of entering of accessing the docroot (rwx) of a website with CMS (PHP + MySQL), we would like to have further barrier to him accessing the Mysql database. We had some problem with one hacker using the

[PHP] Re: email form results

2004-12-21 Thread M. Sokolewicz
Ken Bolton wrote: Is there a simple way to send the results of a form to an email address? I have created a form with multiple categories of radio boxes and I have created a response PHP file that will give the user a confirmation. I'm just not sure how to send the results through email. I've

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Robby Russell
On Tue, 2004-12-21 at 11:41 +0100, Eakin, W wrote: Hello, This question could be seen as a general programming question, but because PHP is what I know best, I'll ask it here. A good friend of mine is the person who got me more interested in programming as a career. She's a

Re: [PHP] couldnt backup database

2004-12-21 Thread Richard Lynch
Sagar C Nannapaneni wrote: I've a table in my database with 1 lakh records using a disk space of around 50Mb. I wanted to download the records. I used phpmyadmin (coz my hosting provider doesnt allow remote access to my db) to export the database but its not working for larger databases. I

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Robert Cummings
On Tue, 2004-12-21 at 12:26, Christopher Fulton wrote: Anyways, to answer your question, I spend about 30% of my time writing new code and about 70% of my time working on legacy code. Of course, often due to lacking comments most of the time spent with old code is just trying to figure out

Re: [PHP] imap_mail problems

2004-12-21 Thread abrea
May I suggest that you use PHP's mail() function and avoid the problem altogether. The format is much the same as the one you are using. Alberto Brea [EMAIL PROTECTED] -Original Message- From: Paul Aviles [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 20 Dec 2004 20:00:22 -0500

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Larry E . Ullman
While Yes may be a technically accurate answer to a question like Can I ... or Can anyone ..., a couple of points must be acknowledged: 1) Such an answer doesn't help the original poster. Period. And the purpose of a resource like this is to help, right? Even a RTFM or search Google at least

Re: [PHP] Writing new code vs. re-writing someone else's code

2004-12-21 Thread Richard Lynch
Eakin, W wrote: Hello, This question could be seen as a general programming question, but because PHP is what I know best, I'll ask it here. A good friend of mine is the person who got me more interested in programming as a career. She's a professional COBOL programmer, and works for a

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 01:12, Steve Brown wrote: I'm working on a script that will parse through a long string using regexs to pattern match a certain format. I'm having an issue with a '?' in a string being picked up as an end-of-code character, but only if the line before it is

RE: [PHP] can I compile php source OT

2004-12-21 Thread Danny Brow
Wow I just wasted 10 minutes of my day reading half these post. This is one long thread. And man is it hard to follow. Dan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I compile php source

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 01:37, Paul Aviles wrote: Guys, this is trivial. It takes the same effort to provide the answer to whoever this guy was, than to lecture him on how to think. Teach a person to fish ... -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] This list is dying: was:can I compile php source OT

2004-12-21 Thread John Nichel
John Holmes wrote: snip Whoever this John Nichel character is though should be banned... ;) I've been banned from a barroom here and there...does that count? BTW, since you only post once in a blue moon these days, you've dropped back down to newbie status. ;) -- John C. Nichel ÜberGeek

Re: [PHP] External scripts in safe mode

2004-12-21 Thread Richard Lynch
Chadwin Tom wrote: If this is an inappropriate place to seek help, many apologies, and where might I try? I have a PHP 4.1.2 script on Red Hat (Apache 1.3.27) which calls an external script (Tidy, from tidy.sourceforge.net). It is called via popen() so that I can pipe through some arguments

Re: [PHP] Error with system() when running convert

2004-12-21 Thread Richard Lynch
with anything else. Has anyone run across error 127 from system, or have any idea what's going on? For future reference, find a convenient way to look up 127 error code number in your OS. man errno is sort of okay in most Un*xes, except then you have to count 127 lines down to get the right

Re: [PHP] disable_functions per vhost on apache

2004-12-21 Thread Jason Wong
On Wednesday 22 December 2004 02:42, Eduardo M. Bragatto wrote: according to this old message [http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] it's not possible to use php_value disable_functions on Apache's vhost. Since this message is two years old I would like to

Re: [PHP] Re: Encryption

2004-12-21 Thread Richard Lynch
I have found some code and set up a test bed for it, but it fails to return the same value after the 26th item. I was hoping someone could take a look and maybe tell me why? There is very little help out there for encryption. If you know of a working example/tutorial, can you please reply

[PHP] curl CUSTOMREQUEST

2004-12-21 Thread Juan Nin
I saw a post at http://www.php.net/manual/en/ref.curl.php where it says: Using the customrequest for a complete post is wrong. Libcurl will add a partial url, the http version and the standard headers after the post data - while this works with a non-persistent connection and an apache web

Re: [PHP] Help wth coding

2004-12-21 Thread Richard Lynch
http://www.theufl.com/php/wrox_php/movie_details10.php Copy movie_details10.php into movie_details10.phps (with an 's' on the end) and then we can surf to your source and tell you something useful. Or, copy and paste your soure up to the line with the error to the list. We sure can't help you

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Steve Brown
Quote: The one-line comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first. This means that HTML code after // ? WILL be printed: ? skips out of the PHP mode and returns to HTML mode, and // cannot influence that. If asp_tags

Re: [PHP] php terminal.

2004-12-21 Thread Richard Lynch
adwin wijaya wrote: Since my webhosting didnt provide me with telnet access, I would like to have a small software that created by php to do some bash function such as lynx, ls etc ? If a new host is not possible for political or other reasons, and if your host wasn't smart enough to turn it

Re: [PHP] imap_mail problems

2004-12-21 Thread Richard Lynch
Paul Aviles wrote: Hello, I am having problems with this code below. The system is a FC1 server and it is supposed to send an email collecting some information of a computer. The problem I am having is with the and characters. When the $header variable is created, it does not work if you

Re: [PHP] Error with system() when running convert

2004-12-21 Thread Jonathan Schwarz
There's a cool utility at: http://freespace.sourceforge.net/errno/index.html Of course, errno 127 is 'unknown error', so it wouldn't have been a huge help. On Tue, 21 Dec 2004 11:00:05 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: with anything else. Has anyone run across error 127

Re: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-21 Thread Richard Lynch
Anthony Baker wrote: I often use PHP includes in my files to pull in assets, but I hard code the relative path to the root html directory for the sites that I'm working on in each file. Example below: While I happen to think using include_path and $_SERVER is a better solution to setting up

RE: [PHP] email form results

2004-12-21 Thread phpninja
http://www.php.net/mail -phpninja -Original Message- From: Ken Bolton [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 10:11 AM To: [EMAIL PROTECTED] Subject: [PHP] email form results Is there a simple way to send the results of a form to an email address? I have created a

Re: [PHP] checking file type on upload

2004-12-21 Thread Richard Lynch
Sebastian wrote: i have an upload form which i would only like to allow compressed zip files and rar files to be uploaded. currently i use if ($_FILES['userfile']['type'] != 'application/x-zip-compressed') which only seems to work in IE, doesn't work in mozila (haven't tried others)

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Richard Lynch
Matthew Sims wrote: I promised myself that I wouldn't get in the middle of any flame wars but I just had to say something about my experience. The day I stopped looking for free handouts and became self-sufficient in my ability to find the answers myself was the day someone told me to RTFM a

Re: [PHP] email form results

2004-12-21 Thread Miles Thompson
Assemble all of your data into the message body (see $message below) and mail it to yourself. How you trigger this processing and the call to the mail() function depends on how you've constructed your logic. $message .= $name .\n; $message .= $phone . \n; $message .= $email; mail( [EMAIL

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-21 Thread Richard Lynch
Steve Brown wrote: I'm working on a script that will parse through a long string using regexs to pattern match a certain format. I'm having an issue with a '?' in a string being picked up as an end-of-code character, but only No need to run it. ? can be caught by PHP as the end of PHP mode,

[PHP] How to set register_globals=off in the script?

2004-12-21 Thread Jerry Swanson
I know that register_globals = on is not secure. But one program requires to use register_globals=on. So in php.ini register_globals is set to on. I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. So I want to keep PHP register_globals=on in php.ini, but

Re: [PHP] email form results

2004-12-21 Thread Richard Lynch
Ken Bolton wrote: Is there a simple way to send the results of a form to an email address? I have created a form with multiple categories of radio boxes and I have created a response PHP file that will give the user a confirmation. I'm just not sure how to send the results through email. I've

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread John Nichel
Larry E. Ullman wrote: While Yes may be a technically accurate answer to a question like Can I ... or Can anyone ..., a couple of points must be acknowledged: 1) Such an answer doesn't help the original poster. Period. And the purpose of a resource like this is to help, right? Even a RTFM or

Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread Jason Barnett
So, seriously, if you don't feel like helping or you don't believe that a message should be posted here because it's off topic or you don't believe that a question was phrased properly, wouldn't it be better for everyone if you just didn't respond? It'd certainly be easier. I can agree with

Re: [PHP] disable_functions per vhost on apache

2004-12-21 Thread John Nichel
Eduardo M. Bragatto wrote: Hi folks, according to this old message [http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] it's not possible to use php_value disable_functions on Apache's vhost. Since this message is two years old I would like to know if it's still being

[PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Jason Barnett
Jerry Swanson wrote: I know that register_globals = on is not secure. But one program requires to use register_globals=on. So in php.ini register_globals is set to on. I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. So I want to keep PHP

[PHP] Sort by string length...

2004-12-21 Thread Russell P Jones
Any idea how to sort an array by string length? Russ Jones -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I compile php source

2004-12-21 Thread Matthew Sims
On Wednesday 22 December 2004 01:37, Paul Aviles wrote: Guys, this is trivial. It takes the same effort to provide the answer to whoever this guy was, than to lecture him on how to think. Teach a person to fish ... -- Jason Wong - Gremlins Associates - www.gremlins.biz You know, I bet

Re: [PHP] can I compile php source

2004-12-21 Thread Larry E . Ullman
Guys, this is trivial. It takes the same effort to provide the answer to whoever this guy was, than to lecture him on how to think. Teach a person to fish ... That's a good and true adage and certainly a philosophy to be put forth by this list. But, the question is, does an answer of Yes teach a

[PHP] help with coding #3

2004-12-21 Thread karl james
Team, Ok I will try the links again, sorry about the hassel, gee do I sound like a rookie coming up From the minor leagues or want. Anyway, Here are the links. Phps file http://www.theufl.com/movie_details.phps website http://www.theufl.com/php/wrox_php/movie_details.php on my

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Christopher Fulton
Yes and no... Here's what the manual has to say about this...Basically, you can't do it using ini_set, but you can do it using an htaccess file. http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals register_globals boolean Whether or not to register the EGPCS

Re: Re: [PHP] OT Re: [PHP] can I compile php source

2004-12-21 Thread John Holmes
From: Larry E. Ullman [EMAIL PROTECTED] Do you honestly think people are learning __anything__ when you reply with a Yes? Yes. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Jordi Canals
On Tue, 21 Dec 2004 14:56:03 -0500, Jerry Swanson [EMAIL PROTECTED] wrote: I know that register_globals = on is not secure. But one program requires to use register_globals=on. So in php.ini register_globals is set to on. I have PHP 5.1, is it possible in the code set register_globals=off

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Matt M.
I know that register_globals = on is not secure. But one program requires to use register_globals=on. So in php.ini register_globals is set to on. I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. So I want to keep PHP register_globals=on in

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Sebastian
if the script isn't that big you can probably use extract() in most cases.. is the script in its own directory? if so you can turn register globals on just for that one directory.. create an .htaccess file and add: php_value register_globals on then place the .htaccess in the directory where the

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread John Holmes
From: Jerry Swanson [EMAIL PROTECTED] I know that register_globals = on is not secure. bah... you can write secure scripts with it on or off. having it off by default simply helps to lessen some of the security issues that new programmers may not be aware of. But one program requires to

Re: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread John Holmes
From: Jason Barnett [EMAIL PROTECTED] Jerry Swanson wrote: I have PHP 5.1, is it possible in the code set register_globals=off for specific scripts. You can change this, and other php.ini directives, with the PHP function ini_set No, you can't. register_globals cannot be set with

RE: [PHP] Re: How to set register_globals=off in the script?

2004-12-21 Thread Michael Sims
Jason Barnett wrote: So I want to keep PHP register_globals=on in php.ini, but in local files set to off? How I can do this? You can change this, and other php.ini directives, with the PHP function ini_set register_globals cannot be changed with ini_set(). It is of type PHP_INI_PERDIR

  1   2   >