Re[2]: [PHP] Bind IP with fsockopen

2007-04-07 Thread Tom Rogers
Hi, TR> You will have to do it using the socket api something like this but TR> with error checking: TR> $sourceip = '192.168.1.1'; // ip you want to bind to TR> $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); TR> socket_bind($sock, $sourceip); TR> socket_connect($sock, 'example.com', 2043

[PHP] Re: form validation

2007-04-07 Thread Haydar TUNA
Hello, You can use javascript and Ajax together. If you use the ajax, you can validate your data with PHP code. Please visit the web site below. You will find information about PHP and Ajax::) http://www.w3schools.com/php/default.asp -- Republic Of Turkey - Ministry of National Edu

[PHP] Re: read only texbox to html with php

2007-04-07 Thread Haydar TUNA
Hello, If you use read only textbox in HTML, you can use like a following HTML code.:) -- Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Ross"" <[EMAIL PROTECTED]>, haber iletisinde þunlarý yazdý:[

[PHP] Re: Simple question on simplexml

2007-04-07 Thread Haydar TUNA
Hello, You can use following example:) body[0]->addChild("book", "Atatürk The Rebirth Of A Nation"); ?> Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Timothy Murphy" <[EMAIL PROTECTED]>, haber iletisin

Re: [PHP] Design Dilemma - Database Data Abstraction

2007-04-07 Thread Paul Novitski
At 4/7/2007 09:49 AM, Martin Alterisio wrote: The solution I presented is to access, and act upon, a database as if they were PHP arrays, meaning that a table is presented as an array of records. This implies to me that you'll read a series of tables into arrays, modify the arrays, then update

Re: [PHP] Bind IP with fsockopen

2007-04-07 Thread Tom Rogers
Hi, Sunday, April 8, 2007, 6:51:46 AM, you wrote: cac> Hi is it possible to socket_bind with fsockopen? im using this with all my scripts... cac> $fs = fsockopen('example.com', 2043, $errno, $errstr, 60); cac> if (!$fs) { cac> fclose($fs); cac> and I need the remote conection to see me as one o

[PHP] xdebug with Quanta

2007-04-07 Thread vuthecuong
Does anyone use xdebug with QUanta? Could you give a tutorial to use it? Or give me a website link about this? Tnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Robert Cummings wrote: >Or... there's some strong arming happening to force the move. PHP4 >userbase greatly outnumbers the PHP5 userbase. I think the userbase >speaks louder than the support timeframe. > >Cheers, >Rob. > > Damien Seguy's latest stats showing the adoption rates of PHP5 show wha

[PHP] ribs (rsync) problem

2007-04-07 Thread Sebe
anyone here using the ribs php rsync script? i keep getting: rsync: link_stat "/home/site" failed: No such file or directory (2) does the directory structure need to match on both local/remote servers? example, i'm trying to back up /home/site to /home/backup not sure if the remote backup serv

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Myron Turner wrote: > Travis Doherty wrote: > >>> >> >> What about the argument that PHP4 is dead. It's done. It's over. >> There is no reason anyone should be using it, less perhaps a lack of >> time to tweak scripts for an upgrade from 4 to 5. Even if that is the >> case, get to work :p

Re: [PHP] Re: PHP4 vs PHP5

2007-04-07 Thread Robert Cummings
On Sat, 2007-04-07 at 21:15 -0300, Yves Arsenault wrote: > Although I rarely post here (mostly lurking)... > > I would think that the mere fact that support for PHP4 ends in 8 months > should be in and of itself a strong argument for the server admins. > > In my current position, I code and am re

Re: [PHP] Re: PHP4 vs PHP5

2007-04-07 Thread Yves Arsenault
Although I rarely post here (mostly lurking)... I would think that the mere fact that support for PHP4 ends in 8 months should be in and of itself a strong argument for the server admins. In my current position, I code and am responsible for a few different servers. It's certainly a strong argu

Re: [PHP] MD5 & bot Question

2007-04-07 Thread Jim Lucas
Stut wrote: tedd wrote: Okay, I think I figured out a fix -- try it again. :-) http://sperling.com/a/arrows/ A little knowledge is a dangerous thing. Give up now, while you're still sane. Think about what you're trying to do. You're trying to do something different on the client every time

Re: [PHP] MD5 & bot Question

