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

2006-06-19 Thread Robert Cummings
On Tue, 2006-06-20 at 02:37, Rob W. wrote: > I still have not yet found anybody to help me with this. You found PLENTY of people to help you on this. PLENTY of people gave you perfectly valid solutions. YOU have a problem elsewhere that we are unable to ascertain due to our current inability to re

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

2006-06-19 Thread Rob W.
OMG Chris, Thankyou very much. That is exactally what I needed. If you wish for me to pay you some amount, I will be very happy to. Please send me a private email where I can paypal you. If not, Thank you again very much for the help. Sorry everyone for the hastle for those of you wernt able t

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

2006-06-19 Thread Chris
Rob W. wrote: I still have not yet found anybody to help me with this. All the code that people have given me has not worked at all. I still get no output. So to add a little more to this, I'm gonna define how the database looks. -- |switchid|swi

Re: [PHP] php calendar

2006-06-19 Thread Ahmed Saad
On 19/06/06, Ryan A <[EMAIL PROTECTED]> wrote: guess i am using special version of google... an iGoogle? ;) /ahmed -- 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 Rob W.
I still have not yet found anybody to help me with this. All the code that people have given me has not worked at all. I still get no output. So to add a little more to this, I'm gonna define how the database looks. -- |switchid|switchport | -

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

2006-06-19 Thread MOKULEN_IMADICA
Dear Lyan and Tedd. Thank you for your words.I am very glad. > It would be nice if the English speaking people knew how to write English. haha...yes,as a matter of fact,this list memberes are "very-familiar" with English and I do sometimes not to understand what they want to say.If we chatting i

Re: [PHP] mysql_db_query & INSERT

2006-06-19 Thread John Nichel
Jay Blanchard wrote: [snip] How do I retrieve the auto generated primary key field in the first table during the first insert operation. [/snip] http://www.php.net/mysql_insert_id You mean they have a manual for this stuff?? Holy Toledo! -- By-Tor.com ...it's all about the Rush http://www

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: What surprises me about this is that no one in the various forums, newsgroups, email lists, etc. can offer a solution. I'm sure I'm not the only one that's had this problem. I can't even get an answer from the gd forums or faq's. I offered the solution - install the header files

RE: [PHP] GD problems

2006-06-19 Thread Beauford
What surprises me about this is that no one in the various forums, newsgroups, email lists, etc. can offer a solution. I'm sure I'm not the only one that's had this problem. I can't even get an answer from the gd forums or faq's. I guess I'll have to see if I can find a captcha program that doesn'

RE: [PHP] GD problems

2006-06-19 Thread David Robley
Beauford wrote: > Thanks for the reply, but what are these for then - libpng and libjpeg? No > where does it say I need anything else. I have searched and searched for > information on installing this and never have I seen anything about -devel > packages. Even in the link I gave it says nothing a

RE: [PHP] mysql_db_query & INSERT

2006-06-19 Thread Jay Blanchard
[snip] How do I retrieve the auto generated primary key field in the first table during the first insert operation. [/snip] http://www.php.net/mysql_insert_id -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_db_query & INSERT

2006-06-19 Thread Chris
Prathaban Mookiah wrote: I have run into a tricky situation and need some help to work my way through the problem. I use MySQL. I accept some data from the user and insert them into two tables. 1. I insert part of the data into the first table. I do not specify the primary key field. It is au

[PHP] mysql_db_query & INSERT

2006-06-19 Thread Prathaban Mookiah
I have run into a tricky situation and need some help to work my way through the problem. I use MySQL. I accept some data from the user and insert them into two tables. 1. I insert part of the data into the first table. I do not specify the primary key field. It is auto generated through auto_i

Re: [PHP] GD problems

2006-06-19 Thread Chris
Beauford wrote: Thanks for the reply, but what are these for then - libpng and libjpeg? No where does it say I need anything else. I have searched and searched for information on installing this and never have I seen anything about -devel packages. Even in the link I gave it says nothing about th

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

2006-06-19 Thread tedd
At 4:17 PM -0700 6/19/06, Ryan A wrote: >--- MOKULEN_IMADICA <[EMAIL PROTECTED]> wrote: > > > Unfortunately I am not familiar with English to the >> extent that I can >> send advice to my dear list in each time,but I >> always appreciate > > members. >> >-snip- > >As for your English, I think its r

