[PHP] Fw: plz help

2004-03-29 Thread CurlyBraces Technologies \( Pvt \) Ltd
- Original Message - From: CurlyBraces Technologies ( Pvt ) Ltd To: PHP ; Curt Zirzow ; Vail, Warren Sent: Sunday, March 28, 2004 10:56 AM Subject: plz help hi , i have an apache web server in linux . Those php scripts runs in that pc. Mean while another perl scrips runs

[PHP] Re: $$$wanna make real money$$$..you will no longer need student loans

2004-03-29 Thread Andrew Fenn
This is a scam. It’s called a pyramid scheme where the money keeps going all the way up to the guy who started it. Sure that guy might actually be making money (very unlikely if he’s desperate enough to post on here) but because you’re at the bottom of the pyramid you get squat. This type of

Re: [PHP] Accessing HTTP Content

2004-03-29 Thread Burhan Khalid
Quentin Bennett wrote: Hi, Is this possible, please? What I want to do is, using an HTTP class, $myComms = new Ihttp_base_class($httpParams); $myComms-request = $some_document; $myComms-requrl = /mysite/myscript.php; $myComms-Send(); myscript.php runs within the same Apache

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
Robert Kornfeld wrote: as with april 1, on may use special german and frech characters for urls and email-names. does anyone know a reg. expression to validate the syntax of a email-adress? if(strpos($email,'@')) No, seriously. -- ---John Holmes... Amazon Wishlist:

php-general Digest 29 Mar 2004 12:07:16 -0000 Issue 2674

2004-03-29 Thread php-general-digest-help
php-general Digest 29 Mar 2004 12:07:16 - Issue 2674 Topics (messages 181639 through 181649): Accessing HTTP Content 181639 by: Quentin Bennett 181648 by: Burhan Khalid How to send SMS 181640 by: saepudin 181642 by: Jake McHenry 181643 by: Evan

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread Justin French
On Monday, March 29, 2004, at 10:00 PM, John W. Holmes wrote: Robert Kornfeld wrote: as with april 1, on may use special german and frech characters for urls and email-names. does anyone know a reg. expression to validate the syntax of a email-adress? if(strpos($email,'@')) No, seriously.

[PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Diana Castillo
how can I get the id of the last record I inserted into a table with an insert query? (into Mysql database) -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web :

Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Richard Davey
Hello Diana, Monday, March 29, 2004, 1:40:41 PM, you wrote: DC how can I get the id of the last record I inserted into a table with an DC insert query? (into Mysql database) mysql_insert_id() The manual is your friend. -- Best regards, Richard Davey

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread Red Wingate
Oh yeah, 'Look @ the screen. You will find wonderfull colors there!' doesn't look like an e-mail adress, does it ? A basic approch to really check the syntax would be: preg_match(#^\s*[-\w_]+(\.[-\w_]+)[EMAIL PROTECTED](\.[-\w_]+)+\s*$#sim, $email) Add your special german or french characters

Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Ben Joyce
hello. mysql_insert_id() should do what you need. lovely function, that one. hth, ben Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] how can I get the id of the last record I inserted into a table with an insert query? (into Mysql database) -- Diana Castillo

[PHP] PHP 5rc1 RPM for Mandrake 10

2004-03-29 Thread aka MacGuru
Hi, Anyone knows where it is possible to get PHP 5rc1 RPM for Mandrake 10? Or even for older, I can rebuild it, no problem. Thanks in advance for any suggestion(s). * * Best Regards --- Andrei Verovski * * Personal Home Page *

[PHP] JavaScript Enabled?

2004-03-29 Thread Richard Davey
Hi all, Can anyone suggest a suitable means for detecting if a client browser has JavaScript enabled or not? I know this isn't exactly PHP related, but I need to make sure my PHP script offers an alternative in a friendly way and not a JS error, but I just wondered if there was a foolproof

RE: [PHP] JavaScript Enabled?

2004-03-29 Thread Rich Gray
Can anyone suggest a suitable means for detecting if a client browser has JavaScript enabled or not? I know this isn't exactly PHP related, but I need to make sure my PHP script offers an alternative in a friendly way and not a JS error, but I just wondered if there was a foolproof method of

Re[2]: [PHP] JavaScript Enabled?

