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 array
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
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:
On the file lang/pt_BR/login.php i have this...
But the result of the first script is 'S' (without quotes).
If i change lang/pt_BR/login.php to
I
# [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
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 b
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 l
# [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
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 t
Since Fedora is popular, can I assume that's what you're running? Even
if it's not I'll bet it's a Linux distro that's employing SELinux.
11,500 web pages agree ;-)
http://www.google.com/search?q=%22reloc:+Permission+denied%22
On 9/20/06, Kelly McCoy <[EMAIL PROTECTED]> wrote:
I am getting t
I am getting the error
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: cannot restore segment prot after
reloc: Permission denied
When I try to load Apache.
Running PHP 4.4.4, Apache 2.0.59, and mysql 4.1.21
All installations
I'm curious, what features are you looking for in an error handling library?
2006/8/31, Jay Paulson <[EMAIL PROTECTED]>:
I've been doing some research and was wondering if anyone out there has
written a library for error handling? I haven't found anything as of yet
but would love to hear sugge
On Thu, 2006-08-31 at 11:12 -0500, Jay Paulson wrote:
> I've been doing some research and was wondering if anyone out there has
> written a library for error handling? I haven't found anything as of yet
> but would love to hear suggestions!
PEAR
Cheers,
Rob.
--
.
Hi!, u can extend the exception class and handle ur own errors, If u need
help let me know!
Rafa
On 8/31/06, Jay Paulson <[EMAIL PROTECTED]> wrote:
I've been doing some research and was wondering if anyone out there has
written a library for error handling? I haven't found anything as of yet
I've been doing some research and was wondering if anyone out there has
written a library for error handling? I haven't found anything as of yet
but would love to hear suggestions!
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, July 25, 2006 10:32 am, James Nunnerley wrote:
> We've created a file manager which allows users to access their web
> space on
> a server. It's working brilliantly, except that it would seem there
> are
> some caching issues, either by the system cache or the web server
> cache that
> are
Brad Bonkoski wrote:
Any insights or tips into this?
httpd: Syntax error on line 232 of /home/www/conf/httpd.conf: Cannot
load /home/www/modules/libphp5.so into server:
/home/www/modules/libphp5.so: undefined symbol: _pcre_ucp_findprop
The pcre reference would point to this: http://www.php.n
Any insights or tips into this?
httpd: Syntax error on line 232 of /home/www/conf/httpd.conf: Cannot
load /home/www/modules/libphp5.so into server:
/home/www/modules/libphp5.so: undefined symbol: _pcre_ucp_findprop
TIA.
-Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
James Nunnerley wrote:
>> [snip]
>> When the script tries to delete a file, we always check (using
>> file_exists) to see whether the file exists before it's deleted.
>>
>> The check comes back true, but the unlink then fails, saying no file or
>> directory there!
>> [/snip]
>>
>> Could you please
> [snip]
> When the script tries to delete a file, we always check (using
> file_exists) to see whether the file exists before it's deleted.
>
> The check comes back true, but the unlink then fails, saying no file or
> directory there!
> [/snip]
>
> Could you please post the code you are using to c
You could try prefixing the unlink function call with an @:
if (file_exists($fn)) {
@unlink($fn);
}
The @ should suppress any errors.
jon
James Nunnerley wrote:
We've created a file manager which allows users to access their web space on
a server. It's working brilliantly, except that it
We've created a file manager which allows users to access their web space on
a server. It's working brilliantly, except that it would seem there are
some caching issues, either by the system cache or the web server cache that
are causing us a headache.
When the script tries to delete a file, we a
On Thu, April 27, 2006 7:46 am, cybermalandro cybermalandro wrote:
> I am running an old version of PHP for winblows 4.3.8. I cannot
> upgrade to
> 4.4.2 yet. I rebooted the web server and the box. I am not doing any
> exception handling. I want the errors to be writtent to a log but
> instead
>
I am running an old version of PHP for winblows 4.3.8. I cannot upgrade to
4.4.2 yet. I rebooted the web server and the box. I am not doing any
exception handling. I want the errors to be writtent to a log but instead
they keep showing in the browser. Is there something I am missing? I did
set
Let's not open an error report just yet... there are already too many "bugs"
in the database! A snippet of the relevant code would be nice though.
Perhaps your odbc_errormsg($conn) is being echo'd to stdout? Or you are
using those fun Exception beasts?
On 4/26/06, chris smith <[EMAIL PROTECTED
On 4/27/06, cybermalandro cybermalandro <[EMAIL PROTECTED]> wrote:
> I have set in display_errors = off on my php.ini but I can still see ODBC
> related error messages when I try to duplicate an ODBC error. Am I missing
> something to turn this off?
Can you produce a small test case? Maybe post a
Re-boot.
On Wed, April 26, 2006 4:27 pm, cybermalandro cybermalandro wrote:
> Yes,
> Yes and
> Yes although I am not running apache I am running IIS.
>
> On 4/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>>
>> On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote:
>> > I have set
Yes,
Yes and
Yes although I am not running apache I am running IIS.
On 4/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote:
> > I have set in display_errors = off on my php.ini but I can still see
> > ODBC
> > related error messag
On Wed, April 26, 2006 4:08 pm, cybermalandro cybermalandro wrote:
> I have set in display_errors = off on my php.ini but I can still see
> ODBC
> related error messages when I try to duplicate an ODBC error. Am I
> missing
> something to turn this off?
Does reflect your changes to php.ini?
Does
cybermalandro cybermalandro wrote:
I have set in display_errors = off on my php.ini but I can still see ODBC
related error messages when I try to duplicate an ODBC error. Am I missing
something to turn this off?
restart the server?
also check that ini_set('display_errors', 0); doesn't have the
I have set in display_errors = off on my php.ini but I can still see ODBC
related error messages when I try to duplicate an ODBC error. Am I missing
something to turn this off?
Thanks!
On Thu, April 20, 2006 7:42 am, Weber Sites LTD wrote:
> I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written
> to
> file.
> I can see all of the direct errors but when I have an error inside an
> include
> file the script fails and the error is not shown in the log. I have to
> "
ROTECTED]
Sent: Thursday, April 20, 2006 5:15 PM
To: Weber Sites LTD
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP error log
Run the include file separately and see if it produces an error. Also make
sure that if you have "short open tags=OFF" that your include file uses
normal tags.
Run the include file separately and see if it produces an error. Also
make sure that if you have "short open tags=OFF" that your include file
uses normal tags.
Code normally helps.
Wolf
Weber Sites LTD wrote:
> Hi
>
> I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
>
Please, explain how are you logging the errors.
Weber Sites LTD wrote:
Hi
I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file.
I can see all of the direct errors but when I have an error inside an
include
file the script fails and the error is not shown in the log. I
@lists.php.net
CC: [EMAIL PROTECTED]
Asunto: [PHP] PHP error log
Hi
I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file. I can see all of the direct errors but when I have an error inside an
include file the script fails and the error is not shown in the log. I have
to &
Hi
I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file.
I can see all of the direct errors but when I have an error inside an
include
file the script fails and the error is not shown in the log. I have to
"guess"
Where the error is.
Any idea what I'm missing.
Thanks
B
I tried to install PHP 4 with darwinports yesterday. And it gave me
the same error. Configuring the install seems not to be the problem,
but the install make. It has definitely something to do with the
absence of some developer packages from Apache on my machine.
I actually found a rather b
Maybe try to configure with the direct path to the apache source files...
--with-apxs=/path/to/apache/bin/apxs
Frank Arensmeier said:
> Hello.
>
> I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I
> am getting error messages. The the install configuration runs just
> fine using
I think you are missing httpd-devel package. At least on Linux is called
something like this.
Also look for /usr/sbin/apxs(2)
If you are with apache 2.x you should use --with-apxs2[=/usr/sbin/apxs2]
Good luck
On Wednesday April 5 2006 12:54, Frank Arensmeier wrote:
> Hello.
>
> I try to compile
Hello.
I try to compile PHP 4.4.2 from source on Mac OS X 10.4 server but I
am getting error messages. The the install configuration runs just
fine using the following options:
./configure
--prefix=/usr/local/php
--with-config-file-path=/usr/local/php/lib
--with-apxs --with-iconv=/usr/local
-Original Message-
From: ngwarai zed [mailto:[EMAIL PROTECTED]
Sent: 30 March 2006 13:36
I am using Fedora core 4. yes I stopped and restarted apache
On 3/30/06, Ford, Mike wrote:
On 29 March 2006 15:25, ngwarai zed wrote:
> phpinfo says
>
> Configuration File (php.ini) Path /
On 29 March 2006 15:25, ngwarai zed wrote:
> phpinfo says
>
> Configuration File (php.ini) Path /etc/php.ini
>
> And the file I am editing is /etc/php.ini Is this not the
> one Iam supposed to edit?
On list please!
H'mmm -- file permissions? You've stopped and restarted Apache? Which
oper
On Wed, 2006-03-29 at 16:38 +0300, ngwarai zed wrote:
> I tried changing display_errors = On and error_reporting = On in
> php.ini , restarted httpd but when I check with phpinfo() I still see
> display_errors set to Off and error_reporting set to 2047. My php
> script still does not show any error
On Wed, 2006-03-29 at 18:25 +0300, ngwarai zed wrote:
> But still the problem is not solved. Just to recap on the problem: I
> just want the deliberate php errors Imake to shown as errors on the
> php page when the script runs.
Yes, that should be the normal behaviour. Check your error_reporting
s
Thanks Christopher for your help. I followed you numbered advicestep by
step.
1) I verified that there weren't any typo's that were causing fatal problems
in my php.ini
2) looked at the output of phpinfo() and verified the location of the
php.ini script. /etc/php.ini .This is the file I am modif
> -Original Message-
> From: ngwarai zed [mailto:[EMAIL PROTECTED]
> Sent: 29 March 2006 14:39
> To: Christopher Murtagh
> The problem is I know what the error is. What I want is for
> the error to be shown when I run the script not to be just
> written to the error log. I tried changin
I checked the apache error log and the error is written there just as I
expected like below.
[client 127.0.0.1] PHP Parse error: parse error, unexpected T_STRING,
expecting ',' or ';' on line 90, referer: http://localhost/form.html
The problem is I know what the error is. What I want is for th
At 10:57 AM 3/28/2006, ngwarai zed wrote:
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL then
ngwarai zed wrote:
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL then restarted httpd. Ran t
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL then restarted httpd. Ran the script again and
On Wed, 2006-03-22 at 18:47, Fósforo wrote:
> Hi,
>
> I just have compiled a module for my webserver, added it to
> httpd.conf, but apache gives me an error when i try to start it:
>
> [EMAIL PROTECTED]:/var/www/html/laget/servlet# apachectl configtest
> Syntax error on line 241 of /etc/apache/ht
Fósforo wrote:
Hi,
I just have compiled a module for my webserver, added it to
httpd.conf, but apache gives me an error when i try to start it:
[EMAIL PROTECTED]:/var/www/html/laget/servlet# apachectl configtest
Syntax error on line 241 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/apache
Hi,
I just have compiled a module for my webserver, added it to
httpd.conf, but apache gives me an error when i try to start it:
[EMAIL PROTECTED]:/var/www/html/laget/servlet# apachectl configtest
Syntax error on line 241 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/apache/php_mapscript.so
-openssl=/usr/local/' '--enable-dba=shared' '--with-db4'
> > '--disable-eapi' '--with-xsl' '--enable-memory-limit'
> > '--with-libxml-dir=/usr/local/lib/'
> >
> > make ends with
> >
> > collec
27;--enable-dba=shared' '--with-db4'
> '--disable-eapi' '--with-xsl' '--enable-memory-limit'
> '--with-libxml-dir=/usr/local/lib/'
>
> make ends with
>
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
&g
Thanks,
I've subscribed to and posted to the instalation list. I'm going to
try and stay off internals@ if I have a choice.
thanks
paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
#x27; '--with-curl'
> '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4'
> '--disable-eapi' '--with-xsl' '--enable-memory-limit'
> '--with-libxml-dir=/usr/local/lib/'
>
> make ends with
>
;--with-db4'
'--disable-eapi' '--with-xsl' '--enable-memory-limit'
'--with-libxml-dir=/usr/local/lib/'
make ends with
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
anyone got any ideas, or hints on what information I should be giving
to make diagnosis easier/possible?
thanks
paul
--
Paul Reinheimer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Dec 28, 2005 at 08:33:58AM -0500, Cesar Cruz wrote:
> This error happens in my Web http://www.millonarios.com.co/
>
> Process limit exceeded for uid 10337 [25 >= 24]
>
> as it can be the cause?
This sounds like some sort of OS error, probably due to your uid
not being able to go over
Chuck Anderson wrote:
Ben wrote:
Edward Martin said the following on 11/17/2005 04:27 PM:
"Warning: Cannot modify header information - headers already sent by
(output started at
/usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in
/usr/home/ecmartin/public_html/ethics06/sas.php on
Ben wrote:
Edward Martin said the following on 11/17/2005 04:27 PM:
"Warning: Cannot modify header information - headers already sent by
(output started at
/usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in
/usr/home/ecmartin/public_html/ethics06/sas.php on line 34"
It m
Edward Martin said the following on 11/17/2005 04:27 PM:
"Warning: Cannot modify header information - headers already sent by
(output started at
/usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in
/usr/home/ecmartin/public_html/ethics06/sas.php on line 34"
It means you are trying t
I am new to working with php and I am having trouble trying to figure
out this following "error" message that is displayed when I access a php
file. Can you tell me what this error message means (in plain English)
and what steps I might take to correct it?
"Warning: Cannot modify header informatio
On Tue, Nov 15, 2005 at 09:20:54PM +0100, Age Bosma wrote:
> Hi,
>
> I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error
> "Command failed for target 'ext/xml/xml.lo'" during the make process.
>
> [snip]
> /nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582:
> `XML_
Also check to make sure that its the right php.ini file, I have had a
problem in the past when the installer has put the php.ini file in the
WINDOWS directory and there is an existing one in the PHP directory as
well. I would check phpinfo and see where the php.ini file is
located.
On 11/16/05, R
[snip]
Printing error messages to your output can be disabled with the
"display_errors" directive in your php.ini file. To enable error
printing, the directive should read:
display_errors = On
[/snip]
You are correct sir, it is set to off by default. I will hike over to the
data center and flick
Hi Jay,
Wednesday, November 16, 2005, 4:36:25 PM, you wrote:
> Does anyone know (I have error reporting set so high it would make
> your head swim) why errors wouldn't be output to a browser window
> when they occur? For instance, I typed the following;
Are you 100% Tequila-worm sure you've got
Printing error messages to your output can be disabled with the
"display_errors" directive in your php.ini file. To enable error
printing, the directive should read:
display_errors = On
Cheers,
Dave
Jay Blanchard wrote:
> Hidy-ho good meighbors and neighborettes!
>
> I continue my, as yet unq
Hidy-ho good meighbors and neighborettes!
I continue my, as yet unquenched, fascination with the Windows operating
system[sic].
Does anyone know (I have error reporting set so high it would make your head
swim) why errors wouldn't be output to a browser window when they occur? For
instance, I typ
Hi,
I'm trying to compile php 4.4.1 on Solaris 8 but I'm getting the error
"Command failed for target 'ext/xml/xml.lo'" during the make process.
[snip]
/nfs/dm11-fs22/work/training/dj365/php-4.4.1/ext/xml/xml.c:1582:
`XML_Char' undeclared (first use in this function)
/nfs/dm11-fs22/work/training
On Wed, Nov 09, 2005 at 08:23:04PM -0800, kumar kumar wrote:
> Hi
> i am new to PHP .I am facing some problems .
> Here is the code below
>
> Here the applet will send the files thru http . files
> from 30 bytes to 2 GB.
>
>
>
> $getdata = fopen("php://input", "r");
> ...
>
> while (s
Hi
i am new to PHP .I am facing some problems .
Here is the code below
Here the applet will send the files thru http . files
from 30 bytes to 2 GB.
$val) {
$default=$default.$val;
if(!file_exists($default))
if (!mkdir($default,$dirmode)) {
Hi
i am new to PHP .I am facing some problems .
Here is the code below
Here the applet will send the files thru http . files
from 30 bytes to 2 GB.
$val) {
$default=$default.$val;
if(!file_exists($default))
if (!mkdir($default,$dirmode)) {
Bob Hartung wrote:
Jasper
If if make a file containing only
I get what I expected.
take a good look at where php is reading its ini file from
- it may not be where you expect
If I make a file containing
'void' is not a php keyword. that would give a parse error
{
It wasn't what I was looking for but I enable it:
include_path = ".:/php/includes"
This was commented out. After uncommenting it all works as I expected
except that my syntax in the class was wrong. Now I can at least start
to learn.
Thanks Jasper and Derek - you gave me a shove in the
On Sun, 2005-10-23 at 23:01 -0400, Bob Hartung wrote:
> Jasper & Derek
>
>phpinfo() says:
> configuration file path /etc/php.ini
>
>PHP Core
>DirectiveLocal Value Master Value
>
> display_errorsOff Off
> error_log
Jasper & Derek
phpinfo() says:
configuration file path /etc/php.ini
PHP Core
DirectiveLocal Value Master Value
display_errorsOff Off
error_logno value no value
log errorson
Bob Hartung wrote:
Jasper
If if make a file containing only
I get what I expected.
If I make a file containing
I get NO output or errors in the browser window. If I select "view
source" it returns:
Eh? Anyone with any other ideas
Tnx
Bob Hartung
Jasper Bryant-Greene wrot
On Sun, 2005-10-23 at 21:31 -0400, Bob Hartung wrote:
> Jasper
>If if make a file containing only
> phpinfo() ;
>?>
>I get what I expected.
>
>If I make a file containing
>
> phpinfo() ;
>
> // Now a simple class and a call to the class
> class Simple()
Your erro
Jasper
If if make a file containing only
I get what I expected.
If I make a file containing
I get NO output or errors in the browser window. If I select "view
source" it returns:
Eh? Anyone with any other ideas
Tnx
Bob Hartung
Jasper Bryant-Greene wrote:
http://www.php.ne
On Sun, 2005-10-23 at 17:31 -0400, Bob Hartung wrote:
> Hi all,
>Slowly I'm progressing.
>Now how to turn error reporting on for a test apache server.
>
>I have made the following changes to /etc/php.ini:
>
>error_reporting = E_ALL
>display_errors = On
>error_l
Hi all,
Slowly I'm progressing.
Now how to turn error reporting on for a test apache server.
I have made the following changes to /etc/php.ini:
error_reporting = E_ALL
display_errors = On
error_log = /var/log/php_errors
On errors I still have no in browser display nor
On Thursday 29 September 2005 12:26 pm, Stephen Leaf wrote:
I have figured it out!
My guess couldn't have been more _wrong_.
Here is all you need to recreate the Error.
There is only 1 value that is off.
in the DOMDocument I gave it the wrong encoding type.
uft-8 .. it should read utf-8.
Interesti
On Thursday 29 September 2005 09:37 am, Scott Fletcher wrote:
> It is just that not many work with XML often enough to know well enough how
> to use it. I noticed many folks have different way of using XML that
> doesn't best fit our need.
It is a newer idea of how to do things.
>
> I have this s
It is just that not many work with XML often enough to know well enough how
to use it. I noticed many folks have different way of using XML that
doesn't best fit our need.
I have this same problem as well. So, you're not the only one here as I
have this same problem as well.
"Stephen Leaf" <[EM
On Thursday 29 September 2005 04:20 am, Andy Pieters wrote:
> Hi
>
> > Fatal error: Method Document::__toString() must return a string
> > value in /srv/www/localhost/htdocs/db/index.php on line
> > 140
>
> That's just what it says, check your program flow.
>
> You overrided the tostring function
Hi
> Fatal error: Method Document::__toString() must return a string
> value in /srv/www/localhost/htdocs/db/index.php on line
> 140
That's just what it says, check your program flow.
You overrided the tostring function and somewhere in that new function you
jump out of it because of a flag
Ok how I have things set up is I have a Document Object which when
instantiated creates a root element and adds it to the DOM object.
After that all population of this node is done on the requested page.
When I'm done populating I output my header()'s and then echo my Document
Object. I've overr
If this isn't local webserver, you maybe have a problem with
allow_url_fopen:
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
Or if this is on your local server, you can try this: $fp = fopen("/A.zip",
"r");
Your sincerely
Emil NOVAK, Slovenia, EU
Hi everyone
I`m a phper from chinese, I`v got a problem when opening files. In the web
server there are two files named A.zip and B.zip, when I open them with
"$fp=fopen("http://mysite.com/A.zip","r";);" and
"$fp1=fopen("http://mysite.com/B.zip","r";);", the first file was opened
correctly but
Thanks very much. I had an extra character when I was connecting to the
database. Now everything works!!!
-Original Message-
From: Alan Fullmer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 5:14 PM
To: 'Michal Krezolek'; php-general@lists.php.net
Subject: RE: [
3:05 PM
To: 'Michal Krezolek'; php-general@lists.php.net
Subject: RE: [PHP] error message while mysqling on php
> I have received an error: Warning: mysql_num_rows(): supplied argument is
> not a valid MySQL result resource in /home/www/mksystem.net when trying to
> execute $num
> I have received an error: Warning: mysql_num_rows(): supplied argument is
> not a valid MySQL result resource in /home/www/mksystem.net when trying to
> execute $num = mysql_num_rows($result);
>
> Please go to http://mksystem.net/phpinfo.php and tell me whether it is due
> to the version of php
[snip]
I have received an error: Warning: mysql_num_rows(): supplied argument is
not a valid MySQL result resource in /home/www/mksystem.net when trying to
execute $num = mysql_num_rows($result);
[/snip]
Post a little code and we might be able to help you. It is likely that
$result is not the vari
I have received an error: Warning: mysql_num_rows(): supplied argument is
not a valid MySQL result resource in /home/www/mksystem.net when trying to
execute $num = mysql_num_rows($result);
Please go to http://mksystem.net/phpinfo.php and tell me whether it is due
to the version of php I have on se
Hello Chuck
On 9/9/05, Chuck Brockman <[EMAIL PROTECTED]> wrote:
> What is a good way to capture errors that occur. I've tried the
> following code in development, but it still spits out an error (Parse
> error: syntax error, unexpected '}', expecting ',' or ';' in
> X:\\\.php on line
What is a good way to capture errors that occur. I've tried the
following code in development, but it still spits out an error (Parse
error: syntax error, unexpected '}', expecting ',' or ';' in
X:\\\.php on line 7)
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsub
Jay Blanchard wrote:
[snip]
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
[/snip]
This is a MySQL problem and should be asked on a MySQL list, but having
said th
On Wed, August 24, 2005 11:42 am, George B wrote:
> Column count doesn't match value count at row 1
>
> What does that mean? I have an id auto_increment and it breaks
> everytime
> because of that error. This has never happend before...
If you REALLY don't want to specify all the column names (a
>
> Can you include the SQL statement that is creating the error?
>
> The error basically means you are trying to put more data
> into the dB then
> you have data cells for.
>
> For instance :
>
> Good sql statement:
>
> $sql = "insert into table (name, address, city, state, zip)
> VALUES (
301 - 400 of 1149 matches
Mail list logo