Hi,
i try to understand the error_reporting statement and to avoid all warning
or error messages.
for example i stop the postgresql service and i try to connect to it.
when error_reporting is set to E_ALL, i get the following warning :
*Warning*: pg_connect()
On Sun, 2008-09-28 at 11:00 +0200, Alain Roger wrote:
Hi,
i try to understand the error_reporting statement and to avoid all warning
or error messages.
for example i stop the postgresql service and i try to connect to it.
when error_reporting is set to E_ALL, i get the following warning :
i only set it via php code like error_reporting(0);
On Sun, Sep 28, 2008 at 11:11 AM, Ashley Sheridan
[EMAIL PROTECTED]wrote:
On Sun, 2008-09-28 at 11:00 +0200, Alain Roger wrote:
Hi,
i try to understand the error_reporting statement and to avoid all
warning
or error messages.
for
On Sat, 2008-09-20 at 23:48 -0500, Shawn McKenzie wrote:
Terry J Daichendt wrote:
The error message told it all. Jochem was correct albiet not in the
style I prefer. I had the code in an HTML page after the header. I've
been a programmer for 15 years but I'm brand new to PHP. Anyone can
At 10:26 AM +0100 9/21/08, Ashley Sheridan wrote:
It's an easy mistake to make, not just reserved for rookies ;) I had a
similar problem
Me too, I think we've all been bitten by that.
The point is simply don't send anything to the browser before ?php
if you're going to be using
The error message told it all. Jochem was correct albiet not in the style I
prefer. I had the code in an HTML page after the header. I've been a
programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie
mistake. Thanks everyone for the help. Everyone was partially correct in
Terry J Daichendt wrote:
The error message told it all. Jochem was correct albiet not in the
style I prefer. I had the code in an HTML page after the header. I've
been a programmer for 15 years but I'm brand new to PHP. Anyone can make
a rookie mistake. Thanks everyone for the help. Everyone
Terry J Daichendt schreef:
You have a real attitude problem, please don't bother with me again.
actually it's you who has a problem with my attitude, not me. although I'll
grant you that people like you are usually 'bother' ... and I won't anymore.
--
PHP General Mailing List
I'm pasting this code from the example at php.net and getting these errors.
Can anyone determine what I'm doing wrong?
?php
// page1.php
session_start();
echo 'Welcome to page #1';
$_SESSION['favcolor'] = 'green';
$_SESSION['animal'] = 'cat';
$_SESSION['time'] = time();
// Works if
No puedes tener ningun espacio en blanco delante de session_start();
Sorry for my english:
you cant have any blank spaccing before SESSION_START()
Prueba:
TRY:
?php
session_start();
echo 'Welcome to page #1';
$_SESSION['favcolor'] = 'green';
$_SESSION['animal'] = 'cat';
$_SESSION['time']
It sounds like there is a space or output before the ?php line. It
should be the very first line on a PHP page, and have no spaces before
it.
Andrew
2008/9/19 CanihoJR [EMAIL PROTECTED]:
No puedes tener ningun espacio en blanco delante de session_start();
Sorry for my english:
you cant have
Terry J Daichendt schreef:
I'm pasting this code from the example at php.net and getting these
which example might that be, with 1000's of built in functions you
can imagine there is probably more than one.
errors. Can anyone determine what I'm doing wrong?
yes. but can your read? the
Andrew Barnett schreef:
It sounds like there is a space or output before the ?php line. It
should be the very first line on a PHP page, and have no spaces before
it.
a blank space before the ?php tag ... on LINE 6???
Andrew
2008/9/19 CanihoJR [EMAIL PROTECTED]:
No puedes tener ningun
You have a real attitude problem, please don't bother with me again.
Jochem Maas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Terry J Daichendt schreef:
I'm pasting this code from the example at php.net and getting these
which example might that be, with 1000's of built in
Si, puedes tener espacio en blanco delante de session_start(), pero no
puedes tener espacio delante de '?php'.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
CanihoJR wrote:
No puedes tener ningun espacio en blanco delante de session_start();
Sorry for
Terry J Daichendt wrote:
You have a real attitude problem, please don't bother with me again.
Jochem Maas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Terry J Daichendt schreef:
I'm pasting this code from the example at php.net and getting these
which example might that be,
On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote:
I'm pasting this code from the example at php.net and getting these
errors. Can anyone determine what I'm doing wrong?
?php
// page1.php
session_start();
echo 'Welcome to page #1';
$_SESSION['favcolor'] = 'green';
$_SESSION['animal']
I am trying to turn on errors in the browser, but for some reason they
are being suppressed.
In php.ini I have display_errors = On and error_reporting = E_STRICT
What else could be suppressing errors?
السلام عليكم
- Naz.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
E_STRICT only shows one type of error. If you want everything than you
need to set E_ALL | E_STRICT
http://usphp.com/manual/en/errorfunc.constants.php#errorfunc.constants.errorlevels.e-strict
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Naz wrote:
I am
Hi, I'm having trouble with a framework I'm developing, apparently when a
non-catchable error occurs (E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING,
E_COMPILE_ERROR, E_COMPILE_WARNING types) not only I can't fire up my error
handling function, I can't even display the static html page I set
Hello,
Sorry to brother you but I'm really in a pinch with this problem and I
need to resolve it.
The older Fedora Apache server runs just fine with DocumentRoot
pointing to the NFS share. The NFS share is on our OS X file server. The
new CentOS runs fine when DocumentRoot is pointing to
sorry if I double posted:
Hello,
I'm trying to move my apache server from a Fedora Core 1 with PHP V
4.3.8 onto a newly built Centos 5 with PHP 5.1.6, all applications
installed by rpms. The www root dir is /projects/proj2/www/html and
it is a nfs mounted share.
During the installation
Hi,
I need help with a simple script that i made for handling errors. The problem
is that the script displays the same message several times while i want it
displayed just one time.
He is the code:
?php
function error_handler($errno, $errstr, $filename, $lineno, $context)
{
if ($errno ==
Sorry,
i found the error. it was my mistake
- Original Message
From: It Maq [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tuesday, March 11, 2008 11:38:10 AM
Subject: [PHP] Error handling
Hi,
I need help with a simple script that i made for handling errors. The problem
On Sun, Feb 24, 2008 at 1:53 PM, hE [EMAIL PROTECTED] wrote:
hi to all,
I set up phptriad on my computer running windows xp. When I tried to
test php with the following program I got an error Parse error: parse
error, expecting `','' or `';'' in C:\apache\htdocs\mytest.php on line 10
hi to all,
I set up phptriad on my computer running windows xp. When I tried to
test php with the following program I got an error Parse error: parse
error, expecting `','' or `';'' in C:\apache\htdocs\mytest.php on line 10
html
head
titlePHP Test/title
/head
body
pThis is an HTML line
p
?php
thanks for the help. I am a C/C++ programmer and decide to learn php and
mysql to develop web pages. is it the correct place to ask questions
similar to this? or is there any other group suitable for this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
To: php-general@lists.php.net Date: Sun, 24 Feb 2008 20:53:03 +0200 From:
[EMAIL PROTECTED] Subject: [PHP] PHPTriad and php error hi to all, I set
up phptriad on my computer running windows xp. When I tried to test php
with the following program I got an error Parse error: parse error
This is a good place, other include various forums and the manual
bastien To: php-general@lists.php.net Date: Sun, 24 Feb 2008 21:21:01 +0200
From: [EMAIL PROTECTED] Subject: Re: [PHP] PHPTriad and php error thanks
for the help. I am a C/C++ programmer and decide to learn php and mysql
On Feb 11, 2008 10:40 AM, [EMAIL PROTECTED] wrote:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen(usuarios.txt,r);
Does this file exist in the directory from which the script is
ultimately run, and is it readable?
yes (both)
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen(usuarios.txt,r);
$usuarios=array();
$i=0;
while(!feof($Descriptor2)){
$buffer = fgets($Descriptor2,4086);
$usuarios[$i]=$buffer;
$i++;
}
fclose($Descriptor2);
$miusername =
Daniel Brown wrote:
On Feb 11, 2008 11:12 AM, [EMAIL PROTECTED] wrote:
On Feb 11, 2008 10:40 AM, [EMAIL PROTECTED] wrote:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen(usuarios.txt,r);
Does this file exist in the directory from which
On Feb 11, 2008 10:40 AM, [EMAIL PROTECTED] wrote:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen(usuarios.txt,r);
Does this file exist in the directory from which the script is
ultimately run, and is it readable?
$usuarios=array();
On Feb 11, 2008 11:12 AM, [EMAIL PROTECTED] wrote:
On Feb 11, 2008 10:40 AM, [EMAIL PROTECTED] wrote:
HEllo
with the next code i am trying for loading one file
$mibool = FALSE;
$Descriptor2 = fopen(usuarios.txt,r);
Does this file exist in the directory from which the script
hello i have one great problem using php for sinding email across one email
server (in the same machine) that is one Linux suse with postfix. it doesn't
is sent, alwats appears one error into the mail log (bellow).
Can you help me please? I am trying to solve this problem during several
weeks
Jan 5 13:52:02 server postfix/qmgr[7450]: 20EB589B68:
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none,
delay=0, status=deferred (delivery temporarily suspended: transport is
unavailable)
Which means it's a postfix problem and has nothing to do with php at all.
Ask on the postfix
Yes i was looking for view parse errors on my browser but now I guess will
have to use an IDE Like zend :)
tedd wrote:
At 10:27 PM +0200 10/5/07, Zoltán Németh wrote:
2007. 10. 5, péntek keltezéssel 12.57-kor tedd ezt írta:
I long for the time where my editor said Offending syntax on
At 10:27 PM +0200 10/5/07, Zoltán Németh wrote:
2007. 10. 5, péntek keltezéssel 12.57-kor tedd ezt írta:
I long for the time where my editor said Offending syntax on line 236.
my editor still says parse error and shows me the line number... ;)
greets
Zoltán Németh
Consider yourself lucky,
On Friday 05 October 2007, Paul Scott wrote:
On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
I'm a newbie to php and i would like to know a way of viewing runtime
errors on the browser. Currently when an error occurs nothing is
displayed on the browser. Is there any way of viewing all error
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php error occurs the entire page is still shown blank.
Larry Garfield wrote:
On Friday 05 October 2007, Paul Scott wrote:
On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
I'm
On Fri, 2007-10-05 at 00:32 -0700, tbt wrote:
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php error occurs the entire page is still shown blank.
Is your script *supposed* to output something?
--Paul
All Email originating
-Original Message-
From: Paul Scott [mailto:[EMAIL PROTECTED]
Sent: 05 October 2007 06:44
On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
I'm a newbie to php and i would like to know a way of
viewing runtime errors
on the browser. Currently when an error occurs nothing is
yes it is
pscott wrote:
On Fri, 2007-10-05 at 00:32 -0700, tbt wrote:
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php error occurs the entire page is still shown blank.
Is your script *supposed* to output
try putting this on the top of your PHP page
?php
error_reporting(E_ALL);
?
tbt wrote:
yes it is
pscott wrote:
On Fri, 2007-10-05 at 00:32 -0700, tbt wrote:
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php
Maybe display errors is set on off?
?
ini_set('display_errors','1');
?
Aleksander
tbt wrote:
yes it is
pscott wrote:
On Fri, 2007-10-05 at 00:32 -0700, tbt wrote:
I added the following lines to the top of my script but still no error
messages show up on the browser.
When a php
tbt wrote:
Hi
I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all error messages on the browser
itself.
Thanks
From what I read in your other posts, it
At 10:38 PM -0700 10/4/07, tbt wrote:
Hi
I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all error messages on the browser
itself.
Thanks
tbt:
Welcome
2007. 10. 5, péntek keltezéssel 12.57-kor tedd ezt írta:
At 10:38 PM -0700 10/4/07, tbt wrote:
Hi
I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all
Hi
I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all error messages on the browser
itself.
Thanks
--
View this message in context:
On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all error messages on the browser
itself.
You can up
On Mon, August 6, 2007 4:41 am, debussy007 wrote:
I am new to PHP and need some help for error handling.
I read in the docs that i can handle the errors this way in my PhP:
set_error_handler('errorHandler');
function errorHandler($errnum,$errmsg,$file,$lineno){
[...]
}
But does that
Hi,
I am new to PHP and need some help for error handling.
I read in the docs that i can handle the errors this way in my PhP:
set_error_handler('errorHandler');
function errorHandler($errnum,$errmsg,$file,$lineno){
[...]
}
But does that mean that I have to copy paste this code in all my
debussy007 wrote:
Hi,
I am new to PHP and need some help for error handling.
I read in the docs that i can handle the errors this way in my PhP:
set_error_handler('errorHandler');
function errorHandler($errnum,$errmsg,$file,$lineno){
[...]
}
But does that mean that I have to copy paste
I'm running PHP 5.1 on IIS. My dev environment is all local on my
machine. My php.ini has the following error reporting settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
Hello.
Please pardon the cross-post - I posted this on the php.install
newsgroup a couple of days ago, but there has been no activity on that
news group, and I see that other installation issues are posted here.
I have tried to install the following on my Windows Vista Home Premium
System:
On 18/07/07, Stephan G [EMAIL PROTECTED] wrote:
I have tried to install the following on my Windows Vista Home Premium
System:
Ah I see the problem there
Vista is not a mature OS yet - wait until at least SP1 before trying it.
1. How can I uninstall this and remove it from my
Dear Alan:
Thank you for your suggestion on wiping the disk and reloading the OS,
which I imagine you might be suggesting because of your political
feelings to Microsoft... which I don't think are wrong.
However, this would not be a practical solution for me in any way, and
this installer
He did say or Win XP.
I'll have to go back to find your original post to see if I can help.
Well, from your subject, maybe you can use a System Restore point?
---
If you need a stable, secure OS, get Ubuntu.
If you need a stable, secure OS, and need new hardware, get a
Stephan G wrote:
Please pardon the cross-post - I posted this on the php.install
newsgroup a couple of days ago, but there has been no activity on that
news group, and I see that other installation issues are posted here.
I have tried to install the following on my Windows Vista Home Premium
From: Stephan G [EMAIL PROTECTED]
php-5.2.3-win32-installer.msi
It has the following md5 sum, taken locally on my system:
4d042f649d9c264477e1b421c64c6435
I can confirm the same md5 sum.
The installer has encountered an unexpected error
installing this package. This may
Hi. I have been asked to try to catch the php error generated when the
PHP script exceed execution time, but I do not know if that can be
done... Any ideas? Mainly I want to show a custimized error page instead
of that error (kind of Sorry but we are busy right now or something
similar
Miguel J. Jiménez wrote:
Hi. I have been asked to try to catch the php error generated when the
PHP script exceed execution time, but I do not know if that can be
done... Any ideas? Mainly I want to show a custimized error page instead
of that error (kind of Sorry but we are busy right now
I suggest each student adds the line
error_reporting(E_ALL);
This will echo the errors and will not affect the php.ini settings.
Hope that will work for you
cheers
On 5/31/07, Clark Alexander [EMAIL PROTECTED] wrote:
We have the following php.ini settings:
error_reporting = E_ALL
We have the following php.ini settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
on a SuSE 10.1 server and the errors are
Clark Alexander wrote:
We have the following php.ini settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
on a
Yes, it does write to the file, but the only things going in there are
notice type entries.
Also, for further information, it is php 5.1.2 using the Suse rpm.
On 5/31/07 5:14 PM, in article [EMAIL PROTECTED], Jochem Maas
[EMAIL PROTECTED] wrote:
Clark Alexander wrote:
We have the following
Upon review, I also discover that fatal error entries are being made as
well.
On 5/31/07 5:14 PM, in article [EMAIL PROTECTED], Jochem Maas
[EMAIL PROTECTED] wrote:
Clark Alexander wrote:
We have the following php.ini settings:
error_reporting = E_ALL
display_errors = Off
On Thu, May 31, 2007 3:25 pm, Clark Alexander wrote:
We have the following php.ini settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
Hi All,
I'm just add php_apc.dll in my module, but when I'm restart apache there error
as :
The instruction at 0x097f2e5e referenced memory at 0x0019. The memory
could not be read.
Is this cause of the module or apache itself?
Thanks in advance
bn
On 3/5/07, Helder Lopes [EMAIL PROTECTED] wrote:
Helder Lopes wrote:
?php
// Conexão com o banco de dados
include mysql.php;
// Inicia sessões
session_start();
// Recupera o login
$login = $_POST[username];
// Recupera a senha
$senha = $_POST[password];
// Usuário não forneceu a senha ou o
?php
// Conexão com o banco de dados
include mysql.php;
// Inicia sessões
session_start();
// Recupera o login
$login = $_POST[username];
// Recupera a senha
$senha = $_POST[password];
// Usuário não forneceu a senha ou o login
if($login== $senha= )
{
echo Você deve digitar sua senha e
Helder Lopes wrote:
?php
// Conexão com o banco de dados
include mysql.php;
// Inicia sessões
session_start();
// Recupera o login
$login = $_POST[username];
// Recupera a senha
$senha = $_POST[password];
// Usuário não forneceu a senha ou o login
if($login== $senha= )
{
echo Você deve
In other file
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Helder Lopes wrote:
?php
// Conexão com o banco de dados
include mysql.php;
// Inicia sessões
session_start();
// Recupera o login
$login = $_POST[username];
// Recupera a senha
$senha = $_POST[password];
// Usuário não forneceu a senha ou o login
if($login== $senha= )
{
echo Você deve
Helder Lopes wrote:
In other file
I asked because it might prove helpful to see how that is set because
this appears to be what is causing your error.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Helder Lopes wrote:
In other file
sarcasmwell then it *must* be correct./sarcasm
have you tried actually looking at $con to see what it contains???
the connection to mysql failed or was never even attempted, the error
you get makes that quite clear.
--
PHP General Mailing List
Helder Lopes wrote:
snipped code
Why this script give me a error:
*Warning*: mysql_query(): supplied argument is not a valid MySQL-Link
resource in *ver.php* on line *23*
This means that the second parameter to the mysql_query call ($con) is
not a valid connection to a MySQL database. How
Thanxs for helping!
The error has that i was not calling the database, neither the connection!!
Im so stupid! Sorry for your time lost!
I am trying to add some error handling to my code. Instead of
reinventing the wheel, I searched and found the code below. For the
most part, it seems to work. When I have an error, it doesn't get
shown. However, I don't get any output. I tracked it down to the
$errno. It is outputting a
E_USER_WARNING is a 'constant' whose value is a number.
It is not a string.
If you do this:
echo E_USER_WARNING is set to ', E_USER_WARNING, 'br /\n;
you will see exactly what number it is.
So whatever you thought was going wrong, this is not it.
In addition...
The check for $query should
Didja see this one:
http://us3.php.net/manual/en/function.memcache-debug.php
Not, perhaps, the best answer, and maybe even not possible in your
environment, but it may be useful for development, if not production.
You could also check the getServerStats functions to see if their
stats provide
Hi,
I want to compile PHP with IMAP support.
I've downloaded imap2006e and run:
# make slx
but i got this error:
make[2]: Entering directory `/usr/local/src/imap-2006e/mtest'
`cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest
mtest.o
-Message d'origine-
De : Mário Gamito [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 8 février 2007 16:56
À : php-general@lists.php.net
Objet : [PHP] Error compiling lib
Hi,
I want to compile PHP with IMAP support.
I've downloaded imap2006e and run:
# make slx
but i got
# [EMAIL PROTECTED] / 2007-02-08 15:56:25 +:
Hi,
I want to compile PHP with IMAP support.
I've downloaded imap2006e and run:
# make slx
but i got this error:
make[2]: Entering directory `/usr/local/src/imap-2006e/mtest'
`cat ../c-client/CCTYPE` -I../c-client `cat
Hi,
Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may stored in a php variable and print out later ?
I want to put them some other location and show them in a debug window. I do
this for my error reporting and I could not manage how to do with
Use the set_error_handle function:
http://us2.php.net/manual/en/function.set-error-handler.php
saqib
http://www.full-disk-encryption.net
On 12/18/06, Sancar Saran [EMAIL PROTECTED] wrote:
Hi,
Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may
Sancar Saran wrote:
Hi,
Is anyone know that errors generated by php (like Notice: Uninitialized
string
offset: 0 in ...) may stored in a php variable and print out later ?
I want to put them some other location and show them in a debug window. I do
this for my error reporting and I
On Monday 18 December 2006 15:39, Jochem Maas wrote:
Sancar Saran wrote:
Hi,
Is anyone know that errors generated by php (like Notice: Uninitialized
string offset: 0 in ...) may stored in a php variable and print out later
?
I want to put them some other location and show them in a
On Mon, 2006-12-18 at 20:55 +0200, Sancar Saran wrote:
Oh really?
so where is my spy-adware windows trojan prize ?
Thank you Jochem, asking you always easy than the searching documentation and
I always wonder what can I do without you and your great comments :).
I promise, next time
Craige Leeder wrote:
I have been working with PHP5 since it's release, and until a few
months ago, have never experienced the problem I am about to describe
to you. I am not sure weather it has been discovered previously or
not, nor do I know exactly how to replicate it, but I would like to
I have been working with PHP5 since it's release, and until a few
months ago, have never experienced the problem I am about to describe
to you. I am not sure weather it has been discovered previously or
not, nor do I know exactly how to replicate it, but I would like to
know if you have
Hi. First thanks for the replies.
Can anyone confirm that the php 5.2.0 engine takes the file name from the
path automatically and so basename() can be omitted? I understand that
leaving basename() in the code won't hurt, but I need the info for other
purpose. Thanks.
Hi. There seems to
# [EMAIL PROTECTED] / 2006-12-05 21:50:44 +0800:
Hi. First thanks for the replies.
Can anyone confirm that the php 5.2.0 engine takes the file name from the
path automatically and so basename() can be omitted? I understand that
leaving basename() in the code won't hurt, but I need the info
Hi,
I'm having a strange problem when trying to show a array after its value
was defined on a file that was included. Something like this:
?php
$lang = 'pt_BR';
include('lang/'. $lang .'/login.php');
echo $lang['Username'];
?
On the file lang/pt_BR/login.php i have this...
?php
How can you use an array as string in the include statement and two lines lower
as array?
Think it echo's 'S' because it see's $lang as a string and not an array.
On Tue, 05 Dec 2006 13:11:12 -0200, Fernando M. M. [EMAIL PROTECTED] wrote:
Hi,
I'm having a strange problem when trying to show
T.Lensselink,
Ok, problem solved. I didn't realized that i was using the same variable.
Thanks for the help!
T.Lensselink escreveu:
How can you use an array as string in the include statement and two lines lower
as array?
Think it echo's 'S' because it see's $lang as a string and not an
On Tue, December 5, 2006 9:11 am, Fernando M. M. wrote:
Hi,
I'm having a strange problem when trying to show a array after its
value
was defined on a file that was included. Something like this:
?php
$lang = 'pt_BR';
include('lang/'. $lang .'/login.php');
echo
Hi. There seems to be a minor error in the page
http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
Validating file uploads, there is a line:
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
It looks like basename() is not required there. Because i found
# [EMAIL PROTECTED] / 2006-12-03 18:39:41 +0800:
Hi. There seems to be a minor error in the page
http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
Validating file uploads, there is a line:
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
It looks
On Sun, December 3, 2006 4:39 am, MS P wrote:
Hi. There seems to be a minor error in the page
http://www.php.net/manual/en/features.file-upload.php. In Example 38-2
Validating file uploads, there is a line:
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
It looks like
201 - 300 of 1121 matches
Mail list logo