2004-03-29 Thread Richard Davey
Hello Rich, Monday, March 29, 2004, 2:51:18 PM, you wrote: RG Er ... how do you generate a JS error with a JS disabled browser? Maybe I should have said JS related error. For example - on vBulletin (a $160 BBS package) if you have JavaScript disabled the drop-down Forum Tools link does

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
From: Red Wingate [EMAIL PROTECTED] if(strpos($email,'@')) No, seriously. 'Look @ the screen. You will find wonderfull colors there!' doesn't look like an e-mail adress, does it ? A basic approch to really check the syntax would be: preg_match(#^\s*[-\w_]+(\.[-\w_]+)[EMAIL

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread csko
If you're going to validate a [EMAIL PROTECTED] address, why even bother? Seriously. There are a 1000 different regular expressions for email addresses out there and each of them have flaws to some extent. If your application is so important that it requires a valid email address, you

[PHP] Send automatic emails

2004-03-29 Thread marc serra
Hi, I'm designing a bid system but at this time I got a problem to automatically send an email at the end of a bid. The only solution I'm thinking is to create a program that check every minute if a bid was finish and I would have prefer not to develop another program. If you have any

RE: [PHP] Send automatic emails

2004-03-29 Thread Aaron Wolski
Instead of us rambling off ideas and concepts, why don't you tell us about the process and exactly what you are trying to accomplish first, so we don't waste our of your time. Aaron -Original Message- From: marc serra [mailto:[EMAIL PROTECTED] Sent: March 29, 2004 10:09 AM To:

RE: [PHP] How to send SMS

2004-03-29 Thread jon roig
Yeah... It depends entirely on your provider. Check this out, though -- you don't necessarily need to connect to icq/aim to send sms messages through their system. http://www.icq.com/sms/eg_networks.html -- jon --- jon roig web developer email: [EMAIL PROTECTED] phone:

RE: [PHP] Send automatic emails

2004-03-29 Thread Hawkes, Richard
Well, you have two options (using my reasoning!): 1. Run a check script (surely every 10 minutes or more would be sufficient?) using something like 'cron' that processes all 'just' closed auctions. 2. Have a function that gets called every time any page is viewed that does the

[PHP] Pass by references

2004-03-29 Thread Mike Mapsnac
I write some small program that uses xml. So I will use this function http://us3.php.net/manual/en/function.xml-parse-into-struct.php. Quote: This function parses an XML file into 2 parallel array structures, one (index) containing pointers to the location of the appropriate values in the

Re: [PHP] Pass by references

2004-03-29 Thread Rasmus Lerdorf
Just means it will fill in the arrays you pass into it in the lat two parameters. See the example on that page. -Rasmus On Mon, 29 Mar 2004, Mike Mapsnac wrote: I write some small program that uses xml. So I will use this function

[PHP] apply function to each array element?

2004-03-29 Thread raisinlove
Hi, I'm looking for a concrete example I could use to create an array where each element from an original array is processed by a function. It seems array_walk would be the solution but it doesnt seem to output an array. My function looks up my array elements in a mysql table and outputs a

Re: [PHP] apply function to each array element?

2004-03-29 Thread Richard Davey
Hello raisinlove, Monday, March 29, 2004, 4:21:44 PM, you wrote: r Hi, I'm looking for a concrete example I could use to create an array r where each element from an original array is processed by a function. r It seems array_walk would be the solution but it doesnt seem to output r an array.

[PHP] find string position using reg exp

2004-03-29 Thread Christian Calloway
Hi, maby I am missing something, but I am trying to find a way to find the N position/character in a String of a regular expression match. For example, if I look for the pattern abba in 200 character length string, I would like to know where, at what position that match was made. Any ideas?

Re: [PHP] find string position using reg exp

2004-03-29 Thread Richard Davey
Hello Christian, Monday, March 29, 2004, 10:28:53 AM, you wrote: CC maby I am missing something, but I am trying to find a way to find the N CC position/character in a String of a regular expression match. For example, CC if I look for the pattern abba in 200 character length string, I would CC

[PHP] no highlighted sourcecode in my doc

2004-03-29 Thread Decapode Azur
hello, I have put the flag --sourcecode on on the phpdoc command line and the tag @filesource in my page-level docblock phpDocumentor claims that 'ERROR in my.php on line 12: filesource tag is not available in PHP versions less than 4.3.0, tag ignored' But it does lie: my phpinfo() says my

Re: [PHP] reg expression for ide-emails

2004-03-29 Thread John W. Holmes
From: csko [EMAIL PROTECTED] Why? Becasuse some people entered [EMAIL PROTECTED] as email :) So. If you require a verified email, they obviously won't be able to verify it. You'll waste some resources sending the mail, but does that really matter? I guess if you blindly send out messages to

