Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Domain nikha . org
Aziz Saleh am Montag, 23. September 2013 - 22:06: > What Niklaus wishes for is a way to detect if an email message contains an > attachment by just reading the headers (correct me if I am wrong). > Yes, that's what I'm seeking :-) > This isn't really a PHP issue. In any language you can't really

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Domain nikha . org
Negin Nickparsa am Montag, 23. September 2013 - 20:59: > I have read your mail twice and still I could not get what you want > exactly. Sorry for my bad english! What I want is, that the users of my webmail client can see at a glance, if mails in their mailboxes have attachments or not. (Thats

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Aziz Saleh
What Niklaus wishes for is a way to detect if an email message contains an attachment by just reading the headers (correct me if I am wrong). This isn't really a PHP issue. In any language you can't really figure out if an email has an attachment by just looking at the headers, you need to check t

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
I have read your mail twice and still I could not get what you want exactly. can't get the structure of the email either although you elaborate it in details. you have said something about human rights that I couldn't understand why? but if you want to get the type of files fetch the structure an

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
I have read your mail twice and still I could not get what you want exactly. can't get the structure of the email either although you elaborate it in details. you have said something about human rights that I couldn't understand why? but if you want to get the type of files fetch the structure an

[PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-18 Thread Domain nikha . org
Hello all, im posting this here, because the bug report system of "php.net" is not right place for my problem. It's not a bug, but a wish - an I found there no "wishlist" option at all. I'm running my own webmail-client, written in PHP. It is stable, fast and pretty, showing the full power of th

[PHP] No error handling for - ldap_bind(): Unable to bind to server: Invalid credentials.

2013-01-24 Thread Sarno, Giuseppe
Hello, I am using php (5.4.11 windows) ldap extension and I am having problems when I bind to my LDAP server with wrong credentials. The problem is that I get the warning: : ldap_bind(): Unable to bind to server: Invalid credentials no matter what I do. I simply would like to handle the case and

Re: [PHP] no traffic

2012-03-06 Thread Lawrence Decker
YEA that was it!!! Yes, selinux is enabled. Checked the selinux log, and saw all the connection failures with httpd... Excellent, thanks it's been driving me nuts!!! On Tue, Mar 6, 2012 at 10:13 AM, Charles wrote: > On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote: > > I've been playi

Re: [PHP] no traffic

2012-03-06 Thread Charles
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote: > I've been playing with PHP for about 6 years and I have no idea why this is > happening... I've been writing a script to auth to AD.  When I run the > script on my dev box, nothing.  I have wireshark running in the background > on the dev bo

Re: [PHP] no traffic

2012-03-06 Thread Lawrence Decker
Thanks Franks, corrected but still same problem... On Tue, Mar 6, 2012 at 9:33 AM, Frank Arensmeier wrote: > > 6 mar 2012 kl. 15.29 skrev Mike Mackintosh: > > > On Mar 6, 2012, at 8:55, Lawrence Decker wrote: > > > >> I've been playing with PHP for about 6 years and I have no idea why > this is

Re: [PHP] no traffic

2012-03-06 Thread Lawrence Decker
I can cli to any host/port that's open, firewall's wide open fc-lawrence:~># telnet ad1.bac.com 389 Trying 10.13.3.10... Connected to ad1.bac.com. Escape character is '^]'. ^CConnection closed by foreign host. # iptables -nL Chain INPUT (policy ACCEPT) target prot opt source de

Re: [PHP] no traffic

2012-03-06 Thread Frank Arensmeier
6 mar 2012 kl. 15.29 skrev Mike Mackintosh: > On Mar 6, 2012, at 8:55, Lawrence Decker wrote: > >> I've been playing with PHP for about 6 years and I have no idea why this is >> happening... I've been writing a script to auth to AD. When I run the >> script on my dev box, nothing. I have wire

Re: [PHP] no traffic

2012-03-06 Thread Mike Mackintosh
On Mar 6, 2012, at 8:55, Lawrence Decker wrote: > I've been playing with PHP for about 6 years and I have no idea why this is > happening... I've been writing a script to auth to AD. When I run the > script on my dev box, nothing. I have wireshark running in the background > on the dev box, I c

Re: [PHP] no traffic

2012-03-06 Thread Charles
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote: > I've been playing with PHP for about 6 years and I have no idea why this is > happening... I've been writing a script to auth to AD.  When I run the > script on my dev box, nothing.  I have wireshark running in the background > on the dev bo

[PHP] no traffic

2012-03-06 Thread Lawrence Decker
I've been playing with PHP for about 6 years and I have no idea why this is happening... I've been writing a script to auth to AD. When I run the script on my dev box, nothing. I have wireshark running in the background on the dev box, I can see the script's traffic go out and hit the DNS server

Re: [PHP] no regrets after doing this venture...

2011-11-17 Thread Marc Guay
> Hi Friend!I knew things couldnt get any worse I consider myself lucky > to have found this now im in this for the long run you should consider trying > it href="http://lacadenasport.es/profile/31AlanWalsh/";>http://lacadenasport.es/profile/31AlanWalsh/see > you. > This list is for PHP discuss

Re: [PHP] No SMTP server? Can't get mail()

2011-01-24 Thread David Robley
Paul S wrote: > On Sun, 23 Jan 2011 12:40:25 +0700, David Robley > wrote: > >> Paul S wrote: >>> I'm a little new to PHP. > > David starts: >> Nobody seems to have mentioned it, but the SMTP info is only needed on a >> Win >> system. The following is an extract from a default php.ini file: >> >

Re: [PHP] No SMTP server? Can't get mail()

2011-01-24 Thread Paul S
On Sun, 23 Jan 2011 12:40:25 +0700, David Robley wrote: Paul S wrote: I'm a little new to PHP. David starts: Nobody seems to have mentioned it, but the SMTP info is only needed on a Win system. The following is an extract from a default php.ini file: Well, I have just RTF mail() Manu

Re: [PHP] No SMTP server? Can't get mail()

2011-01-22 Thread David Robley
Paul S wrote: > On Fri, 21 Jan 2011 13:41:21 +0700, Peter Lind > wrote: > >> Probably not the solution you were looking for, but I've always found >> mail() >> very unstable and I tend to use a mail library instead. Like phpmailer or >> swiftmailer. Easier to configure and figure out problems wi

Re: [PHP] No SMTP server? Can't get mail()

2011-01-22 Thread Paul S
On Fri, 21 Jan 2011 13:41:21 +0700, Peter Lind wrote: Probably not the solution you were looking for, but I've always found mail() very unstable and I tend to use a mail library instead. Like phpmailer or swiftmailer. Easier to configure and figure out problems with. Regards Peter Peter, t

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Peter Lind
Probably not the solution you were looking for, but I've always found mail() very unstable and I tend to use a mail library instead. Like phpmailer or swiftmailer. Easier to configure and figure out problems with. Regards Peter

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
On Fri, 21 Jan 2011 13:07:02 +0700, "Paul S" wrote: On Fri, 21 Jan 2011 12:28:16 +0700, Paul M Foster wrote: On Fri, Jan 21, 2011 at 10:45:46AM +0700, Paul S wrote: I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be working. To star

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
On Fri, 21 Jan 2011 12:28:16 +0700, Paul M Foster wrote: On Fri, Jan 21, 2011 at 10:45:46AM +0700, Paul S wrote: I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be working. To start, I am investigating the SMTP server. I can't underst

Re: [PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul M Foster
On Fri, Jan 21, 2011 at 10:45:46AM +0700, Paul S wrote: > I am having problems with mail(). The problem is that the email just never > gets there. Mail appears to be working. To start, I am investigating the > SMTP server. I can't understand some things. > > 1) I am sure that the smtp server is a

[PHP] No SMTP server? Can't get mail()

2011-01-20 Thread Paul S
I am having problems with mail(). The problem is that the email just never gets there. Mail appears to be working. To start, I am investigating the SMTP server. I can't understand some things. 1) I am sure that the smtp server is and is set to "localhost", but I want to verify this ... --

Re: [PHP] No errors gets displayed, just a blank page

2010-12-10 Thread tedd
At 7:04 PM + 12/8/10, Ashley Sheridan wrote: I'd also check any errors logs for this site made by Apache, as that will tell you where PHP is falling over. If you have access to the whole server run a 'tail -f' command in a terminal and go to your site again in the browser, that way, you'll

Re: [PHP] No errors gets displayed, just a blank page

2010-12-08 Thread Ashley Sheridan
On Wed, 2010-12-08 at 13:16 -0500, tedd wrote: > At 2:07 AM +0100 12/8/10, Rico Secada wrote: > >Hi. > > > >What can cause that no parse error gets displayed (blank page/no output > >at all) even though error reporting is set to "-1"? > > > >I have run the script through php lint on the console an

Re: [PHP] No errors gets displayed, just a blank page

2010-12-08 Thread tedd
At 2:07 AM +0100 12/8/10, Rico Secada wrote: Hi. What can cause that no parse error gets displayed (blank page/no output at all) even though error reporting is set to "-1"? I have run the script through php lint on the console and it comes up with no errors. I have run into this problem the la

Re: [PHP] No errors gets displayed, just a blank page

2010-12-07 Thread Kranthi Krishna
wats the setting of display_errors php.net/display_errors ? if you are not getting any output it might be because of a simple parse error (mismatched brackets, misplaced semicolon etc) or an exit/die command Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] No errors gets displayed, just a blank page

2010-12-07 Thread Rico Secada
Hi. What can cause that no parse error gets displayed (blank page/no output at all) even though error reporting is set to "-1"? I have run the script through php lint on the console and it comes up with no errors. I have run into this problem the last couple of days making debugging a nightmare

Re: [PHP] No notices for undefined index

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 14:15 +0100, Nathan Rixham wrote: > Ashley Sheridan wrote: > > can't find anything in the manual that explains what should happen when > > you treat a string like an array in PHP. > > http://www.php.net/manual/en/language.types.string.php#language.types.string.substr > > :

Re: [PHP] No notices for undefined index

2010-04-09 Thread Nathan Rixham
Ashley Sheridan wrote: > can't find anything in the manual that explains what should happen when > you treat a string like an array in PHP. http://www.php.net/manual/en/language.types.string.php#language.types.string.substr :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

RE: [PHP] No notices for undefined index

2010-04-09 Thread Bob McConnell
From: Shawn McKenzie > Bob McConnell wrote: >> In the first case, $a=5 creates a multi-typed variable. The interpreter >> makes its best guess how the next two expressions should be interpreted. >> In both cases, they look a lot like an index into a character array >> (string), and 'test' evaluate

Re: [PHP] No notices for undefined index

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 07:52 +0530, kranthi wrote: > >> print $a[0]; // prints 5 > >> print $a[100]; // Notice: Uninitialized string offset: 100 > Yup, this should happen when 5 is treated as an array of characters. > In other words as a string. > $a = '5'; > echo $a[0]; > echo $a[100]; > gives

Re: [PHP] No notices for undefined index

2010-04-08 Thread shiplu
Hello Shawn, Why dont you report a bug? When we know the expected behavior or the way it SHOULD behave. and its not behaving that way. Its certainly a bug.. Only then we can know the real reason why the novicas are not showing up. On 4/8/10, Shawn McKenzie wrote: > So the first two print statemen

Re: [PHP] No notices for undefined index

2010-04-08 Thread kranthi
>> print $a[0]; // prints 5 >> print $a[100]; // Notice: Uninitialized string offset: 100 Yup, this should happen when 5 is treated as an array of characters. In other words as a string. $a = '5'; echo $a[0]; echo $a[100]; gives you the expected result regarding the original question, i think t

Re: [PHP] No notices for undefined index

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 15:22 -0500, Shawn McKenzie wrote: > Shawn McKenzie wrote: > > Bob McConnell wrote: > >> In the first case, $a=5 creates a multi-typed variable. The interpreter > >> makes its best guess how the next two expressions should be interpreted. > >> In both cases, they look a lot l

Re: [PHP] No notices for undefined index

2010-04-08 Thread Shawn McKenzie
Shawn McKenzie wrote: > Bob McConnell wrote: >> In the first case, $a=5 creates a multi-typed variable. The interpreter >> makes its best guess how the next two expressions should be interpreted. >> In both cases, they look a lot like an index into a character array >> (string), and 'test' evaluate

Re: [PHP] No notices for undefined index

2010-04-08 Thread Shawn McKenzie
Bob McConnell wrote: > In the first case, $a=5 creates a multi-typed variable. The interpreter > makes its best guess how the next two expressions should be interpreted. > In both cases, they look a lot like an index into a character array > (string), and 'test' evaluates numerically to zero. Both

Re: [PHP] No notices for undefined index

2010-04-08 Thread Shawn McKenzie
Andre Polykanine wrote: > Hello Shawn, > > Hm... isn't it expected behavior? Since you haven't defined a > $a['test'] item, PHP throws a notice... or I'm wrong? Yes it is expected. I'm saying the opposite that it doesn't in the first case. -- Thanks! -Shawn http://www.spidean.com -- PHP Gene

RE: [PHP] No notices for undefined index

2010-04-08 Thread Bob McConnell
ses a flag and creates the warnings. Such are the joys of loosely typed languages. Bob McConnell -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: Thursday, April 08, 2010 1:45 PM To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] No notices for

Re: [PHP] No notices for undefined index

2010-04-08 Thread Andre Polykanine
senger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Shawn McKenzie To: php-general@lists.php.net Date: Thursday, April 8, 2010, 8:36:21 PM Subject: [PHP] No notices for undefined index So the first two print statements generate NO notices, while t

Re: [PHP] No notices for undefined index

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 12:36 -0500, Shawn McKenzie wrote: > So the first two print statements generate NO notices, while the second > obviously generates: > > Notice: Undefined offset: 1 in /home/shawn/www/test.php on line 11 > > Notice: Undefined index: test in /home/shawn/www/test.php on line

[PHP] No notices for undefined index

2010-04-08 Thread Shawn McKenzie
So the first two print statements generate NO notices, while the second obviously generates: Notice: Undefined offset: 1 in /home/shawn/www/test.php on line 11 Notice: Undefined index: test in /home/shawn/www/test.php on line 12 This sucks. A bug??? error_reporting(E_ALL); ini_set('display_e

Re: [PHP] no-cache control

2010-04-06 Thread Karl DeSaulniers
Thanks kranthi. I thought there was a way. I was thinking you could, say, set your header content in the php.ini file?, but a .htaccess would work too. Thanks, Best, Karl On Apr 6, 2010, at 11:44 PM, kranthi wrote: you can do that by using .htacess in the required directory http://www.askapa

Re: [PHP] no-cache control

2010-04-06 Thread kranthi
you can do that by using .htacess in the required directory http://www.askapache.com/htaccess/apache-speed-cache-control.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no-cache control

2010-04-06 Thread Kim Emax
Hi Karl 2010/4/6 Karl DeSaulniers > Is there a way to set up a no-cache control in your php.ini file or some > config file? > Sorry if this is a newb question. > Put it in the header: header("Cache-Control: no-cache, must-revalidate"); Remember headers must be the first output you do, read m

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Daniel Brown
On Sat, Mar 20, 2010 at 09:03, Robert P. J. Day wrote: > >  ok, i might do that.  as daniel suggested, that issue is noticeably > outside the scope of this general list. Just be prepared for what you'll encounter on Internals. I was deliberately not suggesting that list at this point in time

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Robert P. J. Day
On Sat, 20 Mar 2010, Peter Lind wrote: > You should probably have a look at the internals list - there's a > lot of discussion going on as to what should happen in terms of SVN > structure. ok, i might do that. as daniel suggested, that issue is noticeably outside the scope of this general lis

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Peter Lind
You should probably have a look at the internals list - there's a lot of discussion going on as to what should happen in terms of SVN structure. Regards Peter On 20 March 2010 12:32, Robert P. J. Day wrote: > >  just for fun, i figured i'd check out the current PHP development > stream.  however

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Daniel P. Brown
This starts to get out of the scope of the General list. If you think it's a bug, report it. Did you check out the latest snap? It's an hourly build from the SVN repo. (If this top-posts, my apologies. I'm sitting in the living room with my little girl, typing from my DROID.) On Mar 20, 2010 7:3

[PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Robert P. J. Day
just for fun, i figured i'd check out the current PHP development stream. however, if you read the web page here: http://php.net/svn.php there's no mention of the "trunk", simply references to branches such as 5.2 and 5.3. i popped over to: http://svn.php.net/viewvc/php/php-src/ and,

RE: [PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL)

2008-07-04 Thread Chris Haensel
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 11:41 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL) Importance: Low > -Original Message- > From: Aviation Coding [mailto:

[PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL)

2008-07-04 Thread Chris Scott
> -Original Message- > From: Aviation Coding [mailto:[EMAIL PROTECTED] > Sent: Friday, July 04, 2008 10:15 AM > To: php-general@lists.php.net > Subject: [SPAM] [PHP] No Database Connection possible (mySQL) > Importance: Low > > Hi all, > > I am having p

[PHP] No Database Connection possible (mySQL)

2008-07-04 Thread Aviation Coding
Hi all, I am having problems with a connection to a mysql database. I am using function con() { mysql_connect("localhost","user","pass") or die(mysql_error()); mysql_select_db("tava") or die(mysql_error()); } Now, when I call the _function_ (!) con() or die("no con"); I get

Re: [PHP] no array passed error

2008-06-03 Thread Ted Wood
PJ, I remember the days when this stuff seemed beyond mystical. 1. $dbh and $query are not "built-in" variables... but they need to be defined somewhere earlier in the code. That could even be in a different file if the file you're in has been included. 2. One trick to try is to use the php

Re: [PHP] no array passed error

2008-06-03 Thread Nathan Nobbe
On Tue, Jun 3, 2008 at 4:28 PM, PJ <[EMAIL PROTECTED]> wrote: > I don't know if this is the right list, it seems php and postgresql are > rather interdependent in the webside I am debugging :(, but here goes: > > I'm getting this error: > pg_execute() [function.pg-execute]: No > array passedE_

[PHP] no array passed error

2008-06-03 Thread PJ
I don't know if this is the right list, it seems php and postgresql are rather interdependent in the webside I am debugging :(, but here goes: I'm getting this error: pg_execute() [function.pg-execute]: No array passedE_WARNING for this line of code: if( !($r=pg_execute($dbh, $query)) )

Re: [PHP] No is_date() function?

2007-07-27 Thread Nathan Nobbe
> On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > 2) Some fancy OOP object (use OOP isa function) basically what i suggested in my initial reply; build a couple of custom wrapper objects around the stock php date / time functions. is_a is a relic from php4 that has been deprecated; go for t

Re: [PHP] No is_date() function?

2007-07-26 Thread Richard Lynch
On Wed, July 25, 2007 8:55 am, Ken Tozier wrote: > I wrote a serialization function to turn arbitrary PHP variables into > Macintosh plist compatible XML but see that there is no "is_date" > tester as there is for bool, object, array etc. Is there a relatively > simple (and robust) way to detect if

Re: [PHP] No is_date() function?

2007-07-26 Thread Jim Lucas
Ken Tozier wrote: Hi I wrote a serialization function to turn arbitrary PHP variables into Macintosh plist compatible XML but see that there is no "is_date" tester as there is for bool, object, array etc. Is there a relatively simple (and robust) way to detect if a variable is a date? For exa

Re: [PHP] No is_date() function?

2007-07-26 Thread M. Sokolewicz
This is top-posting Ken Tozier wrote: On Jul 25, 2007, at 10:37 AM, Edward Kay wrote: PS: Please don't top post on mailing lists. I'm unfamiliar with the term "top post". What does it mean? and this is bottom-posting. Generally on mailinglists it's common to bottom-post and not top-post.

Re: [PHP] No is_date() function?

2007-07-25 Thread Crayon Shin Chan
On Thursday 26 July 2007 11:44, Ken Tozier wrote: > On Jul 25, 2007, at 10:37 AM, Edward Kay wrote: > > PS: Please don't top post on mailing lists. > > I'm unfamiliar with the term "top post". What does it mean? But you are familiar with google? -- Crayon -- PHP General Mailing List (http://ww

Re: [PHP] No is_date() function?

2007-07-25 Thread Ken Tozier
On Jul 25, 2007, at 10:37 AM, Edward Kay wrote: PS: Please don't top post on mailing lists. I'm unfamiliar with the term "top post". What does it mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No is_date() function?

2007-07-25 Thread Nathan Nobbe
there is a mysterious DateTimeclass available in php5 w/ practically no documentation at all. i dont know how they expect people to use it. but anyway; i would just build a DateTime or Time, or Date object; then you can validate it all u want

RE: [PHP] No is_date() function?

2007-07-25 Thread Edward Kay
> Thanks Lars > > I saw that one already but unfortunately, it doesn't help as it > requires 3 inputs . What I'm shooting for is an 'is_date' function > that returns true or false with no prior knowledge of what a variable > might contain. > > Ken > > On Jul 25, 2007, at 10:08 AM, Lars Haßler wrot

Re: [PHP] No is_date() function?

2007-07-25 Thread Satyam
, but for the time being, a 'timestamp' as returned by, for example' mktime, is a plain integer. Satyam - Original Message - From: "Ken Tozier" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 25, 2007 3:55 PM Subject: [PHP] No is_date() function? Hi I

Re: [PHP] No is_date() function?

2007-07-25 Thread Ken Tozier
Thanks Lars I saw that one already but unfortunately, it doesn't help as it requires 3 inputs . What I'm shooting for is an 'is_date' function that returns true or false with no prior knowledge of what a variable might contain. Ken On Jul 25, 2007, at 10:08 AM, Lars Haßler wrote: Hi,

[PHP] No is_date() function?

2007-07-25 Thread Ken Tozier
Hi I wrote a serialization function to turn arbitrary PHP variables into Macintosh plist compatible XML but see that there is no "is_date" tester as there is for bool, object, array etc. Is there a relatively simple (and robust) way to detect if a variable is a date? For example: $person

Re: [PHP] no default value

2007-07-18 Thread Stut
tedd wrote: At 1:46 PM +0100 7/17/07, Stut wrote: ... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. How? Look in php.ini for error_reporting. With it enabled if you try to use a variable wi

Re: [PHP] no default value

2007-07-18 Thread tedd
At 1:46 PM +0100 7/17/07, Stut wrote: ... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. How? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com --

Re: [PHP] no default value

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 7:01 am, Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? No. There is a parameter in php.ini that tells you when you USE an uninitialized variabl

Re: [PHP] no default value

2007-07-17 Thread Stut
Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? I think you'll find they get assigned the value of null, not false. There is no setting that enforces such a requiremen

Re: [PHP] no default value

2007-07-17 Thread Daniel Gerzo
On Tue, Jul 17, 2007 at 08:01:59PM +0800, Man-wai Chang wrote: > > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? > Well, I am not aware of such php.ini variable, but I may recomment to in

[PHP] no default value

2007-07-17 Thread Man-wai Chang
Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.

Re: [PHP] No mail() function

2007-04-27 Thread Tijnema !
On 4/27/07, Stut <[EMAIL PROTECTED]> wrote: Miles Thompson wrote: > Does anyone have any ideas? > > PHP 5.2 was compiled from source, the mail path is set to /usr/sbin/postfix > in php.ini, and Apache has been restarted. The mail path shows up in > phpinfo(). > > A trivial PHP script, written to

Re: [PHP] No mail() function

2007-04-27 Thread Stut
Miles Thompson wrote: Does anyone have any ideas? PHP 5.2 was compiled from source, the mail path is set to /usr/sbin/postfix in php.ini, and Apache has been restarted. The mail path shows up in phpinfo(). A trivial PHP script, written to see if mail could be sent from PHP, returns this error:

[PHP] No mail() function

2007-04-27 Thread Miles Thompson
Does anyone have any ideas? PHP 5.2 was compiled from source, the mail path is set to /usr/sbin/postfix in php.ini, and Apache has been restarted. The mail path shows up in phpinfo(). A trivial PHP script, written to see if mail could be sent from PHP, returns this error: *Fatal error*: Call t

RE: [PHP] no database selected

2007-01-23 Thread Jay Blanchard
[snip] I am using this to connect remotely but I get a no database selected error. The table is contacts but there is not a parameter for database name according to the documentation. How do I delect my database when conencting this way? [/snip] http://us3.php.net/manual/en/function.mysql-selec

Re: [PHP] no database selected

2007-01-23 Thread Dave Goodchild
mysql_select_db

[PHP] no database selected

2007-01-23 Thread Ross
I am using this to connect remotely but I get a no database selected error. The table is contacts but there is not a parameter for database name according to the documentation. How do I delect my database when conencting this way? $link = mysql_connect('.org:3306', 'my_username', 'mypass')

Re: [PHP] No Error Messages

2006-11-01 Thread Sancar Saran
On Tuesday 31 October 2006 19:00, Richard Lynch wrote: Hi again, Its my bad, sorry for interruption, I use ajax things and use E_ALL error level. Sometimes I use @ before variables to disable notices because it creates problem in ajax. And this time I use @ for my entire Page containers. And n

Re: [PHP] No Error Messages

2006-10-31 Thread Børge Holen
PHP 5.1 is broken in debian testing right now. Dunno 'bout Sid On Tuesday 31 October 2006 18:00, Richard Lynch wrote: > On Tue, October 31, 2006 6:24 am, Sancar Saran wrote: > > If page has some errors it stop producing any error messages. Neither > > page nor > > syslog. > > > > I get blank page.

Re: [PHP] No Error Messages

2006-10-31 Thread Jochem Maas
Sancar Saran wrote: > Hi, Recenly I face very disturbing problem. > > If page has some errors it stop producing any error messages. Neither page > nor > syslog. > > I get blank page. > > System > Debian Unstable > Apache 2 > Php 5.1.6 > > Apc > Memcached > Obhandler with gzip > and I store en

Re: [PHP] No Error Messages

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 6:24 am, Sancar Saran wrote: > If page has some errors it stop producing any error messages. Neither > page nor > syslog. > > I get blank page. If it's a fatal error, or one too serious to be trapped by an error handler, then your script will just stop. > System > Debian

Re: [PHP] No Error Messages

2006-10-31 Thread clive
Sancar Saran wrote: If page has some errors it stop producing any error messages. Neither page nor syslog. have you looked at the error_reporting setting in your php.ini file. perhaps set it too E_ALL, mine was set to E_ALL & ~E_NOTICE by default on ubuntu 6.10. -- PHP General Mailing

[PHP] No Error Messages

2006-10-31 Thread Sancar Saran
Hi, Recenly I face very disturbing problem. If page has some errors it stop producing any error messages. Neither page nor syslog. I get blank page. System Debian Unstable Apache 2 Php 5.1.6 Apc Memcached Obhandler with gzip and I store entire page output then printed out. And I found if my e

RE: [PHP] no SSL environment vaiables

2006-10-12 Thread gaw
It is the same user. I am running the cgi script from my browser through the web server. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 3:08 PM To: gaw Cc: php-general@lists.php.net Subject: RE: [PHP] no SSL environment vaiables On Thu

RE: [PHP] no SSL environment vaiables

2006-10-12 Thread Richard Lynch
On Thu, October 12, 2006 4:27 pm, gaw wrote: > The SSL_ variables are available in the environment. If I run a cgi > script > and display env they are there. But they do not show in phpinfo(); Which USER runs the CGI script?... You have to 'su' to the User defined in httpd.conf, or it doesn't h

RE: [PHP] no SSL environment vaiables

2006-10-12 Thread gaw
Subject: Re: [PHP] no SSL environment vaiables On Thu, October 12, 2006 4:03 pm, gaw wrote: > I'm running php 5.1.1 configured with openssl 0.9.7i which was > installed in > /opt/local/. Everything was working fine. Then suddenly the SSL > environment variables disappeared. T

Re: [PHP] no SSL environment vaiables

2006-10-12 Thread Richard Lynch
On Thu, October 12, 2006 4:03 pm, gaw wrote: > I'm running php 5.1.1 configured with openssl 0.9.7i which was > installed in > /opt/local/. Everything was working fine. Then suddenly the SSL > environment variables disappeared. The https variable displays on, > but no > SSL_ variables are displa

[PHP] no SSL environment vaiables

2006-10-12 Thread gaw
I'm running php 5.1.1 configured with openssl 0.9.7i which was installed in /opt/local/. Everything was working fine. Then suddenly the SSL environment variables disappeared. The https variable displays on, but no SSL_ variables are displayed via phpinfo. I just installed another version of ope

Re: [PHP] no offense to Rasmus... are you kidding me

2006-04-19 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2006-04-19 at 09:34, Jochem Maas wrote: I just had to post this as a new thread to give it the audience I think it deserves. Matt Todd wrote: No offense to Rasmus, but I don't think he's necessarily the one to feel comfortable aligning your opinions with: he's

Re: [PHP] no offense to Rasmus... are you kidding me

2006-04-19 Thread Robert Cummings
On Wed, 2006-04-19 at 09:34, Jochem Maas wrote: > I just had to post this as a new thread to give it the audience I think > it deserves. > > Matt Todd wrote: > > > > No offense to Rasmus, but I don't think he's necessarily the one to > > feel comfortable aligning your opinions with: he's definitel

[PHP] no offense to Rasmus... are you kidding me

2006-04-19 Thread Jochem Maas
I just had to post this as a new thread to give it the audience I think it deserves. Matt Todd wrote: No offense to Rasmus, but I don't think he's necessarily the one to feel comfortable aligning your opinions with: he's definitely motivated by his language, which, as I've pointed out, is stuck

Re: [PHP] no,no,no,Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Jochem Maas
Georgi Ivanov wrote: I didn't understood what are you saying at first. I don't control the JS code . It is generated from the HTML_AJAX code. The problem was fixed when calling formSubmit method like this : HTML_AJAX.formSubmit(this,target) // No quotes here; target is just a string ! instead

[PHP] no,no,no,Re: [PHP] HTML_AJAX and formSubmit method - Yes ! But why ?

2006-04-05 Thread Georgi Ivanov
I didn't understood what are you saying at first. I don't control the JS code . It is generated from the HTML_AJAX code. The problem was fixed when calling formSubmit method like this : HTML_AJAX.formSubmit(this,target) // No quotes here; target is just a string ! instead of : HTML_AJAX.formSu

Re: [PHP] no newline after "?>" in the resulting HTML

2006-03-21 Thread Rostislav Krasny
On Tue, 21 Mar 2006 10:38:47 +0200 [EMAIL PROTECTED] (Andrei) wrote: > Really I think it would be loosing time documenting that you can put a > new line after ?>! > I mean it's obvious that what's outside php tags will be printed rite? > > Andy You can put anything after "?>" but if you put a n

Re: [PHP] no newline after "?>" in the resulting HTML

2006-03-21 Thread Andrei
Really I think it would be loosing time documenting that you can put a new line after ?>! I mean it's obvious that what's outside php tags will be printed rite? Andy Rostislav Krasny wrote: On Mon, 20 Mar 2006 17:51:32 -0600 (CST) [EMAIL PROTECTED] ("Richard Lynch") wrote: On Sat, March 18,

Re: [PHP] no newline after "?>" in the resulting HTML

2006-03-21 Thread Rostislav Krasny
On Mon, 20 Mar 2006 17:51:32 -0600 (CST) [EMAIL PROTECTED] ("Richard Lynch") wrote: > On Sat, March 18, 2006 12:36 pm, Rostislav Krasny wrote: > > Hello World > > > > > Hello World > > > Why there is no newline afer " Hello World" ? > > Is it a PHP bug or the tutorial should be updated? > >

  1   2   3   4   >