Re: [PHP] windows file permission

2003-11-19 Thread Burhan Khalid
Chris Williams wrote: I am using PHP on Windows NT CGI/FastCGI and am trying to create a text file and then write some data to it. $some_text = HelloWorld; $new_file = fopen(myfile.txt, w); fputs($new_file, $some_text); fclose($new_file); However I am getting Warning: fopen(myfile.txt): failed

Re: [PHP] Re: Command line output

2003-11-19 Thread Curt Zirzow
* Thus wrote Shawn McKenzie ([EMAIL PROTECTED]): Guess no ones has a clue. I didnt get a RTFM or anything. Try running php like so: php -doutput_buffering=0 phpfile.php Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General

[PHP] [PHP or maybe JavaScript or CSS] protecting my PHP from bad input

2003-11-19 Thread Miroslav I.
#The problem: This is about protecting my PHP from bad input (e.g.: letters instead of numbers). ## Is there a way to prevent user from even inputting a letter in a text box? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Prefilled forms (solved)

2003-11-19 Thread Eugene Lee
On Tue, Nov 18, 2003 at 06:00:12PM -0800, b b wrote: : : No I am saying that if you have: : input type name = w1 value = lkjlkjlj : input type ... name =w2 : : and you click submit then if you click back to see : the form the value you set w2 will be blank. If you : reverse the order

Re: [PHP] [PHP or maybe JavaScript or CSS] protecting my PHP from bad input

2003-11-19 Thread Eugene Lee
On Wed, Nov 19, 2003 at 08:18:32AM +0100, Miroslav I. wrote: : : #The problem: : This is about protecting my PHP from bad input (e.g.: letters instead : of numbers). Good idea. You need to make sure user-inputted data is valid. : ## : Is there a way to prevent user from even inputting a letter

Re: [PHP] [PHP or maybe JavaScript or CSS] protecting my PHP from bad input

2003-11-19 Thread Miroslav I.
Thanks Eugen, I'm familiar with the concepts, but I've seen sites with textboxes that would not show any letter typed - only numbers are displayed in the textbox. This is what I like but don't know how to achieve. :-) : #The problem: : This is about protecting my PHP from bad input (e.g.:

Re: [PHP] [PHP or maybe JavaScript or CSS] protecting my PHP from bad input

2003-11-19 Thread Eugene Lee
On Wed, Nov 19, 2003 at 10:21:16AM +0100, Miroslav I. wrote: : : I'm familiar with the concepts, but I've seen sites with textboxes : that would not show any letter typed - only numbers are displayed in : the textbox. This is what I like but don't know how to achieve. :-) Base on what I

[PHP] Session trubles

2003-11-19 Thread mgraf
PHP Version: 4.2.2 Hi I had a problem with my session name. In the php.ini, was set the default name PHPSESSID from the default installation. Now i have the problem, that i use the name audience for my webapplikations with PHPope (http://www.phpope.org) I Set the name in the script with the

[PHP] MS SQL Connectivity from Linux

2003-11-19 Thread Fernando Melo
Hi everyone, What is the quickest and easiest way to enable access to a MS SQL database from a Linux server (using PHP functions ofcourse), seeing as the MSSQL extension is available on Win32 systems only. Thanks Fern -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] MS SQL Connectivity from Linux

2003-11-19 Thread Burhan Khalid
Fernando Melo wrote: Hi everyone, What is the quickest and easiest way to enable access to a MS SQL database from a Linux server (using PHP functions ofcourse), seeing as the MSSQL extension is available on Win32 systems only. ODBC -- Burhan Khalid phplist[at]meidomus[dot]com

[PHP] language selection with xml

2003-11-19 Thread Merlin
Hi there, I would like to create a multilanguage website with php. I heared the easiest way is to create an xml file and use this package: http://freshmeat.net/projects/php-xml/?topic_id=92%2C96%2C914 This still looks complicated for me, beside the fact that it depends on an external package.

