[PHP] Re: Code generators

2005-11-23 Thread Thiago Silva
Danny wrote: > Hi there, > > There´s a lot of manufacturers, about PHP code generators. What do you > think about that? > > I mean, it seems like PHP Nuke fashion or other portal systems. Everybody > has its portal, but all web pages seems to be the same, because all are > under the same design.

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
I get string(1) "", should that be taken just the same as 0? In addition phpinfo() indicates php 5.0.4 - does the upgrade to .5 involve remove .4 first? btw, as I'm new to the mailing list thing, why do some names appear in quotes and others do not? Thanks, Matt "Curt Zirzow" <[EMAIL PROTE

Re: [PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 04:53:50PM -0800, bruce wrote: > hi... > > this might not be a php question but might still provide interest... > > I'm working on a project, and need to know if there's anyone who's a guru > with Web Server/Client interactions. Basically, I'm trying to get a much > better

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 06:48:50PM -0500, Matt Monaco wrote: > Thanks for your attention Curt, but unfortunatly that is not the issue. > Compatibility mode is not on. What does this say just before you do $link = new ...: var_dump(ini_get('zend.ze1_compatibility_mode')); If it says string(1) "

Re: [PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread David Tulloh
I find the LiveHTTPHeaders extension for firefox to be very good for this kind of thing. http://livehttpheaders.mozdev.org/ It gives you a realistic (as opposed to theoretical) view of exactly what is being sent between the browser and the server. Networking details that you listed like the m

[PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread bruce
hi... this might not be a php question but might still provide interest... I'm working on a project, and need to know if there's anyone who's a guru with Web Server/Client interactions. Basically, I'm trying to get a much better/deeper understanding of the HTTP protocols defining the information

[PHP] Re: NTLM, PHP and Apache

2005-11-23 Thread Manuel Lemos
Hello, on 11/23/2005 02:58 AM Joe Wollard said the following: I'm running a rogue (the company knows about it but doesn't support it) web server for my dept and I'd like to be able to authenticate users transparently. The company is currently doing this on their own supported Intranet servers vi

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Matt Monaco
Thanks for your attention Curt, but unfortunatly that is not the issue. Compatibility mode is not on. For documentation's sake, I think the problem is that there are other links in the code using the same credentials. When you declare a link resource to a database, PHP first searches to see if th

Re: [PHP] PHP and email

2005-11-23 Thread Manuel Lemos
Hello, on 11/24/2005 11:38 AM Angelo Zanetti said the following: Thanks to those who have replied so far, yes our main concern is the smtp server falling over or dying. So to come back to John Nichel's answer: John, have you done this personally and I assume the effects were good?? IE everyt

[PHP] readfile and get_file_contents don't work

2005-11-23 Thread Richard K . Miller
I compiled PHP from source on Fedora Core 4, but I must have left something out because readfile and get_file_contents aren't working. If I try to connect to a "http://"; address I get the error "failed to open stream: HTTP request failed". Any ideas why? Richard -- PHP General Mailing L

[PHP] Code generators

2005-11-23 Thread Danny
Hi there, There´s a lot of manufacturers, about PHP code generators. What do you think about that? I mean, it seems like PHP Nuke fashion or other portal systems. Everybody has its portal, but all web pages seems to be the same, because all are under the same design. I would like to gather opini

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
I added 2>&1 but still nothing... as a matter of fact it won't execute anything. I put echo exec('asdf'); and nothing happend either ( i should've echoed an error) However it'll execute some other commands echo exec('ls -lart'); will output correctly. Any ohter Idea? Henry

Re: [PHP] Re: PHP and email

2005-11-23 Thread Anas Mughal
I have implemeted a system that dispatches between 600 to 2000 emails every night. An email is sent for each recepient. My system is hosted on a shared Linus server. I have not heard any complaints from the hosting company so far. Here are my recommendations: - Have a cron job that kicks off your

Re: [PHP] Re: Can't execute external program

2005-11-23 Thread comex
> Hi > Still desperate Try adding 2>&1 to the command line; maybe that will show an error. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
I will start with removing obsolete references from my code. But if the problem persist, could you please try to find some time to look at the issue with me. Thank you for the support so far. I'll be back here in one or two days Have a nice evening! On 11/23/05, Jochem Maas <[EMAIL PROTECTED]> w

[PHP] Re: Can't execute external program

2005-11-23 Thread Henry Castillo
Hi Still desperate DOCUMENT_ROOT is /var/www/html Check all settings at http://provi.voicenetworx.net:8080/t.php >From the command line it runs perfectly: [EMAIL PROTECTED] html]# /var/www/html/myprog -E 123456789098.dat sample1.txt sample1.new (no output, it just creates the file .new) Here is th

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jochem Maas
eric van blokland wrote: 1. Overengineering perhaps... 2. Reinventing the wheel? Probably, but I just like to know every single "bit" of the wheel I use hmm, did you build your own PC? and the CPU did you build that? do you know exactly how it works? me niether. 3. I do get confused every n

[PHP] preg_match_all for dummies

2005-11-23 Thread Kristen G. Thorson
I am a regex retard. I am trying to pull keywords out of this crazy bbcode-like file, but only for bbcode-like code NOT enclosed in HTML comments. I currently have managed to create this regex: '/(?)/U' Which matches [!keyword::crazy bbcode!] and not That's a step in the right directio

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
1. Overengineering perhaps... 2. Reinventing the wheel? Probably, but I just like to know every single "bit" of the wheel I use 3. I do get confused every now and then about PHP5 OO 4. References everywhere? Yes, the code was originally written for PHP4 I have already started removing them, but ser

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jochem Maas
eric van blokland wrote: LOL @ Jochem Well I sure can't argue with that! (serious) But with or without comments, the code is broken or breaks something. I've tracked down the weird bevahiour a little further. Now I would sure like, if one of you has about 30 minutes time to look at my prob

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-23 Thread Stephen Leaf
I'd say because it's been depreciated. LXXVI. Mimetype Functions Introduction Warning This extension has been deprecated as the PECL extension fileinfo provides the same functionality (and more) in a much cleaner way. On Wednesday 23 November 2005 12:45 pm, Ben wrote: > Curt Zirzow wrote: > >

[PHP] Re: Is there an alternative for $_FILES['guildimage']['type']

2005-11-23 Thread eric van blokland
You could use the exif_imagetype() function http://nl2.php.net/manual/en/function.exif-imagetype.php

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-23 Thread Ben
Curt Zirzow wrote: You should really consider using the fileinfo extension, or mabey even http://php.net/getimagesize. The ['type'] information can't be trusted to be what it says it is. Any reason why no one is suggesting the use of mime_content_type? http://ca.php.net/mime_content_type

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
LOL @ Jochem Well I sure can't argue with that! (serious) But with or without comments, the code is broken or breaks something. I've tracked down the weird bevahiour a little further. Now I would sure like, if one of you has about 30 minutes time to look at my problem with me, using VNC and Skype

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jochem Maas
Eric, everything you have written suggests to me that the problem is in your code (that may be being caused by changes to the engine, which have either removed an ability due to the fact that it was dangerous [e.g. reference issues], or abilities that have been changed because they were deemed wr

Re: [PHP] mysqli unclonable object

2005-11-23 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 01:13:22AM -0500, Matt Monaco wrote: > On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an > instance of a mysqli extension. > > class Data extends mysqli { > > > $link = new Data("localhost", "user", "password", "db"); > > This invokes the

Re: [PHP] syntax checking?

2005-11-23 Thread John Nichel
Jay Blanchard wrote: [snip] Just found out this web based PHP syntax checking tool http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/, it helped me find the problem. Pretty nice. [/snip] Nice find. Tried it and it works pretty well. I get this when I try to check a php scri

Re: [PHP] Re: PHP and email

2005-11-23 Thread John Nichel
Petr Smith wrote: Thanks to those who have replied so far, yes our main concern is the smtp server falling over or dying. So to come back to John Nichel's answer: John, have you done this personally and I assume the effects were good?? IE everything ran smoothly? I have done it just as J

Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-23 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 06:48:25AM +0100, twistednetadmin wrote: > This did the trick: > > elseif ($_FILES['guildimage']['type'] == "image/pjpeg" or "image/jpeg") Not for reasons you think. The (or "image/jpeg") is going to evaulate as TRUE, so your expression will always be true. For example:

[PHP] Re: PHP and email

2005-11-23 Thread Petr Smith
Thanks to those who have replied so far, yes our main concern is the smtp server falling over or dying. So to come back to John Nichel's answer: John, have you done this personally and I assume the effects were good?? IE everything ran smoothly? I have done it just as John has described ab

RE: [PHP] syntax checking?

2005-11-23 Thread Jay Blanchard
[snip] Just found out this web based PHP syntax checking tool http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/, it helped me find the problem. Pretty nice. [/snip] Nice find. Tried it and it works pretty well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] syntax checking?

2005-11-23 Thread Bing Du
Jay Blanchard wrote: [snip] Even with error_reporting set to E_ALL in php.ini, I still get 'Errors parsing file.php' using the php command with the -l option. Anyway to see more than that? [/snip] Here are some command line options http://us2.php.net/features.commandline You could run it i

RE: [PHP] syntax checking?

2005-11-23 Thread Jay Blanchard
[snip] Even with error_reporting set to E_ALL in php.ini, I still get 'Errors parsing file.php' using the php command with the -l option. Anyway to see more than that? [/snip] Here are some command line options http://us2.php.net/features.commandline You could run it in a browser to get line n

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jay Blanchard
[snip] 1. That's what I've warned about from the beginning, that outside the complete project environment the error probably wouldn't occur. 2. I understand this completely, naturally. I would like to thank everybody spending time in reading my posts, particulary you, Jay. But that's why I would l

Re: [PHP] syntax checking?

2005-11-23 Thread Bing Du
Bing Du wrote: Jay Blanchard wrote: [snip] How should PHP syntax be checked before execution? Anything similar to what option -c does in Perl? % perl -c test.pl [/snip] from the command line /usr/local/bin/php -i myScript.php [/snip] Ooops, sorry, should be an ell "l" /usr/local/bin/ph

Re: [PHP] PHP and email

2005-11-23 Thread John Nichel
Angelo Zanetti wrote: John Nichel wrote: Angelo Zanetti wrote: Hi I have a dedicated server in the states. I need to send about 8000 emails (once off). There pretty small +- 5KB. so I want to write a php script and run it from the command line in the background. I was thinking of sendi

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
1. That's what I've warned about from the beginning, that outside the complete project environment the error probably wouldn't occur. 2. I understand this completely, naturally. I would like to thank everybody spending time in reading my posts, particulary you, Jay. But that's why I would like to g

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jay Blanchard
[snip] Example is still quite large, all database functionality and other arbitrary code has been stripped. Over 50.000 lines of code have been reduced to a few hundred. Example can be downloaded here: http://213.10.83.232/example.tar Explanation of example: - When you load index.php, the involv

RE: [PHP] PHP and email

2005-11-23 Thread Jim Moseby
> > John Nichel wrote: > > Angelo Zanetti wrote: > > > >> Hi > >> > >> I have a dedicated server in the states. > >> > >> I need to send about 8000 emails (once off). There pretty > small +- 5KB. > >> > >> > >> so I want to write a php script and run it from the > command line in > >> the back

Re: [PHP] PHP and email

2005-11-23 Thread Angelo Zanetti
John Nichel wrote: Angelo Zanetti wrote: Hi I have a dedicated server in the states. I need to send about 8000 emails (once off). There pretty small +- 5KB. so I want to write a php script and run it from the command line in the background. I was thinking of sending 50 emails then waitin

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
Example is still quite large, all database functionality and other arbitrary code has been stripped. Over 50.000 lines of code have been reduced to a few hundred. Example can be downloaded here: http://213.10.83.232/example.tar Explanation of example: - When you load index.php, the involved obje

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jay Blanchard
[snip] I've got some example code on what I'm doing, however, as I expected, the error is gone! All involved objects were taken from the project, but not related code has been stripped-off. (Which means that some of that "at code level not related code" is in fact "related at compiler level". I s

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
I've got some example code on what I'm doing, however, as I expected, the error is gone! All involved objects were taken from the project, but not related code has been stripped-off. (Which means that some of that "at code level not related code" is in fact "related at compiler level". I still sus

Re: [PHP] PHP and email

2005-11-23 Thread John Nichel
Angelo Zanetti wrote: Hi I have a dedicated server in the states. I need to send about 8000 emails (once off). There pretty small +- 5KB. so I want to write a php script and run it from the command line in the background. I was thinking of sending 50 emails then waiting 90 seconds then send

Re: [PHP] PHP and email

2005-11-23 Thread Rory Browne
On 11/23/05, David Grant <[EMAIL PROTECTED]> wrote: > Hi Angelo, > > Why not send them all in one go? If you want to reduce server load, you > should perhaps adjust the 'nice'ness of the script. Because niceness would only affect the script itself and not any smtp servers it comes across along th

Re: [PHP] Autodeleting news when it has become yesterdays news

2005-11-23 Thread David Grant
twistednetadmin wrote: > Just at the beginning of the page with the news is my thought. So that it > checks for the eventdate and erases the overdued ones before it collects the > news. If you wanted to do that, I'd recommend adding some sort of probability factor into it, so not all scripts have

Re: [PHP] Accessing Arrays in HTML

2005-11-23 Thread Bernhard Janetzki
On Wednesday 23 November 2005 13:07, Shaun wrote: > Hi, > > I am trying to create a form on my page. The idea is that for each project > people can select whether they are allocated for scheduling, non_scheduling > or both. Here is an example of my form: > [...] > > However I can't access the 'Sche

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
-- Forwarded message -- From: eric van blokland <[EMAIL PROTECTED]> Date: Nov 23, 2005 2:44 PM Subject: Re: [PHP] Assistance debugging php 5.x.x To: Jay Blanchard <[EMAIL PROTECTED]> On 11/23/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > I understand your point, but I

Re: [PHP] Autodeleting news when it has become yesterdays news

2005-11-23 Thread Matt Stone
- Original Message - From: "twistednetadmin" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 23, 2005 7:02 AM Subject: [PHP] Autodeleting news when it has become yesterdays news >I have a news-script on a webpage. Or an eventscript you might call it. >This lists up events thats gonna

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jay Blanchard
[snip] Object A has Object B, while Object B has a "parent" attribute which is referenced back to its parent: Object A Cross-referenced: Object A has a child Object X, Object B also has a child, it's a reference to the very same Object X The dizzy making thing here? Object B is also a child of O

RE: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread Jay Blanchard
[snip] I understand your point, but I can't offer you the project as it's company property. Again, I will try to make a reproduce/example script. Meanwhile, try to believe my assumption that the PHP compiler is broken because: [/snip] Have you thought about sending your description of the problem

Re: [PHP] Assistance debugging php 5.x.x

2005-11-23 Thread eric van blokland
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message * news:<[EMAIL PROTECTED] >... > On Tue, Nov 22, 2005 at 07:41:10PM +0100, Eric wrote: > > I would like to have some assistance in debugging php. It's about a > > bug in php not a script of mine. > > First off there is a big difference between

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread Yaswanth Narvaneni
Dirty Code if((ereg("Nav", getenv("HTTP_USER_AGENT"))) || (ereg("Gold", getenv("HTTP_USER_AGENT"))) || (ereg("X11", getenv("HTTP_USER_AGENT"))) || (ereg("Mozilla", getenv( "HTTP_USER_AGENT"))) || (ereg("Netscape", getenv("HTTP_USER_AGENT"))) AND (!ereg("MSIE", getenv("HTTP_USER_AGENT"

Re: [PHP] PHP and email

2005-11-23 Thread David Grant
Hi Angelo, Why not send them all in one go? If you want to reduce server load, you should perhaps adjust the 'nice'ness of the script. If you do the following: nice --adjustment=19 ./script.php Your script will run in the background and use only spare resources. Cheers, David Grant Angelo Z

Re: [PHP] Accessing Arrays in HTML

2005-11-23 Thread David Grant
Shaun, This: $values[] = $value; Does this: $values[] = array('Scheduling' => '44'); Therefore, it must be accessed like this: $values[$i]['Scheduling'] // gives '44' But not this: $values[$i][0] // index doesn't exist. Cheers, David Grant Shaun wrote: > Hi, > > I am trying to create a

Re: [PHP] Accessing Arrays in HTML

2005-11-23 Thread Jochem Maas
Shaun wrote: Hi, I am trying to create a form on my page. The idea is that for each project people can select whether they are allocated for scheduling, non_scheduling or both. Here is an example of my form: take the time to work out what it is that is being POSTed: echo ''; var_dump( $_POS

Re: [PHP] Decision table/business rule parser?

2005-11-23 Thread Geoff - Creative Living
Hi folks > > >As an alternative, I worked briefly on a native PHP Petri-net workflow > > >engine with a guy called Tony Marston before we parted ways. He has > > >written it up here: > > > > > >http://www.tonymarston.net/php-mysql/workflow.html > I wrote to Tony a couple of months ago and he said

[PHP] Re: Autodeleting news when it has become yesterdays news

2005-11-23 Thread Mark Rees
I have a news-script on a webpage. Or an eventscript you might call it. This lists up events thats gonna happen on a given day. ie concerts and sportsevents. To get this deleted without having to log on to the adminpage when the event is over would have been a great relief. 1. Is it just as simple

Re: [PHP] cms type session - how to ?

2005-11-23 Thread Gregory Machin
Sorry for the lack of clarity on the single page... eg : http://127.0.0.1/index.php? where the index.php holds the logic of what is displayed and by passing vars back to it's self determins what is next displayed .. hope that helps.. On 11/22/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On T

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread Frank Armitage
twistednetadmin wrote: > Thanks guys. That helps alot! > > But this: > print $_SERVER['HTTP_USER_AGENT']; > ?> > > Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.7.12) Gecko/20050915 Firefox/1.0.7 > And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Window

Re: [PHP] Is there a way to determine wich browser a visitor uses in php?

2005-11-23 Thread David Grant
$_SERVER['HTTP_USER_AGENT'] contains whatever the browser passes to the server to identify itself, which may be faked by certain browsers at the discretion of the user. The two user agents you provide as an example are both extremely common. Cheers, David Grant twistednetadmin wrote: > Thanks g