[PHP] non-blocking sockets + newbie compile question

2003-03-11 Thread Joshua Alexander
1) socket_set_blocking()... what the devil's up with this? *I* get socket_set_blocking(): supplied resource is not a valid stream resource, which is obviously a lie, since I can connect to the server program and socket_recv and socket_send both work. I'm using PHP 4.3.1 (cgi) 2) I figured I'd

RE: [PHP] Re: PHP & XML

2002-10-16 Thread Joshua Alexander
I still wouldn't use XML for this. I mean, all the articles are in the database, and I'm already using PHP to pull them out and format them into html, right? I can just as easily use PHP to put them into all those other formats. So again, why waste time with XML unless I need to feed these ar

RE: [PHP] Re: PHP & XML

2002-10-16 Thread Joshua Alexander
>To me this is a lot of work and processing for limited benefits, a simple db >abstraction layer provides you with a divide between you db queries and the >presentation of your site, what benefits do you see in doing this? I have to agree with Simon. I am at a loss when it comes to seeing any be

Re: [PHP] CC Processing Merchants

2002-10-09 Thread Joshua Alexander
We use an Authorize.net reseller, merchantexpress.com. While the sign up process can be a hassle, I'm pretty happy with Authorize.net. Since we use the ADC Direct method, we don't lose control at all. When the customer submits their credit card info, our PHP script uses Curl to securely reques

[PHP] Curl request works on command line but not in script

2002-08-27 Thread Joshua Alexander
Hi folks, I'm trying to send an XML request to a server to get its response back... I can get it to work on the command line (with passthru) but not with libcurl. I'm using libcurl 7.9.2 which may actually be different from the curl on the command line... the latter came with OS X, the former

Re: [PHP] shtml & php in the same file?

2002-07-09 Thread Joshua Alexander
There are people who don't use Apache??? ;) >ending in .php and add the same thing for .shtml. Then, both will be >parsed by PHP first. But then will it be parsed by SSI second, as we would like? Doesn't seem to... -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] shtml & php in the same file?

2002-07-09 Thread Joshua Alexander
I'm working on this site that is all shtml files... in order to add some dynamic content, it just includes php scripts in different places. However, sessions don't work unless you start it before outputting anything to the server and that's what's needed now... I don't want to change all the l

Re: [PHP] Editing Word Documents

2002-07-08 Thread Joshua Alexander
It sounds like a job for WebDAV to me... -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Gradients in PHP & GD

2002-06-30 Thread Joshua Alexander
By this point, I am trying to speak generally. Not trying to pick on Bogdan specifically, since communication can always be improved. >Please tell me what would be a question which would leave all these >answer opportunities open while also being brief and obviously not >being hostile? Hmm...

Re: [PHP] Gradients in PHP & GD

2002-06-30 Thread Joshua Alexander
>Well, I'm deeply moved by your concern - I don't think I was either >hostile or impatient however - I was just stating the obvious and >implying a question (why isn't it straightforward). That was my problem with your post--why imply the question, and leave it open to interpretation? Why not

Re: [PHP] Re: Drop connection, keep running?

2002-06-28 Thread Joshua Alexander
This sounds like the right track to me... the script has to finish for the page to stop loading, yes? So exec("your_other_script &"); and be done with it, yes? >I have never heard of someone wanting to do this, but you might want >to look into methods of executing shell commands in the backgro

Re: [PHP] Web Printing

2002-06-28 Thread Joshua Alexander
>Don't tempt them, people _do_ come up with the most oblique of reasons why >their question is related to php. According to the Discordian Law of Fives, their questions share with PHP (and everything else) a relation to 5. So you always have that. -Josh -- PHP General Mailing List (http://www

Re: [PHP] Gradients in PHP & GD

2002-06-27 Thread Joshua Alexander
"It seems pretty straightforward to me." is more responsible than "It's pretty straightforward." Nice time to be changing your story ;) >Anyway, thank you for your input on this thread. THAT was really helpful. It didn't seem straightforward to the original writer, or else why the question...

Re: [PHP] OSX + Apache + PHP + MySQL

2002-06-21 Thread Joshua Alexander
You don't need OS X server. OS X includes Apache and Perl.. you can get MySQL and PHP4 from http://www.entropy.ch -Josh At 6:06 PM +1000 6/21/02, Justin French wrote: >Do I need OSX SERVER to run everything I'd need for a development >environment, or will the base version of OSX have the capabi

Re: [PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
Opening the file in vi shows that BBEdit is, for some reason, using \xca where the spaces should be. Off to BareBones.com I go... >Well, 312 is not a space. Please use a text editor that knows what a >space is. The other lines look fine, but your $test<312>=<312> stuff >there is bogus. > >-Ras

Re: [PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
Thanks, I didn't know about od 000< ? p h p \n \n $ t e s t 312 = 312 " 020j u s t a b o u t a n y t h 040i n g " ; \n \n e c h o " t h i 060s w a s j u s

[PHP] what kind of weird problem is this?

2002-06-18 Thread Joshua Alexander
I just installed the php 4.2.1 from entropy.ch and when running this script: I get this error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /Library/WebServer/Documents/west.php on line 3 Anyone know what *that* is about? -Josh