php-general Digest 19 Jun 2006 15:16:58 -0000 Issue 4194

2006-06-19 Thread php-general-digest-help
php-general Digest 19 Jun 2006 15:16:58 - Issue 4194 Topics (messages 238258 through 238287): Re: Mail in Spam Box - my code 238258 by: kartikay malhotra Re: Ok next php problem 238259 by: Chris Re: Want some PHP e-book 238260 by: Ligaya Turmelle Compare data

Re: [PHP] Re: Mail in Spam Box

2006-06-19 Thread eqla3.com eqla3.com
is there an example of the correct code?

Re: [PHP] Re: Mail in Spam Box

2006-06-19 Thread eqla3.com eqla3.com
On 6/19/06, eqla3.com eqla3.com [EMAIL PROTECTED] wrote: is there an example of the correct code? is my messege get in the right place? === web archive a href=http://7b99.com/;./a

[PHP] A way to stop spam on this list

2006-06-19 Thread Denis Gerasimov
Hello List Members, I am very tired of deleting spam messages received from PHP mailing lists and I think we all are. As I can see most of the spam messages are in Chinese / Japanese. Since this is an English-only mailing list I would like to suggest blocking all messages containing such

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Pham Huu Le Quoc Phuc
I'm too! :( -Original Message- From: Denis Gerasimov [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 1:23 PM To: php-general@lists.php.net Subject: [PHP] A way to stop spam on this list Hello List Members, I am very tired of deleting spam messages received from PHP mailing

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Robert Cummings
On Mon, 2006-06-19 at 02:23, Denis Gerasimov wrote: Hello List Members, I am very tired of deleting spam messages received from PHP mailing lists and I think we all are. As I can see most of the spam messages are in Chinese / Japanese. Since this is an English-only mailing list

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Denis Gerasimov
Hello Robert, I think you should quit whining like a spoilt brat *lol*. I get something like 3 a day. Big fricking whoop. I am subscribed to most of the PHP mailing lists, not only to PHP general. There is the same problem too. So receive something more than just 3 a day. Also I remember that

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Rory Browne
Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. This doesn't work for spam. Having that said, feel free to set up procmail or something like that, to block message with chinese/japanese characters.

Re: [PHP] How to run one php app from another? RECAP

2006-06-19 Thread Manuel Amador (Rudd-O)
Excuse me... in which scenarios isn't fork() available? As far as I know, it even works on Windows (albeit slower... not that you'll be gaining any performance by curl'ing your URL - that's actually slower than fork()). El vie, 16-06-2006 a las 11:25 -0300, Martin Alterisio escribió: --

Re: [PHP] How to run one php app from another? RECAP

2006-06-19 Thread Manuel Amador (Rudd-O)
El vie, 16-06-2006 a las 15:54 -0500, Richard Lynch escribió: On Fri, June 16, 2006 9:25 am, Martin Alterisio wrote: You can fork a new process a run the other script in the child process. But forking is not always available so I also use another approach: emulate a web page request

[PHP] PHP Session

2006-06-19 Thread James Nunnerley
Hi Folks, Bit of an unusual question here, which is basically as a result of my lack of understanding as to how Sessions work. I've created a Captcha image solution for an application I look after, and when we came to look into something that required debugging, I realized I'm using

[PHP] Slow loading (was Re: [PHP] Re: How to run one php app from another? RECAP)

2006-06-19 Thread Manuel Amador (Rudd-O)
PHP tends to send output in content transfer encoding chunked (I think this is true when output buffering is on). ?php ? blocks usually have their output sent in one chunk. The browser renders the chunks as they come, but oftentimes they delay rendering until a sensible number of HTML closing

Re: [PHP] PHP Session

2006-06-19 Thread David Tulloh
James Nunnerley wrote: ... It works a treat, however what I want to understand is how the session is kept relevant to that particular user's session - mainly because my boss wants to check there's no security implication. ... The session is stored on the server, typically in a file in

[PHP] php calendar

2006-06-19 Thread weetat
Hi all , Any php calendar out there, search google , most of them are javascript calendar ? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php calendar

