[PHP] Fw: `�.�MPEG`�.�

2006-06-12 Thread webmaster
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] popen and pclose. Something changed in 4.4.2 !

2006-06-12 Thread Venkatesh M. S.
Greetings! I was using popen and pclose on a previous version of PHP on Windows with an older version of Apache (2.x). ( I think it was 4.4.1 but will need to check as i am not sure). pclose(popen(start . $exe . . $args, r)) Where $exe is my path to the batch file and $args are the

Re: [PHP] Tables vs. databases

2006-06-12 Thread Antonio Bassinger
Thanks to All who suggested solutions or pointed errors in my existing approach. Most seem to suggest having 1 database and 1-2 tables. So let me confirm: 1 table with million records are ok. But what of the size of the table? 10,000 * 10 MB = 100 GB! If the upload limit is to be notched up

Re: [PHP] Tables vs. databases

2006-06-12 Thread Jochem Maas
Antonio Bassinger wrote: Thanks to All who suggested solutions or pointed errors in my existing approach. Most seem to suggest having 1 database and 1-2 tables. So let me confirm: 1 table with million records are ok. But what of the size of the table? 10,000 * 10 MB = 100 GB! put your

[PHP] Short writage of clauses

2006-06-12 Thread Barry
Hi everyone! Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always be true ... Any infos on that would be nice :) Greets

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Barry wrote: Hi everyone! Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) is it anyway possible to write it like: if (a = 1 OR 2) maybe this helps your situation: if (in_array($a, array(1, 2))) echo got it!; I

Re: [PHP] Short writage of clauses

2006-06-12 Thread Dave Goodchild
On 12/06/06, Barry [EMAIL PROTECTED] wrote: Hi everyone! Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always be true ... Any

Re: [PHP] Short writage of clauses

2006-06-12 Thread Stut
Barry wrote: Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) I think you mean == not =. is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always be true ... Any infos on that

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Stut schrieb: Barry wrote: Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) I think you mean == not =. Yeah. sorry ;) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Barry wrote: Stut schrieb: Barry wrote: Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) I think you mean == not =. Yeah. sorry ;) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong

[PHP] weird problem in php

2006-06-12 Thread weetat
Hi all , I have using php 4.3.2 and mysql database. I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below : $country = $_POST['country']; $findme = '-';

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Stut wrote: Barry wrote: Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) I think you mean == not =. is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always be true ...

Re: [PHP] weird problem in php

