php-general Digest 22 Nov 2005 17:02:57 -0000 Issue 3809

2005-11-22 Thread php-general-digest-help
php-general Digest 22 Nov 2005 17:02:57 - Issue 3809 Topics (messages 226251 through 226286): Re: PHP 5.0.5 226251 by: Curt Zirzow 226252 by: Ashley M. Kirchner Re: security question... man in the middle attacks 226253 by: bruce Re: Including classes 226254

Re: [PHP] Including classes

2005-11-22 Thread Marco Kaiser
hi, Here's what's going on. I have a page which calls itself in a form. On this page, I include two classes from other file I've created. On load, the page reads the class stuff just fine. If I submit the form (call the page again), then the class doesn't like to show any results. can you

[PHP] Re: Cookie problem with IE

2005-11-22 Thread n.g.
save below as testcookie.php, request it from your browser twice, what do you get at 2nd time? ?php setcookie('sessioncookie', 1); setcookie('storedcookie',1,time()+3600); var_dump($_COOKIE); ? On 11/22/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: Anyone have any suggestions?

[PHP] GLOB sort order

2005-11-22 Thread Mark Lucas
Can anyone help me please? I'm not an advanced PHP user! I'm looing for a way to sort the array returned by the GLOB function. I would like to be able to sort the result by filemtime. Any good ideas? Thanks, Mark

Re: [PHP] GLOB sort order

2005-11-22 Thread Georgi Ivanov
On Tuesday 22 November 2005 11:41, Mark Lucas wrote: Can anyone help me please? I'm not an advanced PHP user! I'm looing for a way to sort the array returned by the GLOB function. I would like to be able to sort the result by filemtime. Any good ideas? I think you can walk the array

Re: [PHP] GLOB sort order

2005-11-22 Thread Jochem Maas
Georgi Ivanov wrote: On Tuesday 22 November 2005 11:41, Mark Lucas wrote: Can anyone help me please? I'm not an advanced PHP user! I'm looing for a way to sort the array returned by the GLOB function. I would like to be able to sort the result by filemtime. Any good ideas? I think you can

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

2005-11-22 Thread Jochem Maas
Geoff - Creative Living wrote: Hi Does anyone know of an open source or commercial php library for parsing decision tables? Or failing that, a more general business rules parser? I can't find anything on the usual php script sites. Unless I'm missing something, this seems to be a gap - in the

[PHP] calling static methods of variable class names

2005-11-22 Thread Ahmed Saad
hi all, how can i call static methods of a class whose name is variable.. something like ? $className::doSomething(); // throws a parser error ? I can do this with reflection by creating a ReflectionMethod object then invoke()ing it, but is there a better way? Thanks -ahmed

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

2005-11-22 Thread Geoff - Creative Living
Hi Mike I'm not aware of any. I am kind of developing my own for my current Materials System. Sounds as though, like me, you might just get away with a decision table parser rather than a fully-fledged corporate rules engine. though your application is a bit more complex than ours. It's

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

2005-11-22 Thread Jay Blanchard
[snip] It's surprising to me that we are faced with rolling our own or working with Java - suggests that PHP still has a bit to go as a platform for serious business systems. [/snip] The lack of a decision table/business rule parser does not suggest that PHP has a way to go as a platform for

[PHP] Re: calling static methods of variable class names

2005-11-22 Thread Oliver Grätz
Ahmed Saad schrieb: hi all, how can i call static methods of a class whose name is variable.. something like ? $className::doSomething(); // throws a parser error ? I can do this with reflection by creating a ReflectionMethod object then invoke()ing it, but is there a better way? Thanks

Re: [PHP] calling static methods of variable class names

2005-11-22 Thread David Grant
Ahmed, call_user_func(array($className, 'doSomething')); Cheers, David Grant Ahmed Saad wrote: hi all, how can i call static methods of a class whose name is variable.. something like ? $className::doSomething(); // throws a parser error ? I can do this with reflection by creating a

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