Re: [PHP] language selection with xml

2003-11-19 Thread Marek Kilimajer
Merlin wrote: Hi there, I would like to create a multilanguage website with php. I heared the easiest way is to create an xml file and use this package: http://freshmeat.net/projects/php-xml/?topic_id=92%2C96%2C914 This still looks complicated for me, beside the fact that it depends on an

[PHP] Re: MS SQL Connectivity from Linux

2003-11-19 Thread pete M
I use PEAR db http://pear.php.net/manual/en/package.database.php http://pear.php.net/manual/en/package.database.db.intro-dsn.php this is included with the php distibution and makes swapping databases a doddle pete Fernando Melo wrote: Hi everyone, What is the quickest and easiest way to enable

Re: [PHP] Session trubles

2003-11-19 Thread Marek Kilimajer
mgraf wrote: PHP Version: 4.2.2 Hi I had a problem with my session name. In the php.ini, was set the default name PHPSESSID from the default installation. Now i have the problem, that i use the name audience for my webapplikations with PHPope (http://www.phpope.org) I Set the name in the

Re: [PHP] Session trubles

2003-11-19 Thread mgraf
PHP Version 4.3.3 Ok i have disabled the autostart. Now is my problem, that php us the transparent sessions, because it append it in the URL. After the login, all works fine, but after 5-6 clicks, i loose the session. It send me a Cookie : Set-Cookie: audience=a01b3fcf7cb587eee3ac61bc83edebe4;

[PHP] I cannot run a .php file on a IIS

2003-11-19 Thread Papadogoulas Christos
Dear All, I was going to ask you how can I run a .php file using IIS. IIS and PHP, and a virtual directory are already installed. Thanks, Christos Papadogoulas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
Maybe this will help. I just made it: class XMLParser { var $depth = 0; var $parser; var $text; var $cdata = array(); function XMLParser() { $this-parser = xml_parser_create(); xml_set_object($this-parser, $this); xml_parser_set_option($this-parser,

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
The 'sample.xml' file: ?xml version=1.0? root ingrediens no=1 ingrediensnummer1234/ingrediensnummer maengde3,4/maengde enhedkg/enhed /ingrediens ingrediens no=2 ingrediensnummer x=212345/ingrediensnummer maengde3,1/maengde enhedt/enhed /ingrediens /root Victor

RE: [PHP] I cannot run a .php file on a IIS

2003-11-19 Thread Jay Blanchard
[snip] I was going to ask you how can I run a .php file using IIS. IIS and PHP, and a virtual directory are already installed. [/snip] I was going to give you an answer. Have you read and followed the directions here http://us2.php.net/windows ? -- PHP General Mailing List

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
Maybe this will help. Just made it (nedded it myself) and I saw your post. ?php class XMLParser { var $depth = 0; var $parser; var $text; var $cdata = array(); function XMLParser() { $this-parser = xml_parser_create(); xml_set_object($this-parser, $this);

[PHP] Forms

2003-11-19 Thread Matthew Oatham
Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on the form tag to

Re: [PHP] How to get the key of a specific index of array?

2003-11-19 Thread David Strencsev
Wouter Van Vliet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] First of all, you said to use the first three values of the array for anoter reason .. well the, what I'd do is this: $FirstThree = array_splice($_POST, 0, 3); Which will give you the first three elements of the

RE: [PHP] Forms

2003-11-19 Thread Jay Blanchard
[snip] This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on the form tag to

Re: [PHP] Forms

2003-11-19 Thread John Nichel
Matthew Oatham wrote: Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on

Re: [PHP] Session trubles

2003-11-19 Thread Marek Kilimajer
mgraf wrote: PHP Version 4.3.3 Ok i have disabled the autostart. Now is my problem, that php us the transparent sessions, because it append it in the URL. After the login, all works fine, but after 5-6 clicks, i loose the session. It send me a Cookie : Set-Cookie:

RE: [PHP] How to get the key of a specific index of array?

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 12:59, David Strencsev contributed these pearls of wisdom: Wouter Van Vliet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] First of all, you said to use the first three values of the array for anoter reason .. well the, what I'd do is this: $FirstThree =

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Raditha Dissanayake
Well, I've, and I also have to say that the XML-support in PHP lacks any usability I am sorry to say this but the above comments indicates a lack of understanding about xml, xml parsing and PHP. The php xml parser is based on expat. expat was written by james clark a person who worked on some

Re: [PHP] easy and simple way to read xml into array

2003-11-19 Thread Lucian Cozma
So what do I need hearing it for ? I just answered the guy (what he needed was help, not punches slaps from wiseguys). Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I've, and I also have to say that the XML-support in PHP lacks any usability… I am

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page. The form box

[PHP] PHP Mail handler?

2003-11-19 Thread Jacques Roux
Dear All Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? Regards Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: a href=?action=alphabetletter=AA/a a href=?action=alphabetletter=BB/a a href=?action=alphabetletter=CC/a etc... I am sure that

RE: [PHP] PHP Mail handler?

2003-11-19 Thread Jay Blanchard
[snip] Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? [/snip] The manual works fine for most http://www.php.net/mail -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] stepping through alphabet

2003-11-19 Thread Sophie Mattoug
Maybe you can try this for ($letter = 'A'; $letter++; $letter = 'Z') echo a href=\?action=alphabetletter=$letter\$letter/a\n; Hope this helps Steve Buehler wrote: I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] I am using PHP 4.3.4 and am trying to come up with a function that will step through the alphabet so that I get a menu/links that can be clicked on like below: a href=?action=alphabetletter=AA/a a href=?action=alphabetletter=BB/a a href=?action=alphabetletter=CC/a etc... [/snip]

Re: [PHP] Forms

2003-11-19 Thread Marek Kilimajer
Matthew Oatham wrote: Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on

Re: [PHP] Session trubles

2003-11-19 Thread mgraf
Thanks that was my problem :-) On Wed, 19 Nov 2003, Marek Kilimajer wrote: The first parameter is relative to the current time. I would recomend for security reasons to leave this to the default, 0 - until the browser is closed. Otherwise this could lead to session hijacking - when the bad

[PHP] images and charset

2003-11-19 Thread Egil Berntsen
I put some text from my mysql-db into images(jpeg and png) that I build on the fly. When I do this I have som problem with norwegian spesial charakter, they dont show properly in the images. If I put the same text directly to the browser window this will show correctly. What do I need to do to get

[PHP] HTTP Authentication thru PHP

2003-11-19 Thread Chandu Nannapaneni
hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ; $header .= base64_encode($username:$password).\r\n; $header .= Content-type: application/x-www-form-urlencoded\r\n;

Re: [PHP] stepping through alphabet

2003-11-19 Thread John Nichel
Sophie Mattoug wrote: Maybe you can try this for ($letter = 'A'; $letter++; $letter = 'Z') echo a href=\?action=alphabetletter=$letter\$letter/a\n; Hope this helps The for loop is backwards for ($letter = 'A'; $letter = 'Z'; $letter++) However, I don't think that will work, you probably

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] for ($letter = 'A'; $letter++; $letter = 'Z') echo a href=\?action=alphabetletter=$letter\$letter/a\n; [/snip] I tested this and found two small problems. The code works if you do this (I was myself amazed that letters would increment) for($letter = 'A'; $letter 'Z'; $letter++){

RE: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Dan Joseph
Hi, But the above is not working when the $username contains a trailing semicolon or when the $password is starting with a semicolon, Ex: what if the $username =chandu: Is there any solution for this ? You could use str_replace to strip those before they get used. -Dan Joseph --

Re: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Sophie Mattoug
I think I can remember semi-colon is not allowed in apache logins or passwords... Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ; $header .=

RE: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Jay Blanchard
[snip] I think I can remember semi-colon is not allowed in apache logins or passwords... But the above is not working when the $username contains a trailing semicolon or when the $password is starting with a semicolon, Ex: what if the $username =chandu: [/snip] Or colons. It is a Bad

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
Yes, I found that the loop was written kind of backwards and would create a never ending loop. I never thought to try setting $letter='A' before. I didn't think you could loop through the Alphabet like that. But I did a little changing to your loop and it works fine like this now:

Re: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
YES That is the kind of code that I was looking for. I never thought you could do it like that either. Meaning putting 2 things to do ($letter++ and $i++) into the loop in this fashion. This looks so much cleaner to me. Here is my final function now. for($letter = 'A', $i = 0;

RE: [PHP] stepping through alphabet

2003-11-19 Thread Steve Buehler
I was hoping for something that looked (at least to me) a little cleaner. Someone else gave me the answer and here is my final code that works out just great for me. for($letter = 'A', $i = 0; $i = 25; $letter++, $i++ ){ echo a

Re: [PHP] HTTP Authentication thru PHP

2003-11-19 Thread Sophie Mattoug
Jay Blanchard wrote: Or colons. It is a Bad Practice[tm] to use any special characters in user names and/or passwords. It is not universally allowed from OS to OS I disagree with this : special characters are useful to have better passwords (more difficult to crack), but as apache stores the

Re: [PHP] stepping through alphabet

2003-11-19 Thread Chris Boget
I tested this and found two small problems. The code works if you do this (I was myself amazed that letters would increment) But is that a bug? Or a feature? You could also do this, which would probably be more universal: // 65 through 90 for upper case // 97 through 122 for lower case for(

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread pete M
its probably because its possible to authenticate with an url ? eg http://name:[EMAIL PROTECTED] Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = POST /myscript.php HTTP/1.0\r\nAuthorization: Basic ; $header .=

[PHP] HTML email problem

2003-11-19 Thread Binay
Hi all, I m sendig out HTML email, using mimemail class which encodes the whole message to be sent in base64 and Content-Transfer-Encoding: is also specified as base64 only. Now one of my client is complaining that he is getting garbage in the email (shown below) after the sign up process in

Re: [PHP] mcrypt libraries?

2003-11-19 Thread Jas
Evan Nemerson wrote: On Tuesday 18 November 2003 01:13 pm, Jas wrote: Curt Zirzow wrote: * Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need

Re: [PHP] I cannot run a .php file on a IIS

2003-11-19 Thread CPT John W. Holmes
From: Papadogoulas Christos [EMAIL PROTECTED] I was going to ask you how can I run a .php file using IIS. IIS and PHP, and a virtual directory are already installed. I would suggest you actually make an attempt at installing PHP according to the directions in the manual...

[PHP] Counting elements in an array

2003-11-19 Thread Jeff McKeon
How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is orange? Thanks, Jeff -- PHP General Mailing List

Re: [PHP] Counting elements in an array

2003-11-19 Thread Sophie Mattoug
$i = 0; foreach ($fruit as $k) if ('prange' == $k) $i++; (The result is $i, of course) Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jay Blanchard
[snip] How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is orange? [/snip] http://www.php.net/array_keys --

[PHP] PHP-Only Polling Script?

2003-11-19 Thread Mark D Hiatt
Can anyone recommend a good, simple PHP-only polling script? I have a non-profit with no money that wants people to be able to select one from a range of candidates, and then see the total number of votes, the percentage breakdown and probably a histogram or a bar graph showing the most

[PHP] Re: Custom Session usind MySQL

2003-11-19 Thread Manisha Sathe
thanks all for your help, will try it out now manisha Manisha Sathe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want the session to be accessed from different websites, so i got the answer in this forum only to make use of customised session with mysql. I searched the web and

Re: [PHP] Counting elements in an array

2003-11-19 Thread Jason Wong
On Wednesday 19 November 2003 23:24, Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value

[PHP] array_diff question

2003-11-19 Thread Manuel Vázquez Acosta
Hi: I read on the docs that array_diff and array_intersect were broken on 4.0.4. Does this mean that there is a best method to do it? Manu. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] stepping through alphabet

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 14:25, Jay Blanchard contributed these pearls of wisdom: [snip] for ($letter = 'A'; $letter++; $letter = 'Z') echo a href=\?action=alphabetletter=$letter\$letter/a\n; [/snip] I tested this and found two small problems. The code works if you do this (I was myself

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] 'Z'+1 is defined to be 'AA' (it says that in the manual, too!), so your loop has to be: for($letter = 'A'; $letter = 'AA'; $letter++){ echo $letter . \n; } [/snip] Run this, you'll be surprised at what you get. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] stepping through alphabet

2003-11-19 Thread Ford, Mike [LSS]
On 19 November 2003 16:15, Jay Blanchard contributed these pearls of wisdom: [snip] 'Z'+1 is defined to be 'AA' (it says that in the manual, too!), so your loop has to be: for($letter = 'A'; $letter = 'AA'; $letter++){ echo $letter . \n; } [/snip] Run this, you'll be

RE: [PHP] stepping through alphabet

2003-11-19 Thread Jay Blanchard
[snip] OK, my bad -- I let my fingers do the talking without proper monitoring from my brain. This is what I actually use in more than a few scripts: for ($c='A'; $c!='AA'; $c++): echo $c; endfor; I just forgot to change the comparison from = to != I guess this

[PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Below is some code, I've written, where I'm trying to do the following... 1. Display a text box, for a user to enter a number of email addresses, seperated by a comma. 2. take that value, split it based on the comma and place that vlaue into an array. 3. Count the No of elements in the array 4.

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jeff McKeon
Jason Wong wrote: On Wednesday 19 November 2003 23:24, Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from

Re: [PHP] Counting elements in an array

2003-11-19 Thread Jason Wong
On Thursday 20 November 2003 00:33, Jeff McKeon wrote: Jason Wong wrote: On Wednesday 19 November 2003 23:24, Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit =

RE: [PHP] mailing multilple addresses...?

2003-11-19 Thread Jay Blanchard
[snip] if ($action == 'send') { $fimail[] = explode(,, $list); $count = count($fimail[]); $show = bUsers that have been mailed:/bbr; $i = 1; while ($count $i) { mail($fimail[], Subject, $message, $headers); $show .= br$fimail; $i++; } }

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers

RE: [PHP] Counting elements in an array

2003-11-19 Thread Jay Blanchard
[snip] $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is orange? [/snip] From http://www.php.net/array_keys with additions; $array = array(blue, red, green, blue, blue); $countArray =

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Not a problem... I do try and be thorough when I create mails... I'll be more list friendly in the future... cheers for the heads up! Nw, if I can only solve my prob, I can go home ;-) Jason Wong [EMAIL PROTECTED] 19/11/2003 16:42 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED]

[PHP] R: [PHP] mailing multilple addresses...?

2003-11-19 Thread Alessandro Vitale
try this: if ($action == 'send') { $fimail = explode(,, $list); $count = count($fimail); $show = bUsers that have been mailed:/bbr; $i = 1; while ($count $i) { mail($fimail[$i], Subject, $message, $headers); $show .= br$fimail; $i++; } }

[PHP] Memory Size Help Please

2003-11-19 Thread Nick Wilson
Hi all, Can anyone spot the problem here and point me in the right direction? I have a script that goes and fetches the xml at weblogs.com (http://www.weblogs.com/changes.xml). It then extracts the urls of the updated blogs and goes and uses file() to read each of them and extract some more

Re: [PHP] R: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Cheers to everyone, it works great! Easy when I look at it now, but ant it the way... I'm off to the pub now.. later... Tris... Alessandro Vitale [EMAIL PROTECTED] 19/11/2003 16:50 To [EMAIL PROTECTED], [EMAIL PROTECTED] cc Subject [PHP] R: [PHP] mailing multilple addresses...? try

RE: [PHP] Memory Size Help Please

2003-11-19 Thread Jay Blanchard
[snip] Can anyone spot the problem here and point me in the right direction? [/snip] Nope, not enough info to spot the problem. I could point you in a direction, but that wouldn't help I am afraid. Wait, hold that thought, I have a direction to point you in. Please provide us with relevant

[PHP] retrieving ENUM description from MySQL

2003-11-19 Thread Alan Lord
Hi all, This is a bit wierd so don't flame please. Imagine a database table, field defined as ENUM with a list of allowed types such as Mr, Mrs, Miss, Dr, Prof, etc - you get the idea. I've read the MySQL manual and by using SHOW COLUMNS FROM table_name LIKE enum_column_name; I can get a

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Raditha Dissanayake
hi How about using fopen() and reading line by line. And for xml parsing if you are using DOM switch to SAX that will always help. Nick Wilson wrote: Hi all, Can anyone spot the problem here and point me in the right direction? I have a script that goes and fetches the xml at weblogs.com

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Nick Wilson
* and then Jay Blanchard declared Nope, not enough info to spot the problem. I could point you in a Spare me the sarcasm. Here's the code if anyone can help, thanks. ? $xml=file('http://www.weblogs.com/changes.xml'); $xml=implode(\n, $xml); // Pattern match string $urlpattern =

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Not a problem... I do try and be thorough when I create mails... I'll be more list friendly in the future... cheers for the heads up! Nw, if I can only solve my prob, I can go home ;-) When you go home, don't forget to turn on your out of office autoreply, everyone

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
It should be off...! I went away for two weeks recently, and left my subscription runing ot he list... sorry... I'll be more careful... It's been a funny few weeks... ;-) Tris... Marek Kilimajer [EMAIL PROTECTED] 19/11/2003 17:17 To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re:

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Raditha Dissanayake
Hi, Jay's comment was a fair one. It's not always possible to help without full info. You could try writing your data directly to disk instead of keeping them in memory as your code seems to be doing. In that case your regex function might need to go into the character data handler. Nick

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Nick Wilson
* and then Raditha Dissanayake declared Hi, Jay's comment was a fair one. It's not always possible to help without full info. I beg to differ, the point was valid but the manner unfriendly at best. You could try writing your data directly to disk instead of keeping them in memory

[PHP] String matching for sample code doesn't work....

2003-11-19 Thread Scott Fletcher
Hi Everyone! I'm not really sure why does this simple script not work. When I run the code, the loop kept going until it timed out. I'll enclose the simple code here... --snip-- $res_str = Dog NameWhoof/Dog Name![CDATA[Whose Dog is that??]]; for ($i=0;$i100;$i++) { if

[PHP] Re: About iMail Help

2003-11-19 Thread Scott Fletcher
It look like a email software called, 'imail' D. Jame [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Anyone know about imail.? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting elements in an array

2003-11-19 Thread John Nichel
Jeff McKeon wrote: How would I count the number of elements in an array that had a certain value? In other words, if I have $fruit = array(orange,orange,apple,bananna,orange,apple,pear); How could I get the number of elements from $fruit where the value is orange? Thanks, Jeff $temp =

RE: [PHP] stepping through alphabet

2003-11-19 Thread Don Read
On 19-Nov-2003 Steve Buehler wrote: Amazing what I learned today. :) I love this list and its people. How about one more? (ver 4.1.0): foreach(range('A', 'Z') as $letter) { echo $letter, \n; } Regards, -- Don Read [EMAIL PROTECTED] -- It's always

[PHP] Re: String matching for sample code doesn't work....

2003-11-19 Thread Scott Fletcher
Never mind that! It work now Been working on it for a few hours though Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Everyone! I'm not really sure why does this simple script not work. When I run the code, the loop kept going until it timed out.

[PHP] php and java

2003-11-19 Thread Edward Peloke
Ok, First, let me say, I have looked at the manual and searched the past posts but still can't get this to work. I also should say that this is my first time trying to bridge php and java so this may be a stupid questionI have a java class(DateUtil) in a package (testphp). I then took the

[PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with something someone type in from a form stored in $new_text. How would I go about comparing them to see if they are different or exactly the same? strcmp doesn't look like it will handle this too

[PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Kenn Murrah
Greetings: I can't decide if my problem is PHP or Javascript, but I've been staring at this line of code for too long without being able to see why it's behaving the way it is I'm trying to open a new window on top of the current window, and it does that, but the original (bottom) window

Re: [PHP] Comparing 2 strings.

2003-11-19 Thread CPT John W. Holmes
From: Ed Curtis [EMAIL PROTECTED] I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with something someone type in from a form stored in $new_text. How would I go about comparing them to see if they are different or exactly the same? strcmp doesn't

[PHP] Question about video (PHP unrealted)

2003-11-19 Thread Frank Tudor
I know this is bad but this is the only listserver/newgroup thingy I use because I am php challenged. Any how, I want to embed windows media player in my php pages (which I have done successfully), but I need help: I was wondering which is the best format for demand downloading of video files

Re: [PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I guess I did miss that it says that the comparison is case sensitive and binary safe. Thanks, Ed On Wed, 19 Nov 2003, CPT John W. Holmes wrote: From: Ed Curtis [EMAIL PROTECTED] I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with

RE: [PHP] Question about video (PHP unrealted)

2003-11-19 Thread Chris W. Parker
Frank Tudor mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 11:26 AM said: I know this is bad but this is the only listserver/newgroup thingy I use because I am php challenged. Actually you have (nearly) the entire internet at your beck and call. Me: Frank, google. Google, Frank.

[PHP] how to create a function and return two parameters????

2003-11-19 Thread Scott Fletcher
Hi Everyone! I wanted to know how do I return two parameters within a function. I'm not having much luck with it. I kept getting errors... --snip-- function CBC_XML_BreakUp($strResponse_XML, $strResponse_HTML) { global $res_str; $strResponse_XML = substr($res_str, 0, 100);

[PHP] Why is the php loop, 'for()', so slow????

2003-11-19 Thread Scott Fletcher
Hi Everyone! Why does the for() loop for PHP so slow when it is digesting a large amount of data? Is there a way to make the loop go faster? Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to create a function and return two parameters????

2003-11-19 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 12:07 PM said: I wanted to know how do I return two parameters within a function. I'm not having much luck with it. I kept getting errors... [snip] return $strResponse_XML,$strResponse_HTML; That's because it

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-19 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 12:11 PM said: Why does the for() loop for PHP so slow when it is digesting a large amount of data? Is there a way to make the loop go faster? Show us your loop. -- Don't like reformatting your Outlook replies?

Re: [PHP] PHP syntax error or javascript mistake?

2003-11-19 Thread Marek Kilimajer
Kenn Murrah wrote: I'm trying to open a new window on top of the current window, and it does that, but the original (bottom) window changes to read Object Window ... I can get back to the original with the Back button but of course don't want to ask that of the user ... I simply want a new

Re: [PHP] String matching for sample code doesn't work....

2003-11-19 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): Hi Everyone! --snip-- $res_str = Dog NameWhoof/Dog Name![CDATA[Whose Dog is that??]]; for ($i=0;$i100;$i++) { if (substr($res_str, $i, 9) == ![CDATA[) um.. lookup this function: http://www.php.net/strpos Curt -- My

Re: [PHP] how to create a function and return two parameters????

2003-11-19 Thread Scott Fletcher
Ummm, look like I'll stick with number two. Didn't know about the value to pass value back and forth in PHP Thanks, Scott F. Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 12:07 PM

  1   2   >