2007-04-07 Thread Stut
tedd wrote: Okay, I think I figured out a fix -- try it again. :-) http://sperling.com/a/arrows/ A little knowledge is a dangerous thing. Give up now, while you're still sane. Think about what you're trying to do. You're trying to do something different on the client every time, but without

Re: [PHP] MD5 & bot Question

2007-04-07 Thread tedd
Well, I cracked it for you :) http://86.86.80.41/dev/debug/tedd.php At the bottom it shows you the MD5 code of your arrow image, and it shows you which way it points to :) If you're interested in the code: http://86.86.80.41/dev/debug/tedd.txt Tijnema Tijnema: Okay, I think I figured out a

Re: [PHP] Bind IP with fsockopen

2007-04-07 Thread chris
I have a dedicated server with a number of IP addresses. When you make a connection through fsockopen it connects using the servers main IP address. What I want to do is specify which of my IP addresses fsockopen uses. Thanks - Original Message - From: "Tijnema !" <[EMAIL PROTECTED]>

Re: [PHP] MD5 & bot Question

2007-04-07 Thread tedd
At 10:33 PM +0200 4/7/07, Tijnema ! wrote: On 4/7/07, tedd <[EMAIL PROTECTED]> wrote: At 11:56 PM +0100 4/6/07, Tijnema ! wrote: On 4/6/07, tedd <[EMAIL PROTECTED]> wrote: At 2:55 PM +0100 4/6/07, Tijnema ! wrote: I know, but animated gifs are still quite easy to read with a bot. Really? W

[PHP] Re: spl DirectoryIterator

2007-04-07 Thread itoctopus
After some testing and reading, I think this function is still experimental. Anyone else has some thoughts on this? -- itoctopus - http://www.itoctopus.com "Matthew Dellar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a problem, > > I need to turn an iterator into an array,

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Myron Turner
Travis Doherty wrote: What about the argument that PHP4 is dead. It's done. It's over. There is no reason anyone should be using it, less perhaps a lack of time to tweak scripts for an upgrade from 4 to 5. Even if that is the case, get to work :p "Support for PHP 4 will be dropped at th

Re: [PHP] Bind IP with fsockopen

