RE: [PHP] Parsing images

2006-05-10 Thread Dan Harrington
Using ImageMagick, ray tracing algorithms, an OCR library, and fourier transforms, I bet that you could parse Capchas. Dan -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 12:29 AM To: PHP General (E-mail) Subject: [PHP] Parsing images Hey all,

[PHP] Parsing images

2006-05-10 Thread Dotan Cohen
Hey all, it is possible to parse capcha's in php? I'm not asking how to do it, nor have I any need, it's just something that I was discussing with a friend. My stand was that ImageMagik could crack them. She says no way. What are your opinions? Thanks. Dotan Cohen http://what-is-what.com

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway']; $breadcrumb = str_replace('', _root, $

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Wolf
True, but it checks it at the first attempt to upload, not when the file is done or partially uploaded. Granted, not what the OP asked for exactly, but better then what he has now and better then spending more time looking... Wolf Chris wrote: > Wolf wrote: >> In your form uploading script: >> #

Re: [PHP] php parsing and db content

2006-05-10 Thread Schalk
Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway']; $breadcrumb = str_replace('', _root, $breadcrumb); ec

[PHP] getting $_GET params from iFrame window to parent

2006-05-10 Thread blackwater dev
Hello all, I have a small site which provides search functionalities. My search sites are framed in my clients sites via iframe. I have a client who would like to put the search form somewhere else on their site (it is currenly all on my page within the iframe) and then call their search page t

Re: [PHP] php parsing and db content

2006-05-10 Thread Schalk
Chris wrote: Chris wrote: Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with t

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Chris wrote: Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure that the links

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Chris
Wolf wrote: In your form uploading script: # individual file size limit - in bytes (102400 bytes = 100KB) $file_size_ind = "838860800"; // 819.2 MB $weight=$_FILES[fileupload][size]; if ($weight>$file_size_ind) { echo" ERROR: please get the file size less than ".$file_size_ind." BYTES (".rou

[PHP] php parsing and db content

2006-05-10 Thread Schalk
Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure that the links will work no ma

Re: [PHP] Good Answers

2006-05-10 Thread Ligaya Turmelle
Richard Lynch wrote: Hey y'all... In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For example, an answer to a question a

Re: [PHP] Good Answers

2006-05-10 Thread Ligaya Turmelle
Jay Blanchard wrote: [snip] In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For example, an answer to a question about w

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Matt
Just in case you ever need to check the configure line again in the future, you can get at it (even if you've built through the FreeBSD ports) through a phpinfo page. The third section on that page is labeled "Configure Command" and lists all the options used during the build. Matt On 5/10/06,

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Wolf
In your form uploading script: # individual file size limit - in bytes (102400 bytes = 100KB) $file_size_ind = "838860800"; // 819.2 MB $weight=$_FILES[fileupload][size]; if ($weight>$file_size_ind) { echo" ERROR: please get the file size less than ".$file_size_ind." BYTES (".round(($file_size

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Jochem Maas wrote: thank you Edward. ... there is a funny little story about where the name BLOB came from: http://www.cvalde.net/misc/blob_true_history.htm just to note that BLOBs where invented by the guy that designed Interbase which just happens to be the ancestor of the coolest DBMS

Re: [PHP] PHP URL query

2006-05-10 Thread Jochem Maas
IraqiGeek wrote: Hi all, ... two things which have nothing to do with your original question (that seems to have been covered rather well) Regards, IraqiGeek www.iraqigeek.com try viewing your site in firefox - notice all those question marks in the content? might be interesting to find

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
thank you Edward. Edward Vermillion wrote: > > On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: > >> >> GOOGLE DO NOT ARGUE > > > o_O? yeah! I did figure it really was about time they changed their 'Do No Evil' slogan given their escapades in china funnily enough I watched a documentary th

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Jochem Maas
Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste <(cut -f1 file1) <(cut -f2 file2)> final_file It works perfectly

Re: [PHP] Good Answers

2006-05-10 Thread Jochem Maas
As usual, Richard shows the quality of his mettle! :-) I absolutely agree, some ideas: 1. have the mailing list automatically add a single line to the mailing list sig that promotes security/good-practice and points to phpsec.org? (I guess only someone like Rasmus could say whether this was even

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Joe Henry
On Wednesday 10 May 2006 4:02 pm, Ginger Cheng wrote: > Hello, PHP gurus, > I have a command that I want to run using system function. The > command exploits temporary named pipes in the place of temporary files. > >my command is > > paste <(cut -f1 file1) <(cut -f2 file2)

[PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Ginger Cheng
Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste <(cut -f1 file1) <(cut -f2 file2)> final_file It works perfectly well if I just t

Re: [PHP] Good Answers

2006-05-10 Thread tedd
Hmmm. Maybe this should be part of a Netiquette document "How to give good answers" right next to that "How to ask good questions" document :-^ Yep, and right next to "How to think good", "How to Google", and "How to RTFM" :-) tedd -- -

Re: [PHP] Good Answers

2006-05-10 Thread Micky Hulse
Good thread. Great points. I always thought this Sitepoint thread was very helpful: Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] internal operation