2005-11-22 Thread Jochem Maas
Geoff - Creative Living wrote: Hi Mike I'm not aware of any. I am kind of developing my own for my current Materials System. Sounds as though, like me, you might just get away with a decision table parser rather than a fully-fledged corporate rules engine. though your application is a bit

Re: [PHP] calling static methods of variable class names

2005-11-22 Thread Jochem Maas
Ahmed Saad wrote: hi all, how can i call static methods of a class whose name is variable.. something like ? $className::doSomething(); // throws a parser error ? I can do this with reflection by creating a ReflectionMethod object then invoke()ing it, but is there a better way? try

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

2005-11-22 Thread James Kaufman
On Tue, Nov 22, 2005 at 02:49:41PM +0100, Jochem Maas wrote: Geoff - Creative Living wrote: Hi Mike 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:

[PHP] readdir and mime types

2005-11-22 Thread Graham Cossey
I'm attempting to read a list of files in a directory using readdir() but am having problems with mpeg files not seemingly being read. Cope snippet: $count = 0; while (false !== ($file = readdir($open_dir))) { if ($file != '.' $file != '..') {

Re: [PHP] Re: Cookie problem with IE

2005-11-22 Thread Kristen G. Thorson
n.g. wrote: save below as testcookie.php, request it from your browser twice, what do you get at 2nd time? ?php setcookie('sessioncookie', 1); setcookie('storedcookie',1,time()+3600); var_dump($_COOKIE); ? On 11/22/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: Anyone have any

RE: [PHP] readdir and mime types

2005-11-22 Thread Jay Blanchard
[snip] I'm attempting to read a list of files in a directory using readdir() but am having problems with mpeg files not seemingly being read. Cope snippet: $count = 0; while (false !== ($file = readdir($open_dir))) { if ($file != '.' $file != '..') {

Re: [PHP] readdir and mime types

2005-11-22 Thread Graham Cossey
On 11/22/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I'm attempting to read a list of files in a directory using readdir() but am having problems with mpeg files not seemingly being read. Cope snippet: $count = 0; while (false !== ($file = readdir($open_dir)))

RE: [PHP] readdir and mime types

2005-11-22 Thread Jay Blanchard
[snip] Yes $open_dir is the handle from opendir(). The file_exists is simply checking for an associated file elsewhere as I'm looking for video files and thumbnails. As I said, this works fine for avi suffixed files but not mpg or mpeg suffixed files. [/snip] Make sure to always hit reply-all,

Re: [PHP] readdir and mime types