2006-06-12 Thread Dave Goodchild
On 12/06/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have using php 4.3.2 and mysql database. I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below :

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Jochem Maas schrieb: I find a switch statement sometimes handy for creating a 'truth table' like you describe (I sometimes find it easier to read and/or add 'if' clauses): switch (true) { case ($grandmaAge = $tableAge): case ($grandmaAge $houseAge): case ($grandmaAge

[PHP] call to pprofp not working for PHP APD

2006-06-12 Thread Ravi Jethwa
Hello, I was wondering if somebody could provide some advice on where I might be going wrong if I am receiving the following error: bash: /usr/bin/pprofp: /usr/local/bin/php: bad interpreter: No such file or directory. When I try to call the pprofp program in order to format the

Re: [PHP] weird problem in php

2006-06-12 Thread Rabin Vincent
On 6/12/06, weetat [EMAIL PROTECTED] wrote: I have a form which have select tag which have the value for example -New York. When use submit the form , i need to find the first occurence of - , i use strpos function as shown below : $country = $_POST['country']; $findme = '-'; $pos =

RE: [PHP] Short writage of clauses

2006-06-12 Thread Peter Lauri
Switch($a) { Case 1: Dowhatyouwant(); Case 2: Dowhatyouwant(); Default: Dowhatyouwant(); } -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 5:12 PM To: php-general@lists.php.net

Re: [PHP] Short writage of clauses

2006-06-12 Thread Stut
Jochem Maas wrote: Stut wrote: But it begs the question why you would want to do this? it's a handy way to white list data. e.g. if (in_array($_GET['yourarg'], $allowedValsForYourArg)) echo nice arg dude; (btw: no need to beg ;-) I agree that the in_array function is useful,

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Barry wrote: Jochem Maas schrieb: I find a switch statement sometimes handy for creating a 'truth table' like you describe (I sometimes find it easier to read and/or add 'if' clauses): switch (true) { case ($grandmaAge = $tableAge): case ($grandmaAge $houseAge): case

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Stut schrieb: Jochem Maas wrote: Stut wrote: But it begs the question why you would want to do this? it's a handy way to white list data. e.g. if (in_array($_GET['yourarg'], $allowedValsForYourArg)) echo nice arg dude; (btw: no need to beg ;-) I agree that the in_array

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: Stut wrote: But it begs the question why you would want to do this? it's a handy way to white list data. e.g. if (in_array($_GET['yourarg'], $allowedValsForYourArg)) echo nice arg dude; (btw: no need to beg ;-) I agree that the in_array

Re: [PHP] Short writage of clauses

2006-06-12 Thread Satyam
- Original Message - From: Stut [EMAIL PROTECTED] Jochem Maas wrote: Stut wrote: But it begs the question why you would want to do this? it's a handy way to white list data. e.g. if (in_array($_GET['yourarg'], $allowedValsForYourArg)) echo nice arg dude; (btw: no need to beg

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Jochem Maas schrieb: Barry wrote: Jochem Maas schrieb: I find a switch statement sometimes handy for creating a 'truth table' like you describe (I sometimes find it easier to read and/or add 'if' clauses): switch (true) { case ($grandmaAge = $tableAge): case ($grandmaAge

Re: [PHP] Short writage of clauses

2006-06-12 Thread Jochem Maas
Barry wrote: Jochem Maas schrieb: Barry wrote: Jochem Maas schrieb: ... Well i don't want the grandma to be not as old as the table and older than the house age and still baking a cookie. Only if all cases stated are true, i want to bake a cookie :) then reverse the logic of the

Re: [PHP] Simultaneous post/get?

2006-06-12 Thread tedd
At 4:34 PM -0400 6/11/06, Lowell Allen wrote: On Jun 11, 2006, at 2:02 PM, tedd wrote: At 5:46 PM +0100 6/11/06, Stut wrote: tedd wrote: At 4:35 PM +0100 6/11/06, Stut wrote: The form, with onsubmit=return sndReq(). sndReq does the AJAX image thing (although I don't know why you're using AJAX

[PHP] magic_quotes_gpc? Session variables

2006-06-12 Thread Mk
Hey gang, I was having the weirdest problems when I decided to update the code for my site(written in PHP) last modified over a year ago. The code ran fine under my home development system, but on the hosting machine(1and1.com), my code would break. Horribly. I narrowed the problem

[PHP] Re: magic_quotes_gpc? Session variables

2006-06-12 Thread Jo�o C�ndido de Souza Neto
No. To you access $_SESSION[username] by $username is defined by register_globals. Probably your host won´t agree in change his register_globals. Mk [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hey gang, I was having the weirdest problems when I decided to update the

Re: [PHP] Simultaneous post/get?

2006-06-12 Thread Lowell Allen
On Jun 12, 2006, at 8:02 AM, tedd wrote: [snip] img id=waitimg src=/whatever.gif style=display: none; / Form... form ... onsubmit=document.getElementById('waitimg').style.display = 'block'; return true; Bingo! That works slick ! While I *think* I know css, it would have taken me a long

Re: [PHP] magic_quotes_gpc? Session variables

2006-06-12 Thread tedd
At 8:08 AM -0400 6/12/06, Mk wrote: Hey gang, I was having the weirdest problems when I decided to update the code for my site(written in PHP) last modified over a year ago. The code ran fine under my home development system, but on the hosting machine(1and1.com), my code would break.

[PHP] Video compression with php?

2006-06-12 Thread Merlin
Hi there, I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Thank you for any hint, Merlin -- PHP General Mailing List

Re: [PHP] Re: How to re-order an array

2006-06-12 Thread Rafael
jekillen wrote: [···] Well, I asked you for the actual (JS) code you're using (the one that didn't work in all the intended browsers), that way someone might be able to help you (I will if I can) Array.push(), Array.pop(), Array.shift(), Array.unshift(). Ok, so what are your intended

[PHP] Re: Video compression with php?

2006-06-12 Thread Barry
Merlin schrieb: Hi there, I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Thank you for any hint, Merlin google is your

Re: [PHP] Video compression with php?

2006-06-12 Thread Rabin Vincent
On 6/12/06, Merlin [EMAIL PROTECTED] wrote: I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Look into ffmpeg. I think it

Re: Re: [PHP] transform RDF to HTML via XSL and PHP

2006-06-12 Thread Mario Pavlov
xsl:template match=rdf:RDF html body table border=1 xsl:for-each select=item tr tdxsl:value-of select=title//td tdxsl:value-of select=link//td /tr /xsl:for-each /table /body /html /xsl:template /xsl:stylesheet I'ts been awhile, but try the above. -- Anthony Ettinger Signature:

Re: [PHP] Video compression with php?

2006-06-12 Thread Merlin
Rabin Vincent schrieb: On 6/12/06, Merlin [EMAIL PROTECTED] wrote: I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Look

Re: [PHP] transform RDF to HTML via XSL and PHP

2006-06-12 Thread Rob Richards
Mario Pavlov wrote: nope it doesn't work like this still the same result I think the problem is in the way that I'm accessing the elements how exactly this should be done ?... Its due to default namespaces in the feed. The item elements and its child elements are in the default namespace:

[PHP] checking if any values in one array are in another

2006-06-12 Thread blackwater dev
Is there a single php function that will tell me if any values in one array are in another without looping through one of the arrays and doing in_array? Thanks!

RE: [PHP] checking if any values in one array are in another

2006-06-12 Thread Jay Blanchard
[snip] Is there a single php function that will tell me if any values in one array are in another without looping through one of the arrays and doing in_array? [/snip] You have read http://www.php.net/array right? http://www.php.net/manual/en/function.array-intersect-assoc.php -- PHP General

[PHP] php-html rendering

2006-06-12 Thread Ryan A
Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is that the whole site has not yet been built so i can start from the ground up. I have a few ideas on

Re: [PHP] php-html rendering

2006-06-12 Thread Dave Goodchild
On 12/06/06, Ryan A [EMAIL PROTECTED] wrote: Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is that the whole site has not yet been built so i can

Re: [PHP] php-html rendering

2006-06-12 Thread Stut
Ryan A wrote: heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is that the whole site has not yet been built so i can start from the ground up. I have a few

Re: [PHP] checking if any values in one array are in another

2006-06-12 Thread Jochem Maas
Jay Blanchard wrote: [snip] Is there a single php function that will tell me if any values in one array are in another without looping through one of the arrays and doing in_array? [/snip] You have read http://www.php.net/array right? rtm? thats for wimps ;-)

Re: [PHP] php-html rendering

2006-06-12 Thread Ryan A
Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is that the whole site has not yet been built so i can start from the ground

Re: [PHP] Session puzzle... / why no new session?

2006-06-12 Thread Eric Butera
On 6/9/06, Ryan A [EMAIL PROTECTED] wrote: ini_set('session.name', 'COSTREAM_SESSION'); Check out http://us2.php.net/manual/en/function.session-name.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php-html rendering

2006-06-12 Thread Brady Mitchell
-Original Message- I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. Does any class program exist that can help me do this? Save yourself a lot of work and use HTTrack. http://www.httrack.com/ Brady -- PHP General

[PHP] Convert PHP to javascript

2006-06-12 Thread Mantas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi there, Could someone help me to convert this snippet of PHP code to JavaScript? ?php $b91_enctab = array( 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',

RE: [PHP] Convert PHP to javascript

2006-06-12 Thread Brady Mitchell
-Original Message- Could someone help me to convert this snippet of PHP code to JavaScript? If by help me you mean do it for me than I can tell you that nobody is going to do it. Start working on it, and ask questions when you get stuck, we're here to help, not do your job Brady --

RE: [PHP] php-html rendering

2006-06-12 Thread Ryan A
--- Brady Mitchell [EMAIL PROTECTED] wrote: -Original Message- I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. Does any class program exist that can help me do this? Save yourself a lot of work and use

RE: [PHP] php-html rendering

2006-06-12 Thread Brady Mitchell
-Original Message- Save yourself a lot of work and use HTTrack. http://www.httrack.com/ Very very interesting, thank you! If you have tried this and have downloaded dynamic pages/sites (eg: PHP pages) please tell me if you had any link problems from one page to another.

Re: [PHP] php-html rendering

2006-06-12 Thread Larry Garfield
wget -m -k http://www.yoursite.com/ Cheers. :-) -- Larry Garfield On Mon, June 12, 2006 10:54 am, Ryan A said: Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given

[PHP] [Announcement] Sparse 1.04b released

2006-06-12 Thread Daniel Orner
A new version of Sparse, my framework for creating MySQL programs without all that programming, has been released. We're getting close to having all the features I really think it needs... after that it'd just be window dressing. Unless someone has some more suggestions! --Daniel -- Sparse -

Re: [PHP] php-html rendering

2006-06-12 Thread Ryan A
Hi, Thanks for the suggestion, I am not too familier with wget but (correct me if i am wrong) wont wget just get the output from the pages ignoreing the links? Thanks! Ryan --- Larry Garfield [EMAIL PROTECTED] wrote: wget -m -k http://www.yoursite.com/ Cheers. :-) -- Larry Garfield

RE: [PHP] php-html rendering

2006-06-12 Thread Ryan A
Quick question; If the site is updated with new pages/links is there anyway of specifying to HTTrack to get just the new pages or does it get the whole site again? Reason I ask is they are going to have a s**tload of pages...maybe 4k or pages Thanks! Ryan -- - The faulty interface lies

Re: [PHP] php-html rendering

2006-06-12 Thread Satyam
Sorry if I am completely off the mark with this sugestion. You can set a full bootable LAMP system on a CD. If doing a demo is what you want, this would allow you to make a full bootable demo that does not install anything in the host machine and is completely dynamic. These systems allow

Re: [PHP] php-html rendering

2006-06-12 Thread Ryan A
Hi Satyam, Totally off the mark :-) thanks for writing though. The site (which later to be copied onto cd) is not for demo purposes but to distribute to schools, (children and people wanting to learn Swedish) its a govt sponsored project so the site and the CDs should/will be free. Cheers, Ryan

Re: [PHP] php-html rendering

2006-06-12 Thread Richard Lynch
You have just described what wget does... On Mon, June 12, 2006 10:54 am, Ryan A wrote: Hey all, heres the short explanation of what I am supposed to do, I need to render/convert the entire site to normal html pages so that it can be loaded onto a cd and given out. The good news is

Re: [PHP] Video compression with php?

2006-06-12 Thread Richard Lynch
On Mon, June 12, 2006 8:59 am, Merlin wrote: I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Find a program that does

Re: [PHP] Re: magic_quotes_gpc? Session variables

2006-06-12 Thread Richard Lynch
On Mon, June 12, 2006 7:22 am, João Cândido de Souza Neto wrote: Mk [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hey gang, I was having the weirdest problems when I decided to update the code for my site(written in PHP) last modified over a year ago. The code ran fine

Re: [PHP] Video compression with php?

2006-06-12 Thread Rabin Vincent
On 6/12/06, Merlin [EMAIL PROTECTED] wrote: yes you are right there is a php extension for ffmpeg. However as I learned from their sourceforge page is, that this sw does only enable one to get snapshots out of a video, but not to convert and compress ist. What I am looking for is a software

Re: [PHP] popen and pclose. Something changed in 4.4.2 !

2006-06-12 Thread Richard Lynch
I can only suggest you change the default settings on the MS-DOS application thingie... Right-click the MS-DOS icon in the Start menu, mess with settings like run in background etc. I suspect that it is a configuration of MS-DOS window issue, and has nothing to do with PHP. On Mon, June 12,

Re: [PHP] php-html rendering

2006-06-12 Thread Ryan A
You have just described what wget does... Oookayyy, and thats the cue for Ryan old boy to start reading up on wget :-) never used wget before... Will google for it, in the meantime if anybody wants to send me links (even RTFMs) would appreciate it. Thanks! Ryan On Mon, June 12,

Re: [PHP] remove keys from array

2006-06-12 Thread Richard Lynch
On Sun, June 11, 2006 6:57 am, Ahmed Abdel-Aliem wrote: hi all when i have array in the form of : Array ( [0] = 2 [ID] = 2 [1] = asdasd [CategoryName] = asdasd ) ) how can i make it in the form of : Array ( [ID] = 2 [CategoryName] = asdasd ) ) can anyone help me with that plz ? I don't

Re: [PHP] Curio

2006-06-12 Thread Richard Lynch
On Sat, June 10, 2006 5:31 am, Dave Goodchild wrote: Just a question out of curiousity for the language lawyers out there. Why is it illegal to begin a variable name with a number in php? Because Rasmus wrote that bit on a Tuesday. :-) It's a pretty common requirement, actually. -- Like

Re: [PHP] How to tell if a socket is connected

2006-06-12 Thread Richard Lynch
Maybe just try to read from it??? On Fri, June 9, 2006 10:56 pm, Michael W. wrote: Hello, Can any of you tell me how to tell whether a socket (from fsockopen()) is connected or not? Specifically, whether the remote server has closed the connection? Stream_get_meta_data() does not do it;

Re: [PHP] remove keys from array

2006-06-12 Thread tg-php
Crap.. I remember seeing an example of something that yielded arrays like this and now I can't find it. It basically created an array (from a database I thought.. but can't find the example under mysql_fetch_assoc or mysql_fetch_array... thought it was in the standard PHP documentation (not

Re: [PHP] remove keys from array

2006-06-12 Thread afan
This looks to me as printet result array from database: $query = mysql_query(select * from table); $result = mysql_fetch_array($query); if you print_r($result); you'll get doubled values. use $result = mysql_fetch_array($query, MYSQL_ASSOC); for singles check:

Re: Re: [PHP] transform RDF to HTML via XSL and PHP

2006-06-12 Thread Mario Pavlov
Mario Pavlov wrote: nope it doesn't work like this still the same result I think the problem is in the way that I'm accessing the elements how exactly this should be done ?... Its due to default namespaces in the feed. The item elements and its child elements are in the default

Re: [PHP] better way to create custom text file from query results?

2006-06-12 Thread Richard Lynch
Yes, this is in the PHP FAQ. Plus, you could name them like: name=fieldname[1] and then you could just iterate through $_POST['fieldname'] which would be even cleaner. On Wed, June 7, 2006 7:21 am, Ben Liu wrote: Hello All, I've written a clunky script that presents a form to a user with 30

Re: [PHP] Introductory message

2006-06-12 Thread Richard Lynch
On Wed, June 7, 2006 7:33 pm, Ligaya Turmelle wrote: Thought we were going to add the Security subsection to the Where to Find More Information section of the NEWBIE email. Wasn't it supposed to include a link to the manuals security area as well as the phpsec site? +1 -- Like Music?

Re: [PHP] generating/transforming HTML so that it 'works' in a flash file

2006-06-12 Thread Richard Lynch
I suspect the first question would be if Flash people have bothered to document what HTML subset they support. And second is, wouldn't you have a lot more luck in a Flash forum?... On Wed, June 7, 2006 11:22 am, Jochem Maas wrote: hi people, I've been STFW till I'm blue in the face (so lack

RE: [PHP] Introductory message

2006-06-12 Thread Jay Blanchard
[snip] Thought we were going to add the Security subsection to the Where to Find More Information section of the NEWBIE email. Wasn't it supposed to include a link to the manuals security area as well as the phpsec site? +1 [/snip] Send me the details and I'll make sure that they get

Re: [PHP] Curio

2006-06-12 Thread Satyam
- Original Message - From: Richard Lynch [EMAIL PROTECTED] On Sat, June 10, 2006 5:31 am, Dave Goodchild wrote: Just a question out of curiousity for the language lawyers out there. Why is it illegal to begin a variable name with a number in php? Because Rasmus wrote that bit on a

Re: [PHP] php-html rendering

2006-06-12 Thread Jochem Maas
Ryan A wrote: Hi, Thanks for the suggestion, I am not too familier with wget but (correct me if i am wrong) wont wget just get the output from the pages ignoreing the links? that's the default behaviour - but wget has about a zillion parameters for controlling its behaviour, it's quite easy

[PHP] trapping fatal errors...?

2006-06-12 Thread Christopher J. Bottaro
Hello, How can I trap a fatal error (like calling a non existant method, requiring a non existant file, etc) and go to a user defined error handler? I tried set_error_handler(), but it seems to skip over the errors I care about. Thanks for the help. -- PHP General Mailing List

Re: [PHP] php-html rendering

2006-06-12 Thread Ryan A
--- Jochem Maas [EMAIL PROTECTED] wrote: Ryan A wrote: Hi, Thanks for the suggestion, I am not too familier with wget but (correct me if i am wrong) wont wget just get the output from the pages ignoreing the links? that's the default behaviour - but wget has about a zillion

[PHP] Re: How to tell if a socket is connected

2006-06-12 Thread Adam Zey
Michael W. wrote: Hello, Can any of you tell me how to tell whether a socket (from fsockopen()) is connected or not? Specifically, whether the remote server has closed the connection? Stream_get_meta_data() does not do it; in my tests, its output does not change even when the server closes the

[PHP] Re: trapping fatal errors...?

2006-06-12 Thread Adam Zey
Christopher J. Bottaro wrote: Hello, How can I trap a fatal error (like calling a non existant method, requiring a non existant file, etc) and go to a user defined error handler? I tried set_error_handler(), but it seems to skip over the errors I care about. Thanks for the help. It is always

[PHP] GD

2006-06-12 Thread Beauford
Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP, MySQL and Apache

Re: [PHP] GD

2006-06-12 Thread Tom Ray [Lists]
Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP,

[PHP] date_sunrise accuracy

2006-06-12 Thread KI
I posted this Thursday as a PHP bug: http://bugs.php.net/bug.php?id=37743 Basically this function is off by 2 minutes from the US UK governments calculations. While PHP is admitting there is a difference they are stating I should live with it and it's expected. Does any one else not find this

Re: [PHP] GD

2006-06-12 Thread Ray Hauge
On Monday 12 June 2006 16:11, Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another

Re: [PHP] call to pprofp not working for PHP APD

2006-06-12 Thread Chris
Ravi Jethwa wrote: Hello, I was wondering if somebody could provide some advice on where I might be going wrong if I am receiving the following error: bash: /usr/bin/pprofp: /usr/local/bin/php: bad interpreter: No such file or directory. /usr/local/bin/php doesn't exist. Adjust the

RE: [PHP] GD

2006-06-12 Thread Beauford
I'm using Slackware 10 and installed GD as an install package. I also changed some lines in the php.ini file for GD. Tom: I have no idea how this program works, all I know is that I need it for the captcha program to display the image. I wouldn't even bother otherwise. Thanks. B

Re: [PHP] php-html rendering

2006-06-12 Thread Larry Garfield
On Monday 12 June 2006 17:08, Ryan A wrote: that said it could take a week to figure out all the parameters. ;-) Heck yeah... just been reading up on it... lots of stuff, who would think one little four letter word could do so much.oops, now thinking of another four letter word

[PHP] Re: How to tell if a socket is connected

2006-06-12 Thread Michael W.
Adam Zey wrote: Michael W. wrote: Hello, Can any of you tell me how to tell whether a socket (from fsockopen()) is connected or not? Specifically, whether the remote server has closed the connection? Stream_get_meta_data() does not do it; in my tests, its output does not change even

[PHP] php stopped sending mail

2006-06-12 Thread blackwater dev
Hello, I have some code which uses mail() and a day or so ago, the server stopped sending mail. The code is the same and I checked that sendmail is running. I also checked maillog which showed the messaged as qued but they never come through in email. How can I debug this and what might have

RE: [PHP] php-html rendering

2006-06-12 Thread Brady Mitchell
-Original Message- Quick question; If the site is updated with new pages/links is there anyway of specifying to HTTrack to get just the new pages or does it get the whole site again? Yes, there is an option to just update the downloaded site. I've never actually used that option

Re: [PHP] Introductory message

2006-06-12 Thread Ligaya Turmelle
Jay Blanchard wrote: [snip] Thought we were going to add the Security subsection to the Where to Find More Information section of the NEWBIE email. Wasn't it supposed to include a link to the manuals security area as well as the phpsec site? +1 [/snip] Send me the details and I'll make