2006-05-10 Thread Rory Browne
www.php.net/streams On 5/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, May 10, 2006 4:11 am, Luke Cole wrote: > Do the file system and directory functions, perform the file system > command relative to your OS. > > e.g. > does the internal code of the function: > rename("oldname", "ne

Re: [PHP] Re: Upload File

2006-05-10 Thread Rory Browne
There are names for people who use the blob field of a MySQL db to store images. Moron, and Idiot are just two examples, but if other circumstances exist, you can say newbie as well. As a newbie I thought myself that storing images in a DB would be a nice clean solution. Voices of experience said

Re: [PHP] Good Answers

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 2:16 pm, Eric Butera wrote: > On 5/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > these issues because they don't even know to consider these things. I > still see so many examples passed on that have the ability to inject > SQL or spam via E-Mail Header injection. I mean

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread Richard Lynch
for ($i = 1; $i <= 20; $i++){ if (isset($_POST[$i])){ //insert blah blah blah } } Also, I don't think '1' is valid NAME for HTML specification. You could use: NAME="menu[1]" Then in PHP: $menu = $_POST['menu']; for ($i = 1; $i <= 20; $i++){ if (isset($menu[$i])){ } } And, of co

[PHP] Re: Good Answers

2006-05-10 Thread Jo�o C�ndido de Souza Neto
I agree. Some times i don´t put my questions here because i don´t know how to ask. But, many people do. ""Richard Lynch"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hey y'all... > > In the spirit of improving the mailing list, I'd like to suggest that > we, as a group, a

Re: [PHP] internal operation

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 4:11 am, Luke Cole wrote: > Do the file system and directory functions, perform the file system > command relative to your OS. > > e.g. > does the internal code of the function: > rename("oldname", "newname"); > > do exactly (in unix file systems): > `mv oldname newname` > > do

Re: [PHP] Cannot suppress fsockopen errors

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 5:30 am, Nick Wilson wrote: > Im having a hard time surpressing fsckopen() errors. I've looked at > the > manual and searched around, but what i am doing /appears/ to be > correct, > yet im still geting warnings... > > here's the code: > > // open a socket to the server > if($h

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 11:09 am, Phillip S. Baker wrote: > James Nunnerley wrote: > However you can set the max file size within the tag of HTML. > I forget the proper snytax and tag off the top of my head. > I am not sure the error it spits out as I have never tested that. > you can also use javasc

Re: [PHP] Good Answers

2006-05-10 Thread Eric Butera
On 5/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: Hey y'all... In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For ex

Re: [PHP] Re: Upload File

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 9:52 am, Renzo Clavijo wrote: > I'm gonna be more precise: > > I wrote a form with fields , then i need to Should be know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > i

RE: [PHP] Good Answers

2006-05-10 Thread Jay Blanchard
[snip] In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For example, an answer to a question about where it is clear that r

[PHP] Good Answers

2006-05-10 Thread Richard Lynch
Hey y'all... In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For example, an answer to a question about where it is clear

RE: [PHP] PHP URL query

2006-05-10 Thread Vedanta Barooah
Try this : Refer: http://www.zend.com/zend/art/art-sweat4.php - Vedanta Barooah -Original Message- From: IraqiGeek [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 10:14 PM To: php-general@lists.php.net Subject: [PHP] PHP URL query Hi all, I'm somewhat new to php, though I hav

[PHP] Update: That is to say PHP.INI, not WIN.INI

2006-05-10 Thread Jeremy C O'Connor
phpEditIni project. That is to say PHP.INI, not WIN.INI -- net07350 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New: Browser based editor of WIN.INI files (on Windows)

2006-05-10 Thread Jeremy C O'Connor
Hi This is an announcement of a new browser based editor for the C:\WINDOWS\PHP.INI file. It lets you uncomment or comment lines by clicking a checkbox, and alter the values of configuration settings. You can also insert, edit and delete lines. It is in the Beta stage of release, so please let me

Re: [PHP] PHP URL query

2006-05-10 Thread IraqiGeek
On Wednesday, May 10, 2006 6:08 PM GMT, Jason Gerfen <[EMAIL PROTECTED]> wrote: IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I h

Re: [PHP] PHP URL query

2006-05-10 Thread John Nichel
IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I have: A simple HTML file that contains: Hi, this is a test! and a php file th

Re: [PHP] PHP URL query

2006-05-10 Thread Dave Goodchild
register_globals is disabled on your system, which is a good thing. So you have to reference all values sent via a form using GET with the $_GET superglobal array as follows: "Welcome to our web site, {$_GET[var]}" or 'Welcome to our web site, ' . $_GET['var'] etc etc On 10/05/06, IraqiGeek <

Re: [PHP] PHP URL query

2006-05-10 Thread Eric Butera
On 5/10/06, IraqiGeek <[EMAIL PROTECTED]> wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I have: A simple HTML file that contains: Hi, this i

Re: [PHP] PHP URL query

2006-05-10 Thread Brad Bonkoski
-B IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I have: A simple HTML file that contains: Hi, this is a test! and a php

Re: [PHP] PHP URL query

2006-05-10 Thread Jason Gerfen
IraqiGeek wrote: Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I have: A simple HTML file that contains: Hi, this is a test! and a php file t

[PHP] PHP URL query

2006-05-10 Thread IraqiGeek
Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through "URL query". Here is what I have: A simple HTML file that contains: Hi, this is a test! and a php file that contains: How

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Jochem Maas
Jay Blanchard wrote: [snip] Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! [/snip] PHP is server-side and cannot check anything client-s

Re: [PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby wrote: Assuming it has permissions, and all the stars are aligned, you should get the output of the 'netstat -l' command echoed to the screen. Thanks Jim, this really solved the problem up. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Re: check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby solved the problem I didn't even known that I can exec *nix commands straight from php file. this gave me what I wanted. Thanks guys for the help Antanas Vipartas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] check socket status

2006-05-10 Thread Jim Moseby
> > Jim Moseby wrote: > > Your server is *nix? You could: > > > > $netstat_info=`netstat -l`; // notice back-tics > > > > ...then parse through the output. > > > > JM > > `netstat -l | grep 5514` gives me information about listening > service on > port 5514. That's all I needed but I only

[PHP] Re: check socket status

2006-05-10 Thread Antanas Vipartas
Barry wrote: > Knock at the port door ;) Nah just kidding. you can try to connect via fsockopen. I hope that port gives something back you can read out. because every port allows connections if it's not blocked or firewalled. actually, it helps. I can sense if the socked is listened. But the

Re: [PHP] Re: Upload File

2006-05-10 Thread Edward Vermillion
On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: GOOGLE DO NOT ARGUE o_O? So, if ASCII and Binary are both codesets... which does SQL use to store its data? ASCII is a codeset, utf* is a codeset binary is a, um... , binary data. varchar, etc => ASCII/utf*/whatever => st

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Phillip S. Baker
James Nunnerley wrote: Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! Nope not a PHP que

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-10 Thread Edward Vermillion
On May 10, 2006, at 10:54 AM, Rolf Wouters wrote: Yet another update. Strange thing happened. I fixed the problem... It's not a clean solution, it's not the right solution, but for now, it'll (have to) do :-) I changed my little test-script to include directives like max_input_time,

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Jochem Maas wrote: > Peter Hoskin wrote: >> Renzo Clavijo wrote: >> >>> hi all.. >>> >>> I'm gonna be more precise: >>> >>> I wrote a form with fields , then i need to >>> know how >>> to upload the files to the MySQL server (postgreSQL wold be >>> appreciated). It >>> implies: Which field(s) mus

Re: [PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby wrote: Your server is *nix? You could: $netstat_info=`netstat -l`; // notice back-tics ...then parse through the output. JM `netstat -l | grep 5514` gives me information about listening service on port 5514. That's all I needed but I only can get this from *nix console. How c

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Peter Hoskin wrote: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an ex

RE: [PHP] check socket status

2006-05-10 Thread Jim Moseby
> Hi > > I need to check if socket on some port is listened by some service. > > How could I do this ? > Your server is *nix? You could: $netstat_info=`netstat -l`; // notice back-tics ...then parse through the output. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: check socket status

2006-05-10 Thread Barry
Antanas Vipartas schrieb: Hi I need to check if socket on some port is listened by some service. How could I do this ? thanks, Antanas Vipartas Knock at the port door ;) Nah just kidding. you can try to connect via fsockopen. I hope that port gives something back you can read out. because ev

[PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Hi I need to check if socket on some port is listened by some service. How could I do this ? thanks, Antanas Vipartas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Hi John Thank you, I have just got it working now, will look into the different ways you suggested. Adrian wrote: > Hi All > > > > I have been trying to have PHP capture incoming emails sent to a specific > email account and have not been able to achieve this, I have searched high > and lo

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: But mysql can be quite a good spool though. That way you don't have to code one for yourself. That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary, filesyste

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
> But mysql can be quite a good spool though. > > That way you don't have to code one for yourself. > That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary, filesystems are much quicke

RE: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
THANK YOU! That did it, its now working, thank you for your help. -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 11:03 AM To: Adrian Cc: php-general@lists.php.net Subject: Re: [PHP] How to get incoming emails captured by PHP ? Adrian wrote: >Thank

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an e

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-10 Thread Eric Butera
On 5/10/06, Rolf Wouters <[EMAIL PROTECTED]> wrote: Yet another update. Strange thing happened. I fixed the problem... It's not a clean solution, it's not the right solution, but for now, it'll (have to) do :-) I changed my little test-script to include directives like max_input_time, set_tim

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Renzo Clavijo wrote: > hi all.. > > I'm gonna be more precise: > > I wrote a form with fields , then i need to > know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > image?. Is > there an exampl

Re: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Stut
Adrian wrote: Thanks, I changed the line to: ade: |/usr/bin/php /wwwroot/www.domain.com/ade/email.php And get this message back different but in essence the same I believe. I know the email.php doesn't do anything, I would love to get it there :) proving to be difficult :) - The fol

[PHP] Re: Upload File

2006-05-10 Thread Barry
Renzo Clavijo schrieb: hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upl

RE: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Thanks, I changed the line to: ade: |/usr/bin/php /wwwroot/www.domain.com/ade/email.php And get this message back different but in essence the same I believe. I know the email.php doesn't do anything, I would love to get it there :) proving to be difficult :) - The following addresses

Re: [PHP] Uploading Image File

2006-05-10 Thread Jochem Maas
Renzo Clavijo wrote: Morning all. I would like to know if anybody could e-mail an example of code to upload files into a MySQL server using PHP from a form. recently a new phenomenon has appeared online, namely search engines: http://www.google.com/search?num=100&q=php+upload+image+example+my

[PHP] Re: Browser displays blank page, while request still being handled

2006-05-10 Thread Rolf Wouters
Yet another update. Strange thing happened. I fixed the problem... It's not a clean solution, it's not the right solution, but for now, it'll (have to) do :-) I changed my little test-script to include directives like max_input_time, set_time_limit(0) etc. Than I thought, why not try to g

Re: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Stut
Stut wrote: Adrian wrote: I have my aliases file set up with the line: ade: |/usr/bin/php, |/wwwroot/www.domain.com/ade/email.php (The path to my PHP is correct) There should only be one | on that line. It should read... ade: /usr/bin/php /wwwroot/www.domain.com/ade/email.php D'oh, mea

Re: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread John Nichel
Adrian wrote: Hi All I have been trying to have PHP capture incoming emails sent to a specific email account and have not been able to achieve this, I have searched high and low on the internet and the same article (http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html) is p

[PHP] Re: Upload File

2006-05-10 Thread Renzo Clavijo
hi all.. I'm gonna be more precise: I wrote a form with fields , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upload the file(s)? Thanks a

Re: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Stut
Adrian wrote: I have my aliases file set up with the line: ade: |/usr/bin/php, |/wwwroot/www.domain.com/ade/email.php (The path to my PHP is correct) There should only be one | on that line. It should read... ade: /usr/bin/php /wwwroot/www.domain.com/ade/email.php And the script it call

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Paul Waring
On 10/05/06, Richard Collyer <[EMAIL PROTECTED]> wrote: Does this do the same with PHP5? Remember mod_php5 has gone from ports so lang/php5 then make config and select build apache option. I've no idea whether it does that with PHP5, but I'm not ready to upgrade to that version yet (perhaps ove

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Paul Waring
On 10/05/06, Riemer Palstra <[EMAIL PROTECTED]> wrote: These are rather recent versions of both, so I'm suspecting an upgrade was done recently which didn't make PHP all that happy. This is PHP built from the port /usr/ports/lang/php4? Go to that dir, type 'make config', make sure the APACHE knob

[PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Hi All I have been trying to have PHP capture incoming emails sent to a specific email account and have not been able to achieve this, I have searched high and low on the internet and the same article (http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html) is plastered everywhe

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Richard Collyer
Paul Waring wrote: Some version numbers in case it helps: php -v PHP 4.4.2 (cli) (built: May 10 2006 14:40:03) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies httpd -v Server version: Apache/2.0.58 Server built: May 7 2006 10:42:02 Does t

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Jochem Maas
Paul Waring wrote: On 10/05/06, Jochem Maas <[EMAIL PROTECTED]> wrote: the php may be being loaded in via an include conf file do you havbe a line in httpd.conf that start with 'Include' ? Only one, and that includes some virtual host files (I don't think those are the problem, as Apach

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Paul Waring
On 10/05/06, Jochem Maas <[EMAIL PROTECTED]> wrote: the php may be being loaded in via an include conf file do you havbe a line in httpd.conf that start with 'Include' ? Only one, and that includes some virtual host files (I don't think those are the problem, as Apache usually complains if

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Jochem Maas
Paul Waring wrote: I restarted Apache this morning in order to allow some new virtual hosts to be recognised, and now I've got a problem whereby all of my PHP scripts are being served up as source code instead of being executed by the web server. I don't know why this is, as far as I'm aware I ha

Re: [PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread rouvas
On Wednesday 10 May 2006 16:58, Paul Waring wrote: > I restarted Apache this morning in order to allow some new virtual > hosts to be recognised, and now I've got a problem whereby all of my > PHP scripts are being served up as source code instead of being > executed by the web server. I don't know

Re: [PHP] Uploading Image File

2006-05-10 Thread gustav
> Morning all. > > I would like to know if anybody could e-mail an example of code to upload > files into a MySQL server using PHP from > a form. > > Thanks a lot. > > Best Regards, > > RENZO CLAVIJO > What exactly do you mean? Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.

[PHP] PHP suddenly stops working on FreeBSD

2006-05-10 Thread Paul Waring
I restarted Apache this morning in order to allow some new virtual hosts to be recognised, and now I've got a problem whereby all of my PHP scripts are being served up as source code instead of being executed by the web server. I don't know why this is, as far as I'm aware I haven't changed anythi

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-10 Thread John Wells
On 5/9/06, D. Dante Lorenso <[EMAIL PROTECTED]> wrote: As an OOP programmer, I would expect the scope search to be as follows: 1. LOCAL: current method 2. THIS: current instance ($this) 3. SELF: current class & parent classes, in order of inheritance 4. GLOBAL: globals Ok, so this

[PHP] Uploading Image File

2006-05-10 Thread Renzo Clavijo
Morning all. I would like to know if anybody could e-mail an example of code to upload files into a MySQL server using PHP from a form. Thanks a lot. Best Regards, RENZO CLAVIJO

Re: [PHP] throttle output streamed from a file?

2006-05-10 Thread tedd
At 10:56 PM -0500 5/9/06, D. Dante Lorenso wrote: to a client who may be very slow. Aren't they all. :-) tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread tedd
At 10:49 AM +0200 5/10/06, Chris Grigor wrote: morning all, Is there an easier way of doing the following?? Try: http://www.weberdev.com/get_example-3754.html HTH's tedd -- http://sperling.com -- PHP General M

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Duncan Hill
On Wednesday 10 May 2006 13:39, Jay Blanchard wrote: > [snip] > Is there anyway to check the size of a file before it starts uploading > it? > For instance, if the file is huge, and takes ages to upload, and is then > rejected by the server, the user will be somewhat annoyed! > [/snip] > > PHP is s

RE: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Jay Blanchard
[snip] Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! [/snip] PHP is server-side and cannot check anything client-side. You cold use somet

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Barry
James Nunnerley schrieb: Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! No you can't. No

[PHP] file Upload - checking file size before uploading

2006-05-10 Thread James Nunnerley
Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! Cheers Nunners

[PHP] Re: To Capture HTTP Headers

2006-05-10 Thread M. Sokolewicz
Kaushal Shriyan wrote: I have put the below in test.php I am getting the below information which is not formatted [snip] ...[/snip] Actually If I run my test.cgi file I get well formatted one and also If you can see from the output HTTP_USERNAME nick="amit",Master="0",acct_no_hash="1B2M2

[PHP] Cannot suppress fsockopen errors

2006-05-10 Thread Nick Wilson
Hi, Im having a hard time surpressing fsckopen() errors. I've looked at the manual and searched around, but what i am doing /appears/ to be correct, yet im still geting warnings... here's the code: // open a socket to the server if($handle = @fsockopen($bits['host'], 80, $errno, $errstr, 10) or

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread Chris
Chris Grigor wrote: Hi Chris While this works, it only posts the checkboxes that have been selected. How would I get a list of ones not checked? Always reply to the list as well. Checkboxes aren't submitted if they are not checked. It's not a PHP thing that does this. That's why you hav

[PHP] internal operation

2006-05-10 Thread Luke Cole
Do the file system and directory functions, perform the file system command relative to your OS. e.g. does the internal code of the function: rename("oldname", "newname"); do exactly (in unix file systems): `mv oldname newname` do exactly (in windows file systems): `ren oldname newname` If no

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread Angelo Zanetti
Peter Hoskin wrote: Chris Grigor wrote: morning all, Is there an easier way of doing the following?? form1 submitting to form1.php Thats a very poor method of storing values in SQL. I believe MySQL now has a boolean datatype (at long last, postgre has had it for ages) and it does have

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread viraj
definitely a loop will do the job. on a form submission, you can get all the submitted fields/ values in $_POST or $_GET array. just, try 'print_r($_POST)', on top of your receiving script. you will realise the scene behind. :) then, get the size of the $_POST array and loop through the array e

  1   2   >