2007-04-07 Thread Tijnema !
On 4/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi is it possible to socket_bind with fsockopen? im using this with all my scripts... $fs = fsockopen('example.com', 2043, $errno, $errstr, 60); if (!$fs) { fclose($fs); and I need the remote conection to see me as one of my other IP's I

[PHP] spl DirectoryIterator

2007-04-07 Thread Matthew Dellar
I have a problem, I need to turn an iterator into an array, but when I do, some methods I need to use stop working. Take a look at the following example: $dir = 'c:/'; $files = new DirectoryIterator($dir); //$files = iterator_to_array($files); foreach ($files as $file) { echo "{$file->get

[PHP] Bind IP with fsockopen

2007-04-07 Thread chris
Hi is it possible to socket_bind with fsockopen? im using this with all my scripts... $fs = fsockopen('example.com', 2043, $errno, $errstr, 60); if (!$fs) { fclose($fs); and I need the remote conection to see me as one of my other IP's Ive read through socket_bind http://uk.php.net/manual/en/fu

Re: [PHP] MD5 & bot Question

2007-04-07 Thread Tijnema !
On 4/7/07, tedd <[EMAIL PROTECTED]> wrote: At 11:56 PM +0100 4/6/07, Tijnema ! wrote: >On 4/6/07, tedd <[EMAIL PROTECTED]> wrote: >>At 2:55 PM +0100 4/6/07, Tijnema ! wrote: >>>I know, but animated gifs are still quite easy to read with a bot. >> >>Really? >> >>What if I a created a box surrounde

Re: [PHP] Re: link counting

2007-04-07 Thread Sebe
Tijnema ! wrote: On 4/7/07, itoctopus <[EMAIL PROTECTED]> wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone ext

Re: [PHP] Re: link counting

2007-04-07 Thread Tijnema !
On 4/7/07, itoctopus <[EMAIL PROTECTED]> wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone externally. Below is th

[PHP] Re: PHP has encountered an Access Violation at 01F13157?!?!?!?

2007-04-07 Thread Joker7
In news: [EMAIL PROTECTED], Afan Pasalic wrote on : >> hi, >> I just installed php 5.2.1-win32-installer on win box (XP). use IIS. >> created index.html file and localhost/index.html is ok. >> created phpinfo.php (with only phpinfo()) and was ok. >> then installed Zend 5.5.0 (try) and suddenly, IE

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Robert Cummings
On Sat, 2007-04-07 at 10:26 -0400, tedd wrote: > At 9:11 PM -0400 4/6/07, Robert Cummings wrote: > >On Fri, 2007-04-06 at 20:44 -0400, Mike Shanley wrote: > > > With POST, everything stays hidden, mostly untamperable, and > > > >Bullshit. It is VERY easy to tamper with post data. > > Please provi

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Edward Vermillion
On Apr 7, 2007, at 9:26 AM, tedd wrote: At 9:11 PM -0400 4/6/07, Robert Cummings wrote: On Fri, 2007-04-06 at 20:44 -0400, Mike Shanley wrote: > With POST, everything stays hidden, mostly untamperable, and Bullshit. It is VERY easy to tamper with post data. Please provide an example. cu

Re: [PHP] PHP4 vs PHP5

2007-04-07 Thread Travis Doherty
Fernando Cosso wrote: > Hi > I know this topic has to be discussed several times but I have a > situation I > need some advices. > > I am working in a small company. The company does everything you need. > Computer service, sell computers, install servers, web page, etc. I am in > the web departme

[PHP] Design Dilemma - Database Data Abstraction

2007-04-07 Thread Martin Alterisio
I have a dilemma on a design where I humbly ask your help. I'm working on the model part of a web application (not to be understood in the "web2.0" way, but in a more general way, where anything mounted on HTTP is a web application) done in PHP5 following the MVC design pattern. But the strong poi

Re: [PHP] Idea/Suggestion for PHP App

2007-04-07 Thread Afan Pasalic
looks like I didn't get the question. I thought he's asking how to start a project. to start to learn php of course you don't need paper and pencil. books, online tutorials, php.net and time. though, for a new project (if you never did similar before and if you don't already have the code you ca

[PHP] Help with table in database and login scripts.

2007-04-07 Thread Karl James
Team, I want to know if my table is setup correctly. I am creating a site where team owners control fantasy football teams. Imaginary teams. They can trade players, add and drop them as long as they are under the salary cap at all times. if not they are given a warning to make a different mov

[PHP] MD5 & bot Question

2007-04-07 Thread tedd
At 11:56 PM +0100 4/6/07, Tijnema ! wrote: On 4/6/07, tedd <[EMAIL PROTECTED]> wrote: At 2:55 PM +0100 4/6/07, Tijnema ! wrote: I know, but animated gifs are still quite easy to read with a bot. Really? What if I a created a box surrounded by letters, like so: A B C D E F G H I However, wh

Re: [PHP] PHP has encountered an Access Violation at 01F13157?!?!?!?

2007-04-07 Thread Afan Pasalic
already did. though, my "expertize" is telling me: install php4 instead php5 :D Tijnema ! wrote: On 4/7/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 4/7/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi, > I just installed php 5.2.1-win32-installer on win box (XP). use IIS. > created index.html

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Paul Novitski
At 4/7/2007 03:10 AM, Stut wrote: The difference between get and post is not what you *can* do, it's what you *should* do. Get, as the name implies, should be used when retrieving a page. The URL, including the query string, should contain info needed to retrieve the right page. No significan

Re: [PHP] PHP has encountered an Access Violation at 01F13157?!?!?!?

2007-04-07 Thread Afan Pasalic
use IIS. Tijnema ! wrote: On 4/7/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: hi, I just installed php 5.2.1-win32-installer on win box (XP). use IIS. created index.html file and localhost/index.html is ok. created phpinfo.php (with only phpinfo()) and was ok. then installed Zend 5.5.0 (try) an

[PHP] Re: Submitting as POST. Why?

2007-04-07 Thread itoctopus
POST is mainly used to modify data, GET is mainly used to show data. -- itoctopus - http://www.itoctopus.com "barophobia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > My Peeps, > > I only know of one reason to submit a form as POST and that is because > you can submit more data in

[PHP] Re: link counting

2007-04-07 Thread itoctopus
Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. External is not a URL that will take someone externally. Below is the function is_url function is_url($url) { return p

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread tedd
At 9:11 PM -0400 4/6/07, Robert Cummings wrote: On Fri, 2007-04-06 at 20:44 -0400, Mike Shanley wrote: > With POST, everything stays hidden, mostly untamperable, and Bullshit. It is VERY easy to tamper with post data. Please provide an example. Cheers, tedd -- --- http://sperling.com h

[PHP] Re: PHP4 vs PHP5

2007-04-07 Thread itoctopus
In my opinion, it is very safe to go for PHP5 (it's been out for a long time now). Also, PHP5 has a lot of built-in functionality that you will definitely feel you're lacking in case you go for PHP4. And don't forget, PHP4 will be deprecated sooner or later (I'm sure the developers will not really

Re: [PHP] Need a working SOAP example using PHP SOAP

2007-04-07 Thread Jochem Maas
Daevid Vincent wrote: >> not very helpful, but an apt quote from 'the man': >> http://fplanque.net/Blog/devblog/2005/12/21/rasmus_i_don_t_like_soap > > Yeah, unfortunately, I *must* use SOAP. Not my choice, but politics and > company decree, blah blah... > >> b, you should catch exceptions > > T

Re: [PHP] PHP textbook suggestions?

2007-04-07 Thread Larry E. Ullman
I'd still like some actual recommendations for a good book for beginners. My "PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide" has already been mentioned by someone and gets good reviews. If you want something more basic, I wrote "PHP for the World Wide Web: Visual QuickStart G

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Robert Cummings
On Sat, 2007-04-07 at 13:59 +0100, Stut wrote: > Robert Cummings wrote: > > On Sat, 2007-04-07 at 11:10 +0100, Stut wrote: > >> These implied "rules" have existed since HTTP was invented, and when you > >> think about it they make a lot of sense. They also get emphasized by the > >> existance of

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Stut
Robert Cummings wrote: On Sat, 2007-04-07 at 11:10 +0100, Stut wrote: These implied "rules" have existed since HTTP was invented, and when you think about it they make a lot of sense. They also get emphasized by the existance of so-called web accelerators that simply pre-fetch URLs on the page

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Robert Cummings
On Sat, 2007-04-07 at 11:10 +0100, Stut wrote: > > These implied "rules" have existed since HTTP was invented, and when you > think about it they make a lot of sense. They also get emphasized by the > existance of so-called web accelerators that simply pre-fetch URLs on > the page the user is vi

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread JM Guillermin
Maybe this could help... GET http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3 POST http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5 URI http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1 jm - Original Message - From: "barophobia" <[EMAIL PROTECTED

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Børge Holen
On Saturday 07 April 2007 05:56, Paul Novitski wrote: > >barophobia wrote: > >>I only know of one reason to submit a form as POST and that is because > >>you can submit more data in one shot. > > At 4/6/2007 05:44 PM, Mike Shanley wrote: > >When you submit via GET, all the info shows up in the URL,

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Stut
barophobia wrote: I only know of one reason to submit a form as POST and that is because you can submit more data in one shot. What other reasons are there? The difference between get and post is not what you *can* do, it's what you *should* do. Get, as the name implies, should be used when

Re: [PHP] PHP has encountered an Access Violation at 01F13157?!?!?!?

2007-04-07 Thread Tijnema !
On 4/7/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 4/7/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi, > I just installed php 5.2.1-win32-installer on win box (XP). use IIS. > created index.html file and localhost/index.html is ok. > created phpinfo.php (with only phpinfo()) and was ok. > then

Re: [PHP] PHP has encountered an Access Violation at 01F13157?!?!?!?

2007-04-07 Thread Tijnema !
On 4/7/07, Afan Pasalic <[EMAIL PROTECTED]> wrote: hi, I just installed php 5.2.1-win32-installer on win box (XP). use IIS. created index.html file and localhost/index.html is ok. created phpinfo.php (with only phpinfo()) and was ok. then installed Zend 5.5.0 (try) and suddenly, IE is giving me b

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Tijnema !
On 4/7/07, Paul Novitski <[EMAIL PROTECTED]> wrote: >barophobia wrote: >>I only know of one reason to submit a form as POST and that is because >>you can submit more data in one shot. At 4/6/2007 05:44 PM, Mike Shanley wrote: >When you submit via GET, all the info shows up in the URL, so people