2006-06-19 Thread Ryan A
Strange... all I wrote was php calender on google and i got a whole bunch of results... guess i am using special version of google... -Ryan --- weetat [EMAIL PROTECTED] wrote: Hi all , Any php calendar out there, search google , most of them are javascript calendar ? Thanks --

[PHP] ldap_connect allways returns true even if logically it shouldn't?

2006-06-19 Thread Steve Turnbull
Hi I have this code (PHP5) as part of a class to do some LDAP stuff... public function connect() { $this-ds = @ldap_connect( $this-server, $this-port ); ### This seems to return true no matter waht if ( $this-ds ) { // A successful connection was made

[PHP] PHP Automation

2006-06-19 Thread Jef Sullivan
Greetings all, I have a situation that I'm not sure how it can be done with PHP. I have written a web-application that produces a monthly statement for our customers. Now, I need to automate the printing of these monthly statements. The way I was thinking of doing this was through Perl.

Re: [PHP] PHP Automation

2006-06-19 Thread Brad Bonkoski
If you cron job the script file and perhaps convert it to something like PDF then you could feed it to the printer through the shell script... I'm sure there are other ways, just one suggestion from the top of my head.. -brad Jef Sullivan wrote: Greetings all, I have a situation that I'm

Re: [PHP] ldap_connect allways returns true even if logically it shouldn't?

2006-06-19 Thread Joe Wollard
I believe the manual says that ldap_connect doesn't actually make the connection but rather it just simply sets up the connection parameters. The actual connection doesn't happen until ldap_bind is executed. - or so I recall reading some where ;-) On Jun 19, 2006, at 9:06 AM, Steve

[PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Richard Harding
I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed ok. When I run phpinfo() I get that PDO is activated and the drivers has no value. I am now trying to

Re: [PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Richard Harding
Jochem Maas wrote: Richard Harding wrote: I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed ok. When I run phpinfo() I get that PDO is activated and the

Re: [PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Jochem Maas
Richard Harding wrote: I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed ok. When I run phpinfo() I get that PDO is activated and the drivers has no

Re: [PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Richard Harding
Jochem Maas wrote: Richard Harding wrote: Jochem Maas wrote: Richard Harding wrote: I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed

Re: [PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Jochem Maas
Richard Harding wrote: Jochem Maas wrote: Richard Harding wrote: I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed ok. When I run phpinfo() I get

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Jochem Maas
Rory Browne wrote: Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. This doesn't work for spam. just wait till we have spambots with AI and emotion subroutines ;-) Having that said, feel free to set up procmail

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Dan Parry
snip just wait till we have spambots with AI and emotion subroutines ;-) /snip It'll be worse if we get spammers with actual intelligence... -- Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -- No virus found in this outgoing message. Checked by AVG Free

[PHP] Array

2006-06-19 Thread Rob W.
$query=SELECT switchport FROM network; $result=mysql_query($query); $sql_range=array($result['switchport']); Anybody tell me what i'm doing wrong and why this isnt going in to an array?

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Barry
Jochem Maas schrieb: Rory Browne wrote: Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. This doesn't work for spam. just wait till we have spambots with AI and emotion subroutines ;-) Oh yeah then i will have it to

RE: [PHP] Array

2006-06-19 Thread Jay Blanchard
[snip] $query=SELECT switchport FROM network; $result=mysql_query($query); $sql_range=array($result['switchport']); Anybody tell me what i'm doing wrong and why this isnt going in to an array? [/snip] Use mysql_fetch_array() $sql_range = mysql_fetch_array($result); -- PHP General

Re: [PHP] Array

2006-06-19 Thread Brad Bonkoski
Your result variable is a result identifier, not the actual data... check out: http://www.php.net/manual/en/function.mysql-fetch-row.php or something similar... -Brad Rob W. wrote: $query=SELECT switchport FROM network; $result=mysql_query($query); $sql_range=array($result['switchport']);

[PHP] An annoying session problem

2006-06-19 Thread Alex Major
Hi there. I'm working my way through a new script, but I've stumbled into a problem. Some data that I've set into a session, won't be processed by part of my php code, but then later on in the page I can get the session value to output. Also, just so that its clear, the mysql code is correct (I

RE: [PHP] An annoying session problem

2006-06-19 Thread phpninja
td colspan=5?php $userid ? ?php $_SESSION['username'] ?/td that should be ?= $_SESSION['username'] ? or ?php echo $_SESSION['username']; ? its all in how you call the variables.. ?php $somevar ? isint telling the variable to do anything. -phpninja -Original Message- From: Alex

Re: [PHP] Array

2006-06-19 Thread John Nichel
Rob W. wrote: $query=SELECT switchport FROM network; $result=mysql_query($query); $sql_range=array($result['switchport']); Anybody tell me what i'm doing wrong and why this isnt going in to an array? Because you're not understanding what the function mysql_query() is doing. Look at

Re: [PHP] PHP Session

2006-06-19 Thread tedd
At 10:04 AM +0100 6/19/06, James Nunnerley wrote: Hi Folks, -snip- Are we missing something, or is it really magic? It's really magic. I've written a very simple example (code included) at: http://www.weberdev.com/get_example-4349.html and demo at: http://xn--ovg.com/session As for

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread tedd
At 5:10 PM +0200 6/19/06, Barry wrote: Jochem Maas schrieb: Rory Browne wrote: Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. This doesn't work for spam. just wait till we have spambots with AI and emotion subroutines

Re: [PHP] trouble getting PDO going on ubuntu 6.06 installation

2006-06-19 Thread Richard Harding
Richard Harding wrote: I am trying to get PDO going on a new desktop with Ubuntu 6.06. I have installed php5, php5-dev, etc and have php5 working with no problems. I then did a pecl install pdo and that installed ok. When I run phpinfo() I get that PDO is activated and the drivers has no

[PHP] running conditions while looping through arrays....

2006-06-19 Thread IG
I want to run filters on an pop3 inbox. I have the following arrays which I'll get from the database- $subject $email $body $subject_like $email_like $body_like I then go through each email in turn using this loop- $popy = {.$pop3./pop3:110}INBOX; $mailbox = imap_open($popy, $un, $pw);

Re: [PHP] An annoying session problem

2006-06-19 Thread Alex Major
Thanks for pointing that out, however I've changed the code to: ?php // Lets see how much the person has at the moment. $current_resource_query = SELECT food, wood, stone, gold, population FROM game_resources WHERE user_id = '.$_SESSION['user_id'].'; $current_resource_result =

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread tedd
At 10:05 AM +0200 6/19/06, Rory Browne wrote: Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. That works surprisingly well. :-) This doesn't work for spam. Having that said, feel free to set up procmail or something

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Robert Cummings
On Mon, 2006-06-19 at 03:34, Denis Gerasimov wrote: Hello Robert, I think you should quit whining like a spoilt brat *lol*. I get something like 3 a day. Big fricking whoop. I am subscribed to most of the PHP mailing lists, not only to PHP general. There is the same problem too. So

Re: [PHP] An annoying session problem

2006-06-19 Thread Stut
Alex Major wrote: Thanks for pointing that out, however I've changed the code to: ?php // Lets see how much the person has at the moment. $current_resource_query = SELECT food, wood, stone, gold, population FROM game_resources WHERE user_id = '.$_SESSION['user_id'].';

[PHP] Re: Slow loading (was Re: [PHP] Re: How to run one php app from another? RECAP)

2006-06-19 Thread tedd
Manuel: Thank you for your most detailed explanation -- I must admit most of it is over my head. However, I shall study the concept further and place your email in my to learn collection (I have one and it's growing faster than I can keep up). But as of now, I can now run one php application

[PHP] Re: running conditions while looping through arrays....

2006-06-19 Thread Adam Zey
IG wrote: I want to run filters on an pop3 inbox. I have the following arrays which I'll get from the database- $subject $email $body $subject_like $email_like $body_like I then go through each email in turn using this loop- $popy = {.$pop3./pop3:110}INBOX; $mailbox = imap_open($popy,

Re: [PHP] An annoying session problem

2006-06-19 Thread tedd
Alex Major wrote: And I'm still not getting the output correctly. I don't think that the SELECT query is working properly, is there problem with how I've put: WHERE user_id = '.$_SESSION['user_id'].' Maybe I'm all wet here, but what's the the periods? Why isn't it: WHERE user_id =

Re: [PHP] An annoying session problem

2006-06-19 Thread tedd
At 12:27 AM +0700 6/20/06, Gmail nya Suprie wrote: tedd wrote: Alex Major wrote: And I'm still not getting the output correctly. I don't think that the SELECT query is working properly, is there problem with how I've put: WHERE user_id = '.$_SESSION['user_id'].' Maybe I'm all wet

[PHP] mime.magic adding more types

2006-06-19 Thread Mark Steudel
Hi there, I'm writing some code that looks at a video file given to it and writes up the correct embed html and outputs it to the browser. I though that I would use mime_content_type() function to detect the type of each video, but after enabling it, I found that it doesn't have the mime type for

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Ryan A
--- Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2006-06-19 at 03:34, Denis Gerasimov wrote: Hello Robert, I think you should quit whining like a spoilt brat *lol*. I get something like 3 a day. Big fricking whoop. I am subscribed to most of the PHP mailing lists, not

Re: [PHP] An annoying session problem

2006-06-19 Thread Alex Major
Hmpf, well I feel like a real tit now. I tried all the posted suggestions, and still couldn't figure out why it wasn't working. I went back to re-code the whole page from scratch, started off with include 'connection.php', then it hit me...i hadn't included the connection file in the parent file

[PHP] regex brain-toot

2006-06-19 Thread Jay Blanchard
I have a field that contains a value in parenthesis', but also contains other text, for instance; (it is a legacy app that I am working with, and by legacy I am saying pre-1980) Upper voltage (124.1) I know that \([0-9]*\) will get me (124.1), but I am totally forgetting how to get 124.1 without

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: I have a field that contains a value in parenthesis', but also contains other text, for instance; (it is a legacy app that I am working with, and by legacy I am saying pre-1980) Upper voltage (124.1) I know that \([0-9]*\) will get me (124.1), but I am totally forgetting

Re: [PHP] regex brain-toot

2006-06-19 Thread Robert Cummings
On Mon, 2006-06-19 at 14:42, John Nichel wrote: Jay Blanchard wrote: I have a field that contains a value in parenthesis', but also contains other text, for instance; (it is a legacy app that I am working with, and by legacy I am saying pre-1980) Upper voltage (124.1) I know that

RE: [PHP] regex brain-toot

2006-06-19 Thread Jay Blanchard
[snip] \(([0-9]*)\) [/snip] I had done this before and still get the parenthesis... ereg(\(([0-9]*)\), Upper Voltage (124.1), $regs); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] regex brain-toot

2006-06-19 Thread Jay Blanchard
[snip] You won't match the dot btw: \(([.0-9]*)\) Which is crude since it will match more than one dot :) [/snip] Typo on my part \(([0-9\.]*)\)...but still gets parenthesis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] \(([0-9]*)\) [/snip] I had done this before and still get the parenthesis... ereg(\(([0-9]*)\), Upper Voltage (124.1), $regs); Anot PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( /\((\d{1,}.*?)\)/, Upper

RE: [PHP] regex brain-toot

2006-06-19 Thread Jay Blanchard
[snip] Anot PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( /\((\d{1,}.*?)\)/, Upper Voltage (124.1), $regs ); [/snip] Still returns parentheses ereg([^\(][0-9\.]* , Upper Voltage (124.1), $regs ); gets rid of opening bracket, but

Re: [PHP] regex brain-toot

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] Anot PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( /\((\d{1,}.*?)\)/, Upper Voltage (124.1), $regs ); [/snip] Still returns parentheses ereg([^\(][0-9\.]* , Upper Voltage (124.1), $regs ); gets rid of

RE: [PHP] regex brain-toot

2006-06-19 Thread Jay Blanchard
[snip] Do you have to use ereg? The preg_match pattern I posted works fine. It will return an array, first element being the whole string it matched, next element will be what it matched _inside_ the parentheses (less the parentheses) (if it matches anything that is). [/snip] Thanks

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread MOKULEN_IMADICA
Dear Denis and List members, I am very tired of deleting spam messages received from PHP mailing lists uu...I was tired more than you are,Denis,undoubtedly. Because I am a Japanese.I think that the person who can not read Japanese spam is fortunate. As I can see most of the spam messages

RE: [PHP] SMS with php recommendation (a bit 0T i guess)

2006-06-19 Thread Daevid Vincent
For what it's worth, most cell phone providers have an email gateway which works just as good as an SMS message (and it's free!). Just find the email address to send to for each carrier and store in a table. For example, for my Cingular (ATT) phone, it is my [EMAIL PROTECTED] Where the X's

RE: [PHP] remove keys from array

2006-06-19 Thread Daevid Vincent
http://www.php.net/manual/en/function.unset.php So if you had: $foo = Array ( [0] = 2, [ID] = 2, [1] = asdasd, [CategoryName] = asdasd ) ); unset($foo[0]); unset($foo[1]); Yields: $foo = Array ( [ID] = 2, [CategoryName] = asdasd ) ); DÆVID -Original Message- From: Richard Lynch

[PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Ok, I am still trying to get this figured out from what I tried doing last night. If anybody wants to try it, please be my guest. This is the deal. Create an INTEGER table. Put the numbers 1 - 24 in it. Leave out like number 8, 9, 22, 23 ect.. Now create a php statement that will take and pull

[PHP] Simulating mysql_real_escape_string

2006-06-19 Thread Tim Traver
Hi all, ok, have a relatively complicated architecture of php scripts in place, and after reading more about SQL injection, want to make sure that I clean my data completely before I enter it into a MySQL db. I tend to clean the data on the way into the app, which has many subroutines that

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Jochem Maas
Rob W. wrote: Ok, I am still trying to get this figured out from what I tried doing last night. If anybody wants to try it, please be my guest. This is the deal. Create an INTEGER table. Put the numbers 1 - 24 in it. Leave out like number 8, 9, 22, 23 ect.. I'll assume the DB creation and

Re: [PHP] Simulating mysql_real_escape_string

2006-06-19 Thread John Nichel
Tim Traver wrote: Hi all, ok, have a relatively complicated architecture of php scripts in place, and after reading more about SQL injection, want to make sure that I clean my data completely before I enter it into a MySQL db. I tend to clean the data on the way into the app, which has many

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread John Nichel
Jochem Maas wrote: snip echo 'option value=',$port,'',$port,'/option'; snip 2. try to output something that resembles proper HTML (an option without a closing tag sucks) P I never close my option tags that way option value=foo /Bar :-p -- John C. Nichel IV

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Jon Anderson
John Nichel wrote: P I never close my option tags that way option value=foo /Bar :-p I didn't think this would compute as proper XHTML...Sure enough validator.w3c.org says: Error /Line 10 column 10/: character data is not allowed here. |option /*t*est| You have used

Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-19 Thread Brian Dunning
On Jun 17, 2006, at 12:06 PM, a couple of guys wrote: header(Content-type: image/jpeg); notice jpeg - not jpg. Thanks all - this was indeed the problem. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IMAP Search

2006-06-19 Thread CodeHeads
Hello all, I am having a problem trying to get the subject corenspond with the message ID on a search. here is my code so far: echo h1Search Results/h1; $WORDS = $_POST['words']; $search1 = BODY \$WORDS\; $SEARCH = @imap_search($conn, $search1, SE_UID); $arrData = $SEARCH; $mailHeader =

[PHP] IMAP Multiple Pages

2006-06-19 Thread CodeHeads
Hello again, Here is another problem I am having. I would like to setup multiple pages on a IMAP archive reader I am working on. I cannot seem to get the multiple pages working right. Here is my code. $threads = imap_thread($conn); foreach ($threads as $key = $val) { $tree = explode('.',

[PHP] IMAP Search

2006-06-19 Thread CodeHeads
Hello all, I am having a problem trying to get the subject corenspond with the message ID on a search. here is my code so far: echo h1Search Results/h1; $WORDS = $_POST['words']; $search1 = BODY \$WORDS\; $SEARCH = @imap_search($conn, $search1, SE_UID); $arrData = $SEARCH; $mailHeader =

RE: [PHP] Want some PHP e-book

2006-06-19 Thread Daevid Vincent
http://www.hudzilla.org/phpbook/ WOW! That online book is awesome. I consider myself an expert at PHP/mySQL and there were some things in there that I didn't know. Thanks Ligaya, DÆVID -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread tedd
At 5:48 PM -0400 6/19/06, Jon Anderson wrote: John Nichel wrote: P I never close my option tags that way option value=foo /Bar :-p I didn't think this would compute as proper XHTML...Sure enough validator.w3c.org says: Error /Line 10 column 10/: character data is not allowed

RE: [PHP] Want some PHP e-book

2006-06-19 Thread tedd
At 3:17 PM -0700 6/19/06, Daevid Vincent wrote: http://www.hudzilla.org/phpbook/ WOW! That online book is awesome. I consider myself an expert at PHP/mySQL and there were some things in there that I didn't know. Thanks Ligaya, DÆVID Same here and I'm not an expert. :-) tedd --

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: snip echo 'option value=',$port,'',$port,'/option'; snip 2. try to output something that resembles proper HTML (an option without a closing tag sucks) P I never close my option tags that way option value=foo /Bar but that's

Re: [PHP] IMAP Search

2006-06-19 Thread Richard Lynch
Of all the functions to use @ with, and to ignore error messages and warnings, IMAP is the *last* one you want to do that with. Add some error checking, and just forget using @ Meanwhile, both your questions didn't actually have a question, nor any explanation of what was going wrong or right

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
This also didnt work, Still giving me no output just like the last try. - Original Message - From: Xavier Casto To: Rob W. Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 4:33 PM Subject: Re: [PHP] Still trying to figure this out... Have you ever thought of

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Yep, and still nothing output's. - Original Message - From: Xavier Casto [EMAIL PROTECTED] To: 'Rob W.' [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 6:20 PM Subject: RE: [PHP] Still trying to figure this out... You did make sure to assign a numerical

[PHP] GD problems

2006-06-19 Thread Beauford
I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing? http://tanksoftware.com/tutes/installingphp.html Any help is appreciated. B -- PHP General

Re: [PHP] IMAP Search

2006-06-19 Thread CodeHeads
On Mon, June 19, 2006 7:12 pm, Richard Lynch wrote: Of all the functions to use @ with, and to ignore error messages and warnings, IMAP is the *last* one you want to do that with. Add some error checking, and just forget using @ Meanwhile, both your questions didn't actually have a question,

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Nope, I still dont get anything back from that. So i'm still stuck in the mud. - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: Rob W. [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 4:05 PM Subject: Re: [PHP] Still trying to figure this out...

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Robert Cummings
On Mon, 2006-06-19 at 16:39, Rob W. wrote: Ok, I am still trying to get this figured out from what I tried doing last night. If anybody wants to try it, please be my guest. This is the deal. Create an INTEGER table. Put the numbers 1 - 24 in it. Leave out like number 8, 9, 22, 23 ect.. Now

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Ryan A
--- MOKULEN_IMADICA [EMAIL PROTECTED] wrote: Dear Denis and List members, I am very tired of deleting spam messages received from PHP mailing lists uu...I was tired more than you are,Denis,undoubtedly. Because I am a Japanese.I think that the person who can not read Japanese spam

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Yeah, that's what i'm trying to print is the missing numbers in the db. That's what I've been trying to figure out this whole time. - Original Message - From: Xavier Casto [EMAIL PROTECTED] To: 'Rob W.' [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 6:34

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 3:39 pm, Rob W. wrote: $query=SELECT switchport FROM network; $result=mysql_query($query); //If you wanna use fetch_array or whatever, fine. //But I dunno how to use it and don't care to learn. //And haven't felt the need for a decade now. //So there :-) while

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Jochem Maas
Rob W. wrote: Nope, I still dont get anything back from that. it will AT THE VERY LEAST return the string: 'select name=port/select' do you have any idea what you have in your database??? and have you ever heard of print_r() or var_dump()? you can use them to *investigate* your

Re: [PHP] GD problems

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 5:43 pm, Beauford wrote: I finally broke down and reinstalled PHP using the info from the site below, but GD is still not working. Phpinfo() shows it is enabled, as are the other libraries. So I'm lost as to what I am missing?

Re: [PHP] Simulating mysql_real_escape_string

2006-06-19 Thread Richard Lynch
Honestly, just connect to the database earlier in your code... if you insist on not doing that, use mysql_escape_strign and just forget ever moving to Unicode data. On Mon, June 19, 2006 3:58 pm, Tim Traver wrote: Hi all, ok, have a relatively complicated architecture of php scripts in

Re: [PHP] An annoying session problem

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 10:26 am, Alex Major wrote: Hi there. I'm working my way through a new script, but I've stumbled into a problem. Some data that I've set into a session, won't be processed by part of my php code, but then later on in the page I can get the session value to output.

Re: [PHP] IMAP Search

2006-06-19 Thread Jochem Maas
CodeHeads wrote: ... U, you referred me to a page about smart questions..what about your TOP posting? Richard has more than enough karma on this list to get away with a top-post every half hour or so. Nevermind, I see the PHP list is filled with smart asses so I will find it

RE: [PHP] GD problems

2006-06-19 Thread Beauford
Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had to find a

Re: [PHP] PHP Automation

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 8:32 am, Jef Sullivan wrote: I have a situation that I'm not sure how it can be done with PHP. I have written a web-application that produces a monthly statement for our customers. Now, I need to automate the printing of these monthly statements. The way I was

Re: [PHP] running conditions while looping through arrays....

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 11:05 am, IG wrote: I want to run filters on an pop3 inbox. You may want to just use IMAP protocol... I have the following arrays which I'll get from the database- $subject $email $body $subject_like $email_like $body_like I then go through each email in turn

Re: [PHP] mime.magic adding more types

2006-06-19 Thread Jochem Maas
Mark Steudel wrote: Hi there, I'm writing some code that looks at a video file given to it and writes up the correct embed html and outputs it to the browser. I though that I would use mime_content_type() function to detect the type of each video, but after enabling it, I found that it

[PHP] Organizing a group project

2006-06-19 Thread Matt Palermo
Hello all. I'm the webmaster and developer of all the software and content at SweetPHP.com. I have a few ideas for some new scripts that I would love to work on, but don't have enough time to fully commit. I would love to start up a group effort for a few things and be part of a development

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Nope, still does nothing. - Original Message - From: Xavier Casto [EMAIL PROTECTED] To: 'Rob W.' [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 6:49 PM Subject: RE: [PHP] Still trying to figure this out... I think the problem is I forgot to reset

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
$range = array_flip( range( 1, 24 ) ); $query = SELECT switchport FROM network ; if( ($result = mysql_query( $query )) !== false ) { while( ($row = mysql_fetch_array( $result )) !== false ) { unset( $range[$row[0]] ); } } foreach( $range as

Re: [PHP] Organizing a group project

2006-06-19 Thread Chris
Matt Palermo wrote: Hello all. I'm the webmaster and developer of all the software and content at SweetPHP.com. I have a few ideas for some new scripts that I would love to work on, but don't have enough time to fully commit. I would love to start up a group effort for a few things and be

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: Hi again, I started again to see if I could get it to work. I first removed everything (libpng, libjpeg, zlib, and PHP). Then as before I followed the info in the link below. Now I get the following when I run make for PHP. Note also that I can not compile gd on it's own, I had

Re: [PHP] How to run one php app from another? RECAP

2006-06-19 Thread Chris
Manuel Amador (Rudd-O) wrote: Excuse me... in which scenarios isn't fork() available? As far as I know, it even works on Windows (albeit slower... not that you'll be gaining any performance by curl'ing your URL - that's actually slower than fork()). It's (probably) not that the fork() etc

Re: [PHP] GET, POST, REQUEST

2006-06-19 Thread Richard Lynch
On Sat, June 17, 2006 1:25 pm, Ben Ramsey wrote: Using $_REQUEST is similar to using register_globals. You simply cannot trust the origin of the data. It's possible that a variable by the name of foo exists as a cookie, POST value, and GET value. If you use $_REQUEST, you cannot be assured

  1   2   >