[PHP] faking $HTTP_REFERER

2004-03-29 Thread Tristan . Pretty
My boss wants to combine the previously build security, that we have within a notes Domino server, with a few pages that we run on PHP. As I've tried to use PHP to talk to a notes database, and failed I've decided that the easiest option is to: 1. Add a link on the notes site to the PHP site.

[PHP] Problem of unicode ( Inserted data / Query )

2004-03-29 Thread edwardspl
Dear You, How to control php convert inserted data or query to / from MS-SQL ( MUST in charset of unicode ) ? For example, Insert data into MS-SQL : A client user ( using his/her own language ) insert some data into MS-SQL, then MS-SQL MUST store the data ( which come from the client user ) in

Re: [PHP] faking $HTTP_REFERER

2004-03-29 Thread John W. Holmes
From: [EMAIL PROTECTED] Can a user overwrite the $HTTP_REFERER? Yep. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem accessing an array inside if/switch

2004-03-29 Thread Ben Ramsey
One of my co-workers posted this to PHPBuilder, and I'm posting it here. It's a problem that's baffling the snot out of us. It's an array that you can print_r() from outside an if or switch/case statement, but from inside, it seems unaccessible. His post follows: quote Ok Background:

[PHP] data by halves

2004-03-29 Thread German
Hello, the problem that I have is that I must raise a great amount of data SQL server, with php, but at the moment for raising traves of a consultation SQL the data they are by halves. I do not have nor idea because it passes this... The data type that handles the field to keep the data is of

[PHP] Simple one I think