2005-11-22 Thread Graham Cossey
[snip] Make sure to always hit reply-all, or the e-mail will not go back to the list. Yep, realised that after hitting 'send'. :-( If file exists is looking for an associated files is it probable that the .mpg files do not have one associated with it in the other directory? It is probable,

Re: [PHP] readdir and mime types

2005-11-22 Thread David Grant
Graham, Is safe mode enabled in your config file? If safe mode is on, PHP will check the file to ensure it is owned by the same user executing the script. If this condition fails, file_exists() will not work on the file. http://php.net/file_exists

RE: [PHP] readdir and mime types

2005-11-22 Thread Jay Blanchard
[snip] If file exists is looking for an associated files is it probable that the .mpg files do not have one associated with it in the other directory? It is probable, that's why the check is there, but in this case the associated file(s) definitely does exist. If I simply change the file

Re: [PHP] Cookie problem with IE

2005-11-22 Thread Kristen G. Thorson
Jay Blanchard wrote: But I sure would like to see the URL once he has clicked it. Have you tried changing to $_GET['page']? Again, all of this is just for gigglesbut there is likely to be a clue. On privacy policies in IE (can he try another browser?) what is his setting? I'm still

Re: [PHP] readdir and mime types

2005-11-22 Thread Graham Cossey
[snip all] OK, of course it's my fault !! :o My directory variables are using relative paths and I was trying to access the parent directory from the sub-directory but not using '..' Sorry. Thanks for your help. -- Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Cookie problem with IE

2005-11-22 Thread Jay Blanchard
[snip] I have not looked into it, but do some internet security apps like Norton try to block certain cookies? I've not come across this, as I don't really use those programs, but right now I'm grasping for straws. [/snip] Certain anti-virus/spyware programs can and do block cookies and can be

[PHP] can bind but cannot search?

2005-11-22 Thread Bing Du
Hello all, The following script returns 'search failed...' after 'LDAP bind successful...'. == ?php $ldaprdn = CN=John Smith,OU=Users,DC=Coll,DC=some,DC=edu; $ldappass = passwd; $ds=ldap_connect(ad.coll.some.edu); if ($ds) { echo Binding ...br /; $r=ldap_bind($ds, $ldaprdn,

Re[2]: [PHP] Cookie problem with IE

2005-11-22 Thread Richard Davey
Hi Kristen, Tuesday, November 22, 2005, 3:21:31 PM, you wrote: I have not looked into it, but do some internet security apps like Norton try to block certain cookies? I've not come across this, as I don't really use those programs, but right now I'm grasping for straws. Yes they do - I

[PHP] Re: can bind but cannot search?

2005-11-22 Thread Bing Du
Bing Du wrote: Hello all, The following script returns 'search failed...' after 'LDAP bind successful...'. == ?php $ldaprdn = CN=John Smith,OU=Users,DC=Coll,DC=some,DC=edu; $ldappass = passwd; $ds=ldap_connect(ad.coll.some.edu); if ($ds) { echo Binding ...br /; $r=ldap_bind($ds,

[PHP] Re: Re: Re: Re: better way to mix html and php code?

2005-11-22 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am interested in how this works, but am skeptical. No problem, the programming in X template instead of programming in PHP objection is raised often. I've given previous arguments about the merits of templates and

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-22 Thread Jochem Maas
Roman Ivanov wrote: Greg Donald wrote: Maybe Zend will get it right where all the previous attempts I've seen/used are less than great. Personally, I would start creation of PHP framework by cleaning up PHP sytax. It's freakin' impossible to make complex OOP clean: there is plenty wrong

[PHP] Re: Regex for balanced brackets?

2005-11-22 Thread Al
Jeffrey Sambells wrote: I came across this method of matching brackets with regex in .NET http://puzzleware.net/blogs/archive/2005/08/13/22.aspx but I am wondering if it is possible to do the same in PHP? I've tried it a bit but I can't seem to get it to work properly. I'm just wondering if

Re: [PHP] Problems with PHP5 phpMyAdmin

2005-11-22 Thread Russ F
Curt Zirzow wrote: On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote: I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in

Re: [PHP] Problems with PHP5 phpMyAdmin

2005-11-22 Thread Russ F
Curt Zirzow wrote: On Fri, Nov 18, 2005 at 12:07:00PM -0800, Russ F wrote: I've reinstalled Apache2, PHP5, phpMyAdmin and MYSQl several times. I still get the same error when i try to use phpmyadmin Can not load mysql extensions. I checked the path it is correct, the extensions exist in

[PHP] how to exist within the context?

2005-11-22 Thread Bing Du
Hi, One webpage has its banner, left menu and footer ect that are controled by the template. I want this php script to output the form and processing result within the page structure. Without exit, if the 'yourname' field is empty, the script would output 'Please enter your name!' fine

Re: [PHP] how to exist within the context?

2005-11-22 Thread David Grant
Hi, Try this: ?php $submit = $_POST['submit']; $name = $_POST['yourname']; if ($submit) { do { if ($name==) { print Please enter your name!; break; } } while (0); } echo Continue processing...; ? It's a hack, but it works. Cheers, David Grant

RE: [PHP] how to exist within the context?

2005-11-22 Thread Jay Blanchard
[snip] form method=post input name=yourname type=text size=20 input name=submit type=submit value=submit /form ?php $submit = $_POST['submit']; $name = $_POST['yourname']; if ($submit) { if ($name==) { print Please enter your name!; //exit; } } echo Continue processing...;

[PHP] Re: username format when binding to Active Directory?

2005-11-22 Thread Bing Du
Bing Du wrote: Hello, The following script returns 'LDAP bind failed...'. ?php echo Connecting ...br /; $ldaprdn = [EMAIL PROTECTED]; $ldappass = jsmithpass; $ds=ldap_connect(ad.dept.some.edu); if ($ds) { echo Binding ...br /; $r=ldap_bind($ds, $ldaprdn, $ldappass); if ($r) {

Re: [PHP] how to exist within the context?

2005-11-22 Thread Bing Du
Thanks for the help. But I still got: Please enter your name! Continue processing... What I want is if no name is entered, only 'Please enter your name!' should be returned. Bing David Grant wrote: Hi, Try this: ?php $submit = $_POST['submit']; $name = $_POST['yourname']; if ($submit)

[PHP] Assistance debugging php 5.x.x

2005-11-22 Thread Eric
I would like to have some assistance in debugging php. It's about a bug in php not a script of mine. I can't post a bug report as I do not exactly know why my code is suffering from a php bug. It's related to a very complex objects-model where objects, cross-referenced, wake up from a session.

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

2005-11-22 Thread Jay Blanchard
[snip] This is globally what happens. If you're insterested in this issue, willing to help me and if you think yourself to be cappable of helping me. Please contact me by responding to this post or contact me directly: [/snip] There are several on this list who are willing and capable of helping.

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-22 Thread Roman Ivanov
Jochem Maas wrote: Roman Ivanov wrote: Greg Donald wrote: Maybe Zend will get it right where all the previous attempts I've seen/used are less than great. Personally, I would start creation of PHP framework by cleaning up PHP sytax. It's freakin' impossible to make complex OOP clean:

[PHP] Re: Can't execute external program

2005-11-22 Thread Henry Castillo
That was on of the first things I checked: safe mode is set to off Any ideas... Henry Voip tech said the following on 11/20/2005 10:31 PM: Hello, I cannot get exec(), system() or passthru() to run an extenal program. From the command line it runs perfectly: snip I'm getting frustrated,

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

2005-11-22 Thread Eric
That's just one of the problems, it's about a project with over tens of thousands lines of code. As I said before, I don't know whats the exact cause. There are so many variables that contribute to this issue and of most of them I don't understand why they contribute. However, I'm convinced the

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

2005-11-22 Thread Jay Blanchard
[snip] If anyone is still interested in helping me, please let me know, tell me what you need, what you intend to check, a guess about the cause of the issue? [/snip] Give us an example of the code where it breaks and also any error messages. That will give us a starting point. -- PHP General

Re: [PHP] how to exist within the context?

2005-11-22 Thread Bing Du
Ummm... but I don't see how that is related to my exit problem. Any pointers for me to learn more about it? Thanks much for the help. Bing Jay Blanchard wrote: [snip] form method=post input name=yourname type=text size=20 input name=submit type=submit value=submit /form ?php $submit =

Re: [PHP] Trying to send data via POST

2005-11-22 Thread Anders Norrbring
On 2005-11-21 20:23 Richard Davey wrote: Hi Anders, Monday, November 21, 2005, 7:13:40 PM, you wrote: I'm trying to set up a script that will post a picture file to a hosting site. Normally, the site accepts uploads via a web form using a POST action. How can I make this file transfer to the

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

2005-11-22 Thread Richard Lynch
On Tue, November 22, 2005 2:37 pm, Eric wrote: $this-title=$this-B[$key]-title; While this is SUPPOSED to work in PHP 5, it would be my first suspect of under-tested code. Try this: $temp = $this-B[$key]; $this-title = $temp-title; This is not a typo, the key mysterialy changed to Nederlancs!

Re: [PHP] how to exist within the context?

2005-11-22 Thread Richard Lynch
Put all your footer html/code into a function called 'foot' Then do: if (must_die(...)){ foot(); exit; } On Tue, November 22, 2005 11:27 am, Bing Du wrote: Hi, One webpage has its banner, left menu and footer ect that are controled by the template. I want this php script to output

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

2005-11-22 Thread Eric
[snip] Give us an example of the code where it breaks and also any error messages. That will give us a starting point. [/snip] I think you don't understand completly, the project exists out of tens of thousands lines of code. - I don't have a short reproduce script - I don't know if it's possible

Re: [PHP] PHP 5.0.5

2005-11-22 Thread Ashley M. Kirchner
Curt Zirzow wrote: On Mon, Nov 21, 2005 at 09:41:40PM -0700, Ashley M. Kirchner wrote: ext/ftp/ftp.lo(.text+0x76): In function `data_close': /usr/local/src/apache/php-5.0.5/ext/ftp/ftp.c:1566: undefined reference to `SSL_shutdown' This means basically that the header files (*.h)

Re: [PHP] readdir and mime types

2005-11-22 Thread Richard Lynch
On Tue, November 22, 2005 8:23 am, Graham Cossey wrote: I'm attempting to read a list of files in a directory using readdir() but am having problems with mpeg files not seemingly being read. Cope snippet: $count = 0; while (false !== ($file = readdir($open_dir))) {

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

2005-11-22 Thread Jay Blanchard
[snip] I think you don't understand completly, the project exists out of tens of thousands lines of code. - I don't have a short reproduce script - I don't know if it's possible to create one, however, i'll try My code may appear to be weird, but it's no broken. The php compiler is broken though

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

2005-11-22 Thread Eric
[snip] It sounds like you are storing an object property sometimes as a string, and sometimes as an array. [/snip] I can assure you, this has nothing to do with this issue, the only type-juggling I do once in a while is byte/int/long/double/string -- PHP General Mailing List

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

2005-11-22 Thread Richard Lynch
On Tue, November 22, 2005 3:24 am, Gregory Machin wrote: I'm looking for a how to , on creating sessions similar to those used my cms's that ref only a single page.. http://php.net/session_start ??? I don't understand what you mean by that ref only a single page and suspect not many others

Re: [PHP] Including classes

2005-11-22 Thread Richard Lynch
On Mon, November 21, 2005 5:14 pm, Philip Thompson wrote: Hi all. Here's what's going on. I have a page which calls itself in a form. On this page, I include two classes from other file I've created. On load, the page reads the class stuff just fine. If I submit the form (call the page

[PHP] syntax checking?

2005-11-22 Thread Bing Du
Hi, How should PHP syntax be checked before execution? Anything similar to what option -c does in Perl? % perl -c test.pl Thanks, Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] syntax checking?

2005-11-22 Thread Jay Blanchard
[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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] syntax checking?

2005-11-22 Thread Jay Blanchard
[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/php -l myScript.php -- PHP General Mailing

Re: [PHP] syntax checking?

2005-11-22 Thread Bing Du
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/php -l myScript.php

[PHP] Sending Mail (newbie)

2005-11-22 Thread schalk
Greetings All I am using the following script to send mail via PHP. The script processes and send the mail but the message is never displayed in the received email. Any pointers will be much appreciated. Thank you. ?php // Handle POST method. if

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

2005-11-22 Thread Eric
[snip] No, I understand perfectly. There is a point at which the code breaks, is there not? There are error messages, are there not? You cannot unequivocally state that the PHP compiler is broken until the code has been evaluated. We are trying to help you here, but you have to show us something.

RE: [PHP] Sending Mail (newbie)

2005-11-22 Thread mwestern
Have you tried a very simple email example to make sure your server is sending mail out. Is sendmail running and working? http://au2.php.net/function.mail -Original Message- From: schalk [mailto:[EMAIL PROTECTED] Sent: Wednesday, 23 November 2005 9:12 AM To:

RE: [PHP] Sending Mail (newbie)

2005-11-22 Thread schalk
Thanks All. I have got this working. -- Open WebMail Project (http://openwebmail.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Execute a program from PHP CLI and allow user interaction

2005-11-22 Thread Jasper Bryant-Greene
Hi all This one's got me stumped. I'm working on a PHP CLI interface, and I need to allow the user to input a bit of HTML. Rather than bandy around with readline() and the like, I thought it would be nice to just create a temporary file, pop nano up, and read and then delete the file once

[PHP] Unclonable objects

2005-11-22 Thread Matt Monaco
What situation would make a mysqli object unclonable? This is a problem that occurs only on a linux machine with mysql4. I am simply trying to declare a link resource and I get an error Trying to clone unclonable object of type mysqli If I declare the link using a reference however, the

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

2005-11-22 Thread twistednetadmin
I use this line in a script for uploading pictures to a website: $_FILES['guildimage']['type'] == image/jpeg This works fine when using Mozilla, but it doesn't work with IE. How should I do it to get it working with both/all browsers? if (isset($_POST['submit']))

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

2005-11-22 Thread Stephen Leaf
I use the fileinfo pecl. http://pecl.php.net/Fileinfo how to get a mime type: $info = new finfo( FILEINFO_MIME ); $mime = $info-file($filename); then my extention grabber: function getExtention() { switch ( $this-mimeType ) { case

[PHP] Re: Cookie problem with IE

2005-11-22 Thread n.g.
did i say it? sorry, i mean load the page in your customer browser. the code you give simple test stored cookie, which might be blocked by browser. however browser blocks stored cookie might allow session cookie, they are not stored so are less insecurity. bad thing is your customer have some

[PHP] Re: Execute a program from PHP CLI and allow user interaction

2005-11-22 Thread n.g.
use proc_open , connect stdin/out of php cli to nano, i guess On 11/23/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Hi all This one's got me stumped. I'm working on a PHP CLI interface, and I need to allow the user to input a bit of HTML. Rather than bandy around with readline() and

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

2005-11-22 Thread Stephen Leaf
The reason why I suggested the fileinfo idea was because IE and mozilla report the mime type differently. image/x-jpeg vs image/jpeg I believe it is. using fileinfo just standardizes what you need to check for. On Tuesday 22 November 2005 09:56 pm, twistednetadmin wrote: I don't think that is

[PHP] Re: Can't execute external program

2005-11-22 Thread n.g.
is /var/www/html your web root dir ? maybe its the plobrem. On 11/23/05, Henry Castillo [EMAIL PROTECTED] wrote: That was on of the first things I checked: safe mode is set to off Any ideas... Henry Voip tech said the following on 11/20/2005 10:31 PM: Hello, I cannot get exec(),

[PHP] NTLM, PHP and Apache

2005-11-22 Thread Joe Wollard
Greetings all, 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 via NTLM on IIS. All I'm really looking for here

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

2005-11-22 Thread Curt Zirzow
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 5.0.x and 5.1.x as well as 5.0.1 and 5.0.5, what version are we talking about? I can't post

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

2005-11-22 Thread twistednetadmin
Is it possible to use PHP to find out wich type of browser is in use? Or must is this done by javascript or something else? I would like to have a little statistic on my page that tells me what browser is currently moet used.

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

2005-11-22 Thread twistednetadmin
This did the trick: elseif ($_FILES['guildimage']['type'] == image/pjpeg or image/jpeg)

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

2005-11-22 Thread Joe Wollard
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote: Is it possible to use PHP to find out wich type of browser is in use? Or must is this done by javascript or something else? I would like to have a little statistic on my page that tells me what browser is currently moet used. Try: ?php

[PHP] PHP and email

2005-11-22 Thread Angelo Zanetti
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 sending again. Or the

[PHP] mysqli unclonable object

2005-11-22 Thread Matt Monaco
On a Fedora 4 machine running MySQL 4.1 I am having trouble declaring an instance of a mysqli extension. class Data extends mysqli { function __construct($host, $user, $password, $db = null) { @parent::__construct($host, $user, $password, $db) or printf(There was an error

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

2005-11-22 Thread twistednetadmin
Thanks guys. That helps alot! But this: ?php 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; Windows NT 5.1; SV1) Does that just mean

[PHP] Autodeleting news when it has become yesterdays news

2005-11-22 Thread twistednetadmin
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

[PHP] Re: Newbie to PHP5

2005-11-22 Thread Yoyo
Danny wrote: Hi there, I´m familiar with PHP syntax, but I´ve been reading some sample scripts, in PHP5 and i´ve seen some strange things, like diferent ways to read a collection of rows, magic functions, wrapers, and operators like :: and -. I know that all is the manual, but before that