php-general Digest 19 Dec 2008 12:32:06 - Issue 5854
Topics (messages 284810 through 284825):
Re: utf8 php howto?
284810 by: Daniel Kolbo
284818 by: Per Jessen
SimpleXML - issue with getting data out of the object returned
284811 by: Dan Joseph
284812 by:
At 16:49 18/12/2008, you wrote:
Hi,
I am looking for some method, how to run php cli script on background in
windows. It should be started by windows task manager.
Run php-win.exe rather than php.exe, this will prevent the console
window from opening whilst the task is running.
Schedule as
Daniel Kolbo wrote:
Hello,
I have a text file encoded in utf-8.
i am using fopen/fgets/echo etc..
how do i display these utf8 characters from the file on the web?
header(Content-Type: text/html; charset=utf-8)
readfile(your-utf8-file);
/Per Jessen, Zürich
--
PHP General Mailing
Jason networkad...@emarket2.com píse v diskusním príspevku
news:70.f5.09584.8465b...@pb1.pair.com...
At 16:49 18/12/2008, you wrote:
Hi,
I am looking for some method, how to run php cli script on background in
windows. It should be started by windows task manager.
Run php-win.exe rather than
Hi,
Currently I'm reading below page:
http://www.imagemagick.org/Usage/api/#php
When I tried imagick example of it, php raised error about function :
Imagick::readimage() .
Fatal error: Non-static method Imagick::readimage() cannot be called
statically in
vuthecuong schreef:
Hi,
Currently I'm reading below page:
http://www.imagemagick.org/Usage/api/#php
When I tried imagick example of it, php raised error about function :
Imagick::readimage() .
Fatal error: Non-static method Imagick::readimage() cannot be called
statically in
Hi, Don't know if this is the right group but I am having real problems
trying to connect to my MySQL db with php. I am trying to create a search
form. I can connect and display in my browser a simple call to a db record
but when I try to execute my search script I get a 500 Internal Server
Gary Maddock-Greene wrote:
Hi, Don't know if this is the right group but I am having real problems
trying to connect to my MySQL db with php. I am trying to create a search
form. I can connect and display in my browser a simple call to a db record
but when I try to execute my search script I
2008/12/19 David Robley robl...@aapt.net.au:
Gary Maddock-Greene wrote:
Hi, Don't know if this is the right group but I am having real problems
trying to connect to my MySQL db with php. I am trying to create a search
form. I can connect and display in my browser a simple call to a db record
Richard Heyes wrote:
I have less issues
with Chrome and its beta
Not thrashing my HDD is also kinda basic, but Chrome 0.2 was more than
happy to do that.
Thrashing? That's not a bug... it's a feature and that thrashing was
chrome indexing (read harvesting information) your hard drive.
Thanks David, but my log doesn't tell me anything (I don't think) !! I am
assuming we are referring to the inetpub logs?
-Gary
David Robley robl...@aapt.net.au wrote in message
news:71.4b.09584.6698b...@pb1.pair.com...
Gary Maddock-Greene wrote:
Hi, Don't know if this is the right group
Please include the list when replying.
2008/12/19 G. Maddock-Greene g...@maddock-greene.co.uk:
You may be right Stuart ... I am thinking this too. I can access my database
with an auto generated call using say Dreamweaver, but my hand code is
throwing the error ... though I cannot see why!!
Thanks Stuart,
Logs are no enabled and I generate this line:
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
time-taken
Sorry this is only my 2nd day with php/MySQL and I really need to get this
2008/12/19 Gary Maddock-Greene g...@maddock-greene.co.uk:
Thanks Stuart,
Logs are no enabled and I generate this line:
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
time-taken
Sorry this is only my
Ok error log reads:
[19-Dec-2008 13:31:08] PHP Parse error: parse error in
C:\inetpub\wwwroot\search\search.php on line 20
Sorry didn't try your suggestion php -1 ... not sure how to!!
Stuart stut...@gmail.com wrote in message
$sql_query = mysql_query(SELECT * FROM products WHERE
MATCH(product_name,product_image) AGAINST('$search_term'));
// This is line 20 where I am getting the parse error
many mathces (too many matches cause returning of 0 results)
if($results = mysql_num_rows($sql_query) != 0)
Stuart
2008/12/19 Gary Maddock-Greene g...@maddock-greene.co.uk:
Ok error log reads:
[19-Dec-2008 13:31:08] PHP Parse error: parse error in
C:\inetpub\wwwroot\search\search.php on line 20
So that's what your problem is. Go look at line 20 - there's a syntax
error on it.
Sorry didn't try your
2008/12/19 Gary Maddock-Greene g...@maddock-greene.co.uk:
$sql_query = mysql_query(SELECT * FROM products WHERE
MATCH(product_name,product_image) AGAINST('$search_term'));
// This is line 20 where I am getting the parse error
many mathces (too many matches cause returning of 0 results)
That
Yes .. thanks Stuart. If I comment out that line I now get a different
problem!!
Unable to connect to database.
One step closer!!!
Stuart stut...@gmail.com wrote in message
news:a5f019de0812190556g611cd672k25a30b77d02ad...@mail.gmail.com...
2008/12/19 Gary Maddock-Greene
Stuart you have been very helpful thank you. I have learnt a number of
valuable lessons this afternoon.
- Gary
Gary Maddock-Greene g...@maddock-greene.co.uk wrote in message
news:a4.34.09584.e39ab...@pb1.pair.com...
Yes .. thanks Stuart. If I comment out that line I now get a different
For IE, you also want to add the META tags for HTTP-EQUIV for you charset.
In some circumstances, with mixed charsets on a page, and with IE in quirks
mode, IE will try to guess the charset and get it (very) wrong.
You really do want a DOCTYPE and a document that validates if at all
c...@l-i-e.com wrote:
In some circumstances, with mixed charsets on a page, and with IE
in quirks mode, IE will try to guess the charset and get it (very)
wrong.
A single page or response can only have one characterset, there is no
mixing possible.
/Per Jessen, Zürich
--
PHP General
In some circumstances, with mixed charsets on a page, and with IE in
quirks mode, IE will try to guess the charset and get it (very)
wrong.
A single page or response can only have one characterset, there is no
mixing possible.
Allow me to re-explain.
Step 1.
Generate HTTP
Sorry didn't try your suggestion php -1 ... not sure how to!!
Open up MS-DOS prompt.
Figure out where your php.exe lives.
Let's pretend it's in C:\\php5\php.exe
cd to the directory where your script lives.
cd C:\\inetpub\wwwroot\search
C:\\php5\php.exe -l search.php
After
Gary Maddock-Greene wrote:
Yes .. thanks Stuart. If I comment out that line I now get a different
problem!!
Unable to connect to database.
One step closer!!!
Well, now take and place a simple or die(mysql_error()); after your
mysql_connect() call
$rh = mysql_connect() or
Mark Weaver wrote:
Richard Heyes wrote:
I have less issues
with Chrome and its beta
Not thrashing my HDD is also kinda basic, but Chrome 0.2 was more than
happy to do that.
Thrashing? That's not a bug... it's a feature and that thrashing was
chrome indexing (read harvesting information)
So, I have this code in a php file called testing.php:
$incl = '/webs/www.zootboy.com/sl/sql.inc';
if(!is_readable($incl)) die('ERROR: MySQL Include file does not
exist??!?');
require $incl or die('MySQL page not found. Unable to continue.');
When I run the code in command line, it outputs
No. The file is called testing.php and it is trying to include sql.inc
On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade zootboys...@gmail.comwrote:
So, I have this code in a php file called testing.php:
$incl =
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is trying to include sql.inc
On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade
zootboys...@gmail.comwrote:
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is trying to include sql.inc
On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry k...@kyleterry.com wrote:
On Fri,
sean greenslade zootboys...@gmail.com wrote:
On Fri, Dec 19, 2008 at 12:43 PM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is trying to include sql.inc
On Fri, Dec 19, 2008 at 12:36
Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is trying to include sql.inc
On Fri, Dec 19, 2008 at 12:36 PM, Kyle
On Fri, Dec 19, 2008 at 12:50 PM, Wolf lonew...@nc.rr.com wrote:
Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is
On Fri, Dec 19, 2008 at 9:50 AM, Wolf lonew...@nc.rr.com wrote:
Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade zootboys...@gmail.com wrote:
No. The file is called testing.php and it is
On Fri, Dec 19, 2008 at 12:55 PM, Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:50 AM, Wolf lonew...@nc.rr.com wrote:
Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote:
Bottom Post
sean greenslade
So, I have this code in a php file called testing.php:
$incl = '/webs/www.zootboy.com/sl/sql.inc';
if(!is_readable($incl)) die('ERROR: MySQL Include file does not
exist??!?');
require $incl or die('MySQL page not found. Unable to continue.');
When I run the code in command line, it
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org wrote:
So, I have this code in a php file called testing.php:
$incl = '/webs/www.zootboy.com/sl/sql.inc';
if(!is_readable($incl)) die('ERROR: MySQL Include file does not
exist??!?');
require $incl or die('MySQL page
On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade zootboys...@gmail.comwrote:
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org
wrote:
So, I have this code in a php file called testing.php:
$incl = '/webs/www.zootboy.com/sl/sql.inc';
if(!is_readable($incl))
On Fri, Dec 19, 2008 at 1:11 PM, Kyle Terry k...@kyleterry.com wrote:
On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade
zootboys...@gmail.comwrote:
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org
wrote:
So, I have this code in a php file called testing.php:
This is why I removed it from my system.
FWIW, it doesn't do it now. I still by far prefer Firefox. If
anything, it's because of Firebug.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated December 5th)
--
PHP General Mailing List
hi,
I have to build a little search form.
a visitor enters his/her personal and work data (first name, last name,
email, org. name, phones (home phone, work phone, cell) home address,
work address) using a form, and then administrator has to compare these
data with existing data in database
On Fri, Dec 19, 2008 at 7:01 AM, c...@l-i-e.com wrote:
For IE, you also want to add the META tags for HTTP-EQUIV for you charset.
This has been the most reliable, as long as you're presenting HTML,
this is all I ever put in a page. No header() or anything.
Only way to use UTF-8 is to have
On Fri, Dec 19, 2008 at 11:48 AM, Jim Lucas li...@cmsws.com wrote:
Gary Maddock-Greene wrote:
Yes .. thanks Stuart. If I comment out that line I now get a different
problem!!
Unable to connect to database.
One step closer!!!
Well, now take and place a simple or
select
first_name like '%$first_name%'
+ 3 * last_name like '%$last_name%'
+ 7 * email = '$email'
as score,
first_name, last_name, email, person_id
from person
.
.
.
order by score desc
limit 10
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi, is it possible to de-bug a 'no input file specified' error. I get the
error when trying to run my search script but do not know whats causing it.
Is it a common error?
PHP5 with MySQL adn IIS7
Thanks
- Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On December 19, 2008 17:20:32 Gary Maddock-Greene wrote:
Hi, is it possible to de-bug a 'no input file specified' error. I get the
error when trying to run my search script but do not know whats causing it.
Is it a common error?
What code/command/request is causing the error?
PHP5 with
Hi Philip,
Here is my code ...
?php
if (!function_exists(GetSQLValueString)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = ,
$theNotDefinedValue = )
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue =
first off - you must be coming from ASP for that code :P
second - that error is usually due to the SCRIPT_FILENAME being
incorrect. not the code in the script.
On Fri, Dec 19, 2008 at 2:54 PM, Gary Maddock-Greene
g...@maddock-greene.co.uk wrote:
Hi Philip,
Here is my code ...
?php
if
the code was generated by Dreamweaver CS3 .. its php!
How do I check the SCRIPT_FILENAME please?
mike mike...@gmail.com wrote in message
news:bd9320b30812191502t2448ef31xa8ad8758f8638...@mail.gmail.com...
first off - you must be coming from ASP for that code :P
second - that error is
Hi Philip,
Here is my code ...
?php
if (!function_exists(GetSQLValueString)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = ,
$theNotDefinedValue = )
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) :
$theValue;
$theValue =
yeah but it stinks of microsoft/vb/asp :)
i can't really tell you in IIS, but that's the common reason nginx has
a no input file specified - people ask about it all the time.
On Fri, Dec 19, 2008 at 3:15 PM, Gary Maddock-Greene
g...@maddock-greene.co.uk wrote:
the code was generated by
Thanks Philip i am running a search from a form (page 1) querying the
db and returning the result on page 2 (well thats the theory) !
Philip Graham phi...@lightbox.org wrote in message
news:200812191822.58155.phi...@lightbox.org...
Hi Philip,
Here is my code ...
?php
if
Hi Mike ... I think Adobe code does look like VB script actually ... I agree
:)
I wish I knew php better (so I didn't have to rely on crappy Dreamweaver
code), I only started using it today and just want to script a simple search
form on a 5 colomn products table ... not too hard eh?
I have
Hey, I built my own http server, and I'm wanting to add php to it. the
server is in Objective-C.
I know I can use terminal commands to do it, but if I was to do that
how would I get headers and stuff php sends, and how would I send php
HTTP_REMOTE_ADDRESS and stuff like that?
I would prefer
Hey, I built my own http server, and I'm wanting to add php to it. the
server is in Objective-C.
I know I can use terminal commands to do it, but if I was to do that
how would I get headers and stuff php sends, and how would I send php
HTTP_REMOTE_ADDRESS and stuff like that?
I would prefer
Gary Maddock-Greene wrote:
Hi, is it possible to de-bug a 'no input file specified' error. I get
the error when trying to run my search script but do not know whats
causing it. Is it a common error?
PHP5 with MySQL adn IIS7
Thanks
- Gary
make a small php file called info.php with the
Mr. Gecko wrote:
Hey, I built my own http server, and I'm wanting to add php to it. the
server is in Objective-C.
I know I can use terminal commands to do it, but if I was to do that how
would I get headers and stuff php sends, and how would I send php
HTTP_REMOTE_ADDRESS and stuff like that?
Gary Maddock-Greene wrote:
Hi, is it possible to de-bug a 'no input file specified' error. I get
the error when trying to run my search script but do not know whats
causing it. Is it a common error?
PHP5 with MySQL adn IIS7
Thanks
- Gary
.. just did some more reading.. are you running php
On Fri, Dec 19, 2008 at 5:58 PM, Mr. Gecko grmrge...@gmail.com wrote:
Hey, I built my own http server, and I'm wanting to add php to it. the
server is in Objective-C.
I know I can use terminal commands to do it, but if I was to do that how
would I get headers and stuff php sends, and how
Also could look at using fastcgi and would not have to embed libphp
and such.
On Dec 19, 2008, at 9:58 PM, Nathan Nobbe quickshif...@gmail.com
wrote:
On Fri, Dec 19, 2008 at 5:58 PM, Mr. Gecko grmrge...@gmail.com
wrote:
Hey, I built my own http server, and I'm wanting to add php to it.
On Fri, Dec 19, 2008 at 11:14 PM, mike mike...@gmail.com wrote:
Also could look at using fastcgi and would not have to embed libphp and
such.
actually, i think thats how lighttpd does it ;)
-nathan
Yep Nginx, lighttpd, Zeus it's the only way. Apache has the option
and I think a lot of people recommend it for various reasons.
I'd recommend nginx over lighttpd :)
On Dec 19, 2008, at 10:15 PM, Nathan Nobbe quickshif...@gmail.com
wrote:
On Fri, Dec 19, 2008 at 11:14 PM, mike
62 matches
Mail list logo