2004-03-29 Thread Dave Carrera
Hi List Sorry for this basic one but my brains gone to sleep and I can t see it. --- Problem example $vocals = array( name = array('Jonny Flash', 'Bill Banger', 'Sarah Jane'), skill = array('87', '77', 93), fee = array('22000', '18500', '39000')

Re: [PHP] apply function to each array element?

2004-03-29 Thread raisinlove
Thanks for the reply, I think I'll need to dig deeper as the proposed line doesnt work with my function. array_walk should be fine for this, instead of creating a new array why not just modify the existing one? I.e.: The reason I want a new array is that I will then combine both together, for

[PHP] Re: Simple one I think

2004-03-29 Thread Ben Ramsey
DC I get and output of [0][0][0][1][1][1][2][2][2] why ? Try putting curly braces around your variables. Like this: {$val[name][$i]} -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List (http://www.php.net/) To

[PHP] why won't mssql work?

2004-03-29 Thread Edward Peloke
I know I am missing a stupid step but I have php_mssql.dll in my php extensions folder and have uncommented the line in the ini file yet it still doesn't recognize the functions. Do I need to do something else? Thanks, Eddie WARNING: The information contained in this message and any

Re: [PHP] find string position using reg exp

2004-03-29 Thread Ben Ramsey
RD Why use a regular expression? RD strpos() will do this just fine. strpos() will do it just fine, but if you need to use a regular expression to match a specific pattern and return the location in the string, preg_match() will also do this when you use the flag PREG_OFFSET_CAPTURE. --

[PHP] Re: why won't mssql work?

2004-03-29 Thread Ben Ramsey
EP I know I am missing a stupid step but I have php_mssql.dll in my EP php extensions folder and have uncommented the line in the ini EP file yet it still doesn't recognize the functions. Do I need to EP do something else? First of all, the obvious: make sure extension_dir in php.ini is set to

[PHP] transactions

2004-03-29 Thread Matthew Oatham
Hi, Is there an elegant way to recover from DB errors in MySQL using PHP, i.e. transactions and rolling back - basically I have an insert statement then an update statement. if the insert succeeds the update is run but if the update fails I want to undo the insert! Any suggestions, I guess I

Re: [PHP] transactions

2004-03-29 Thread Adam Voigt
I believe you can use transactions with InnoDB tables on MySQL, if this is the case, a simple BEGIN; to begin your transaction, and a COMMIT; to save all the changes, plus a ROLLBACK; to undo your changes, should be sufficient. On Mon, 2004-03-29 at 13:12, Matthew Oatham wrote: Hi, Is there

RE: [PHP] transactions

2004-03-29 Thread Pablo Gosse
Matthew Oatham wrote: Hi, Is there an elegant way to recover from DB errors in MySQL using PHP, i.e. transactions and rolling back - basically I have an insert statement then an update statement. if the insert succeeds the update is run but if the update fails I want to undo the insert!

Re: [PHP] transactions

2004-03-29 Thread John Holmes
Matthew Oatham wrote: Is there an elegant way to recover from DB errors in MySQL using PHP, i.e. transactions and rolling back - basically I have an insert statement then an update statement. if the insert succeeds the update is run but if the update fails I want to undo the insert! Use

[PHP] session languages array.

2004-03-29 Thread Elliot J. Balanza
I have a very strange problem, and i don't seem to figure out what is wrong. I start a session, and register $_Session['Idiomas']; then i go to another page and select require(/lanugages/.$_Session['Idiomas']./main.php) to require the text array to display text. Now here comes the weird

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Edward Peloke
First of all, the obvious: make sure extension_dir in php.ini is set to the correct extensions directory. Yep you need to place ntwdblib.dll in the WINDOWS/System32 Yep And as far as IIS, I am running apache. Thanks, Eddie -Original Message- From: Ben Ramsey [mailto:[EMAIL

[PHP] Re: question about M. Lemos's HTML forms generation and validation

2004-03-29 Thread Gimic
It's a simple algorythem, use a loop to enter the names from the database into an array, and compare each to the value in the array. or some hybred thereof. ?php function Compare($UserInput) { $db=mysql_connect($ServerAddress,$LoginName,$LoginPassword)); mysql_select_db($userDB,$db); $result =

Re: [PHP] Re: why won't mssql work?

2004-03-29 Thread Ben Ramsey
EP And as far as IIS, I am running apache. Heh. Well, then I guess I can't help you there, as I've never run Apache on a Windows machine. :-) Sorry. I hope someone else can help. -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Adam Voigt
Your php.ini is in-fact in your WINNT directory correct? On Mon, 2004-03-29 at 13:37, Edward Peloke wrote: First of all, the obvious: make sure extension_dir in php.ini is set to the correct extensions directory. Yep you need to place ntwdblib.dll in the WINDOWS/System32 Yep And as

Re: [PHP] Re: why won't mssql work?

2004-03-29 Thread Frank M. Kromann
If you are using the Apache module you need to restart Apache each time you make changes to php.ini. - Frank EP And as far as IIS, I am running apache. Heh. Well, then I guess I can't help you there, as I've never run Apache on a Windows machine. :-) Sorry. I hope someone else can

Re: [PHP] transactions

2004-03-29 Thread Justin Patrin
Though I know there are many people out there who cringe at the thought of using DB abstraction layers, I really like ADOdb and it has very nice transaction support built in (as long as the underlying database supports it, obviously). I don't know why people hate them sothey make life so

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Edward Peloke
Yes, my php.ini is in my WINNT directory. I am running php 4.3.4 and originally got an error that it couldn't find php5dts.dll in my classpath, then it would complain that it couldn't load the php_mssql.dll. I downloaded php5dts.dll and put it in my path so now I get this error: [Mon Mar 29

[PHP] list to array help

2004-03-29 Thread Benjamin Jeeves
Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need help on this getting this list into array format of

[PHP] Re: data by halves

2004-03-29 Thread Elliot J. Balanza
1. Is the length of the field to receive the data long enough? perhaps the field itself is short? 2. do you have like a time limit? some servers just stop performing after 30 seconds or 90 seconds, (specially IIS) but it will warn you that the proccess was too long. Vamp German [EMAIL PROTECTED]

[PHP] Re: session languages array.

2004-03-29 Thread Elliot J. Balanza
Do I need to unset() the variable each time i use it? I don't see anyone using it like that. vamp Elliot J. Balanza [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] I have a very strange problem, and i don't seem to figure out what is wrong. I start a session, and register

[PHP] Re: list to array help

2004-03-29 Thread Justin Patrin
Benjamin Jeeves wrote: Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need help on this getting this list into array

Re: [PHP] Re: why won't mssql work?

2004-03-29 Thread Lester Caine
Edward Peloke wrote: Yes, my php.ini is in my WINNT directory. I am running php 4.3.4 and originally got an error that it couldn't find php5dts.dll in my classpath, then it would complain that it couldn't load the php_mssql.dll. I downloaded php5dts.dll and put it in my path so now I get this

[PHP] postmaster@btconnect?? failure??

2004-03-29 Thread Andy B
im lost i keep getting messages from a [EMAIL PROTECTED] saying none of my messages can be sent because they time out?? but its usually 12 hours or more after my post was already sent to the list that i get those...im confused..anybody know whats going on??

[PHP] STOP to send me mails !!!! Re: [PHP] Re: list to array help

2004-03-29 Thread Wabyan
I do not want to receive all these email Please STOP Do not use the global list for your discussion ! --- Justin Patrin [EMAIL PROTECTED] a écrit : Benjamin Jeeves wrote: Hi all, I have a search where I search inside a document and count how many

[PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help

2004-03-29 Thread Ben Ramsey
W I do not want to receive all these email W W Please STOP W WDo not use the global list for your discussion What else is the global list for, then? Perhaps you need to sign up for the digested version or browse the mailing list as a newsgroup instead of selecting to

Re: [PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help

2004-03-29 Thread webmaster
exactly dont want letters dont join a list! - Original Message - From: Ben Ramsey [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 29, 2004 11:23 AM Subject: [PHP] Re: STOP to send me mails Re: [PHP] Re: list to array help W I do not want to receive

[PHP] DB Abstraction Layers

2004-03-29 Thread Pablo Gosse
Hi folks. Given the last response by Justin to my comment about some people's dislike for DB abstraction layers I'm electing to throw this out into the general discussion as a new topic. I have mixed feelings about abstraction layers. At times I love them (mostly) and at times I hate them. I

[PHP] Re: STOP to send me mails !!!! Re: [PHP] Re: list to array help

2004-03-29 Thread Justin Patrin
Wabyan wrote: I do not want to receive all these email Please STOP Do not use the global list for your discussion ! These lists are for discussion, not just for asking for help. The point of sending answers to the list is to let EVERYONE know the answer.

[PHP] TUX web server replacement

2004-03-29 Thread William Lovaton
Have been a very very long time since my last post. I have a big enterprise web application running in my company with a lot of traffic, I'm using Apache 1.3, PHP 4.3 and Oracle 8i. The production server was a RedHat 9 box and I configured it to use tux, the kernel web server available in Linux

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Edward Peloke
I actually have the php4ts.dll and php_mssql.dll that came with 4.3.5 yet it still throws the error about php5ts.dll. I might wipe it out and try installing again. Thanks, Eddie -Original Message- From: Lester Caine [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 2:19 PM To:

RE: [PHP] Re: why won't mssql work?

2004-03-29 Thread Edward Peloke
Upgraded to 4.3.5 and all is working...thanks! Eddie -Original Message- From: Lester Caine [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 2:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: why won't mssql work? Edward Peloke wrote: Yes, my php.ini is in my WINNT directory.

[PHP] Re: DB Abstraction Layers

2004-03-29 Thread Justin Patrin
Pablo Gosse wrote: Hi folks. Given the last response by Justin to my comment about some people's dislike for DB abstraction layers I'm electing to throw this out into the general discussion as a new topic. I have mixed feelings about abstraction layers. At times I love them (mostly) and at

[PHP] Re: Problem accessing an array inside if/switch

2004-03-29 Thread Ben Ramsey
Haven't heard any response on this yet, but we have been playing around with it. Here's our latest development: code $myBlock = $block_data[0][ranges]; if ($myBlock == 6) { echo 6 passes; } if ($myBlock != 6) { echo not 6 passes; } /code Guest what? Both statements pass. It should be

Re: [PHP] TUX web server replacement

2004-03-29 Thread William Lovaton
Hi Alister, This is exactly what I am trying to do now... but I'm afraid that I am a little unexperienced with squid. I managed to make it run in my home in httpd-accelerator mode but I still have some problems. Could you give me your squid configuration file?? or at least tell me how to set

[PHP] Re: session languages array.

2004-03-29 Thread Rafael Cotta
Elliot J. Balanza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a very strange problem, and i don't seem to figure out what is wrong. I start a session, and register $_Session['Idiomas']; then i go to another page and select

[PHP] Convert Characters

2004-03-29 Thread Reuben Sant
Hi, Is there a way to convert any character to it's HTML #xxx; equivalent in PHP? For example #65; is the letter A where the number 65 represents it's ASCII code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert Characters

2004-03-29 Thread Roger Spears
Reuben Sant wrote: Hi, Is there a way to convert any character to it's HTML #xxx; equivalent in PHP? For example #65; is the letter A where the number 65 represents it's ASCII code. This may help. It's a function from Tom Rogers, or was it Tim Rogers, I can't remember. function

[PHP] Re: list to array help

2004-03-29 Thread Benjamin Jeeves
Justin Patrin wrote: Benjamin Jeeves wrote: Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need help on this

[PHP] displaying directory last modify

2004-03-29 Thread frank
Hello there, I have been trying to mke a simple script to basically out the last date the dir was modified. Like when you do ls -l next to the folder you can see the date of last modfied. cheers. || -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] How to send SMS

2004-03-29 Thread Mark
Though only a US solution right now, try sending the SMS to phone#@teleflip.com It's similar to ICQ's solution, but seems to be more universal (no ICQ support needed) --- jon roig [EMAIL PROTECTED] wrote: Yeah... It depends entirely on your provider. Check this out, though -- you don't

RE: [PHP] Accessing HTTP Content

2004-03-29 Thread Quentin Bennett
Thanks, I had a look at Snoopy, and it looks goodbut I don't think it can do what I want. Snoopy Fetches data from a known URL - what I want to do is read the HTTP content no matter where it is sent from. Simple, really - $GLOBALS['HTTP_RAW_POST_DATA']. Found this by looking at SOAP server

Re: [PHP] displaying directory last modify

2004-03-29 Thread John W. Holmes
From: frank [EMAIL PROTECTED] Hello there, I have been trying to mke a simple script to basically out the last date the dir was modified. Like when you do ls -l next to the folder you can see the date of last modfied. http://us2.php.net/filemtime says $getLastModDir =

Re: Re[2]: [PHP] JavaScript Enabled?

2004-03-29 Thread Mark
--- Richard Davey [EMAIL PROTECTED] wrote: snip Hmmm.. not a bad idea. I was thinking of some kind of intermediary script, where it can run a check to see if JS is there or not (via whatever method possible) and then redirect accordingly. I'll have an experiment and (further!) searches to

[PHP] Re: session languages array.

2004-03-29 Thread Elliot J. Balanza
Well now I'm more puzzled, cause it seems that i cant find set_globals. All I found is register globals, and i remember that was different, but in any case its on. let me send you the code: this works -- code -- ? session_start(); ? ?php if(!(session_is_registered(Nick)))

[PHP] Re: list to array help

2004-03-29 Thread Justin Patrin
Benjamin Jeeves wrote: Justin Patrin wrote: Benjamin Jeeves wrote: Hi all, I have a search where I search inside a document and count how many times I found a given word. My problem is that I have a list e.g. $list_path this is a string of where the file is location on the server what I need

[PHP] Re: Convert Characters

2004-03-29 Thread Justin Patrin
Reuben Sant wrote: Hi, Is there a way to convert any character to it's HTML #xxx; equivalent in PHP? For example #65; is the letter A where the number 65 represents it's ASCII code. If that's true for all chars, you could use: $html = '#'.ord('A').';'; Or you could just do it for a-z and A-Z.

[PHP] What's the use in OOP?

2004-03-29 Thread Stephen Craton
I've been reading up on object oriented programming in PHP for a while now and I just don't get what's the use in using it. It supposedly makes it faster, but I don't really see how in any of my scripts. What's the advantage of OOP anyway, and why are so many people using it now? What does it have

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Robert Cummings
On Mon, 2004-03-29 at 16:43, Stephen Craton wrote: I've been reading up on object oriented programming in PHP for a while now and I just don't get what's the use in using it. It supposedly makes it faster, but I don't really see how in any of my scripts. What's the advantage of OOP anyway, and

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Jason Giangrande
Stephen Craton wrote: I've been reading up on object oriented programming in PHP for a while now and I just don't get what's the use in using it. It supposedly makes it faster, but I don't really see how in any of my scripts. What's the advantage of OOP anyway, and why are so many people using it

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Chris Shiflett
--- Stephen Craton [EMAIL PROTECTED] wrote: I've been reading up on object oriented programming in PHP for a while now and I just don't get what's the use in using it. It supposedly makes it faster, but I don't really see how in any of my scripts. Makes it faster in what way? I'm curious to

[PHP] Namespaces in PHP

2004-03-29 Thread Justin Palmer
Hi, I did not think that PHP supported namespaces? I would love to see it if it is possible. What sparked my interest was this post: http://news.php.net/article.php?group=php.generalarticle=181728 quote There are lots of other things, of course. One method of learning about this would be to

Re: [PHP] Namespaces in PHP

2004-03-29 Thread Chris Shiflett
--- Justin Palmer [EMAIL PROTECTED] wrote: I did not think that PHP supported namespaces? It doesn't. quote There are lots of other things, of course. One method of learning about this would be to take every OO term (encapsulation, namespacing, etc.) and find a really good explanation of

Re: [PHP] Namespaces in PHP

2004-03-29 Thread Robert Cummings
On Mon, 2004-03-29 at 17:01, Justin Palmer wrote: Hi, I did not think that PHP supported namespaces? I would love to see it if it is possible. What sparked my interest was this post: http://news.php.net/article.php?group=php.generalarticle=181728 quote There are lots of other things,

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Richard Davey
Hello Stephen, Monday, March 29, 2004, 10:43:22 PM, you wrote: SC I've been reading up on object oriented programming in PHP for a while now SC and I just don't get what's the use in using it. It supposedly makes it SC faster, but I don't really see how in any of my scripts. What's the SC

Re: [PHP] What's the use in OOP?

2004-03-29 Thread William Lovaton
I agree, but the reuse of code is also posible in an structured oriented fashion and it is not inherent in OOP. Simply saying that you are going to use OOP doesn't means that the code reuse is granted, like in structured oriented programming you have to think very carefully how to design your

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Stephen Craton
Thanks for all the replies. I've mostly been reading over at PHP-Builder. I read one of the articles by Luis Argerich, but since I was only skimming through the article, I may have missed something and read it wrong. I used OO in my chat script (can be found at http://php.melchior.us) but it

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Chris de Vidal
Stephen Craton said: I've been reading up on object oriented programming in PHP for a while now and I just don't get what's the use in using it. It supposedly makes it faster, but I don't really see how in any of my scripts. What's the advantage of OOP anyway, and why are so many people using

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Justin Palmer
Rene, no need to email me personally, please keep it on list. If you have worked with Java then you should know the true reason for using namespaces. See my previous email to this topic for my explanation. Namespace collision is a large cause for software blowing up when multiple programmers

[PHP] Re: Namespaces in PHP

2004-03-29 Thread Justin Patrin
Justin Palmer wrote: Hi, I did not think that PHP supported namespaces? I would love to see it if it is possible. What sparked my interest was this post: http://news.php.net/article.php?group=php.generalarticle=181728 quote There are lots of other things, of course. One method of learning

Re: [PHP] Namespaces in PHP

2004-03-29 Thread Justin Patrin
Chris Shiflett wrote: --- Justin Palmer [EMAIL PROTECTED] wrote: I did not think that PHP supported namespaces? It doesn't. quote There are lots of other things, of course. One method of learning about this would be to take every OO term (encapsulation, namespacing, etc.) and find a really

[PHP] Re: question about M. Lemos's HTML forms generation and validation

2004-03-29 Thread Gimic
I just looked over the code I recently submitted.. the last if statement needs a semi-colon at the end of the echo(The name don't exist) part... sory if you copy/pasted and got an error.. ;) Gimic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's a simple algorythem, use a loop to

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Justin Palmer
Robert, please keep it on list, no need to email me personally. You would most likely not be both using a Session class but more over what if we made to different classes that performed quite different tasks, but for some reason or another we called named them the same. That is the true reason

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Chris Shiflett
--- Justin Palmer [EMAIL PROTECTED] wrote: Your statement of: PHP doesn't support namespaces; however, functions defined within a class definition are essentially conform to namespace ideology since the function would need to be defined twice in the same class to cause an collision.

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Kelly Hallman
Mar 29 at 5:25pm, Stephen Craton wrote: I used OO in my chat script (can be found at http://php.melchior.us) but it really seemed like a waste since it was such a small basic script. I never really find myself re-needing code except for database connectivity and calling the database and stuff

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Chris Shiflett
--- Kelly Hallman [EMAIL PROTECTED] wrote: I think there is a bit of what I consider an efficiency myth in regards to OOP in PHP. Most agree that the OO implementation in PHP is not robust. It's much better in PHP 5, although a lack of robustness is not how I would personally describe PHP 4's

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Justin Palmer
Hi, I just don't see it as a namespace ideology, it is just how objects work. I know that he knows that it is encapsulation. My point being that it should not really be called that because it has nothing really to do with namespaces. Which is what my original post/question was about. I also

  1   2   >