RE: [PHP] GD problems

2006-06-19 Thread Beauford
Thanks for the reply, but what are these for then - libpng and libjpeg? No where does it say I need anything else. I have searched and searched for information on installing this and never have I seen anything about -devel packages. Even in the link I gave it says nothing about this. I've just spen

Re: [PHP] GET, POST, REQUEST

2006-06-19 Thread Richard Lynch
On Sun, June 18, 2006 2:19 am, Satyam wrote: > - Original Message - > From: "Rory Browne" <[EMAIL PROTECTED]> > >> >> Good code won't be vulnerable to register_globals either, but having >> register_globals on is a security problem because there are security >> flaws >> that can only be exp

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

2006-06-19 Thread Chris
Richard Lynch wrote: On Mon, June 19, 2006 8:13 pm, Chris wrote: 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

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

2006-06-19 Thread Richard Lynch
On Mon, June 19, 2006 8:13 pm, Chris wrote: > 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 >> t

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

2006-06-19 Thread Robert Cummings
On Mon, 2006-06-19 at 21:09, Rob W. wrote: > $range = array_flip( range( 1, 24 ) ); > > $query = "SELECT switchport FROM network "; > if( ($result = mysql_query( $query )) !== false ) > { > while( ($row = mysql_fetch_array( $result )) !== false ) > { > u

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 as

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 comm

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 t

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 pa

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 $sw

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: 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 $result to 0 for

[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 t

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

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 i

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] 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 Slackware

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 fin

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] 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] 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? > > http://tanksoftware.com/tutes/instal

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: '' 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 problem. ... >> $sqlRange

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 (list

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: Sent: Monday, June 19, 2006 6:34 PM Subject: RE: [PH

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 > J

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.. N

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: Sent: Monday, June 19, 2006 4:05 PM Subject: Re: [PHP] Still trying to figure this out... Rob W. wrote:

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 ques

[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 M

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: 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 value to $maxport?

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 doi

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 or.

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

2006-06-19 Thread Jochem Maas
John Nichel wrote: > Jochem Maas wrote: > >> echo '',$port,''; > >> 2. try to output something that resembles proper HTML (an >> without a closing tag sucks) >> > > P I never close my option tags that way > > Bar but that's different, you have your official dr. Evil's certifi

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 tedd
At 5:48 PM -0400 6/19/06, Jon Anderson wrote: >John Nichel wrote: >>P I never close my option tags that way >> >>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.

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

[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 "Search Results"; $WORDS = $_POST['words']; $search1 = "BODY \"$WORDS\""; $SEARCH = @imap_search($conn, $search1, SE_UID); $arrData = $SEARCH; $mailHeader = @imap_he

[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('.', $key)

[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 "Search Results"; $WORDS = $_POST['words']; $search1 = "BODY \"$WORDS\""; $SEARCH = @imap_search($conn, $search1, SE_UID); $arrData = $SEARCH; $mailHeader = @imap_he

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

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 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. |*t*est| You have used character data somewhere it is not

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

2006-06-19 Thread John Nichel
Jochem Maas wrote: echo '',$port,''; 2. try to output something that resembles proper HTML (an without a closing tag sucks) P I never close my option tags that way Bar :-p -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.

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 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

[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 p

[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 t

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

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 (AT&T) phone, it is my [EMAIL PROTECTED] Where the X's repre

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 a

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 Johnth

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] 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 e

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,}.*?)\)/", "U

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 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 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) > > >

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 ho

[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] 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 t

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 mailin

[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] 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']."' >>>

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

[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,

[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

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: // 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_r

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.

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 som

Re: [PHP] An annoying session problem

2006-06-19 Thread Alex Major
Thanks for pointing that out, however I've changed the code to: Food: Wood: Stone: Gold: Session user_id is: 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:

[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] 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 value.

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 wi

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 CAP

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] An annoying session problem

2006-06-19 Thread phpninja
that should be or its all in how you call the variables.. isint telling the variable to do anything. -phpninja -Original Message- From: Alex Major [*mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>] Sent: Monday, June 19, 2006 8:26 AM To: php-general@lists.php.net Subject: [PHP

[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 ca

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'])

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 Maili

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

[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 Dan Parry
just wait till we have spambots with AI and emotion subroutines ;-) 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 Edition. Version:

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

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

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 ok.

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 va

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 d

  1   2   >