On Thu, 2005-11-03 at 20:58 -0800, bruce wrote:
> ok..
>
> show us the connection code you're using to access the db..
I think you're on the wrong track. The connection code is known good
because it works in CLI mode.
What I would like to see is any notable differences between the output
of phpi
> UTF-8. In the MySQL-Table the text gets
> converted to something like "Га" as an ASCII text.
>
where did you see this, phpmyadmin or mysql cli ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 03 Nov 2005 13:14:48 -0800, Philip Hallstrom wrote:
> ...
>
> Anyway, on FreeBSD 5.4 running CLI PHP 5.0.5 with your previously sent
> script I get output of:
>
> 10240
> 10240
>
> anyway, thought that might be helpful...
> ...
>
>>> The output is:
>>> 10240
>>> 6144
>>> which ma
ok..
show us the connection code you're using to access the db..
-bruce
-Original Message-
From: Robbert van Andel [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 03, 2005 8:37 PM
To: [EMAIL PROTECTED]; 'David Tulloh'
Cc: php-general@lists.php.net
Subject: RE: [PHP] PHP from the comm
>From the web, all I get is that the connection failed. Nothing more useful
than that. PHP_INFO tells me that it sees the MS SQL ini file and the MS
SQL configuration settings are displayed further down the list.
The username and password work in the script because I am able to connect
using the
what's the error that you're getting from the web php app...
also, what do you get from the php_info() for the web app? this tells you a
great deal of information regarding your php/web setup (if you didn't
already know!)
get us the information and we can help track down your issue...
also, is t
Many linux distributions use a different php config file for the apache
and cli versions.
Using two different configurations might explain the problems you are
seeing.
David
Robbert van Andel wrote:
I run a linux webserver with Apache and PHP5. Does anyone out there know
why a php script wo
just to add my 0.02 worth to this conversation
after throwing things at the wall regarding email verification/validation, i
finally decided to cheat. i went with using the perl/cpan email function
(can't recall right now) and created a wrapper around it. the perl function
has been around alot
Hi,
Just a quick question. Had a conversation with a person who works for a
non-profit, and she was describing some of her dealings with obtaining
grants for the development of 'open source' apps.Got me to thinking. If a
company sponsored the initial development of an 'open source' kind of app
(th
hi...
a rather basic question. i'm looking for examples of client/server apps. i'm
also looking for input as to what's the best way to implement the underlying
messaging protocols. i've started looking at soap/rpc, but i'm not sure as
to how these protocols would fit/work..
the client/server apps
> if (isset($_POST['submit'])) //If you push the submit-button
Maybe the user pressed ENTER instead of clicking the button.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/4/05, Unknown Unknown <[EMAIL PROTECTED]> wrote:
> Hi everyone, i have some code that proccesses a login form. i have an object
> $DB which works only in SOME areas, this is the code:
>
[...]
> $DB="membersp";
> $SQL="SELECT ID FROM membersonline WHERE ID='$ID' ";
> $DB->Query($SQL);
[...]
>
On Thu, 2005-11-03 at 18:37 -0500, Unknown Unknown wrote:
> Hi everyone, i have some code that proccesses a login form. i have an object
> $DB which works only in SOME areas, this is the code:
>
> require_once("Include.php");
> global $DB;
There is no need to global $DB here. You are already in
Hi everyone, i have some code that proccesses a login form. i have an object
$DB which works only in SOME areas, this is the code:
Query($SQL);
$UserInfo=$DB->QueryInfo("Array");
if($UserInfo==0) $Login="FALSE";
else $Login="TRUE";
//Make Sure the user is not a duplicate user trying to log in agai
If you mean entering code directly onto the command line then you dont
need the opening/closing PHP tags,
use something like...
php -r "echo 'hello world';"
matt VanDeWalle wrote:
hello all,
I have just installed php-4.4.0 on my windows xp system and added the
directory to the path c:/p
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an
error in the log file, which will perhaps help trace the issue:
cat: stdout: Broken pipe
Could be wrong, but I think you're getting that error because you are
closing $pipes[0] which well, closes the pipe and result
hello all,
I have just installed php-4.4.0 on my windows xp system and added the
directory to the path c:/php-4.4.0-Win32 but I am having problems with the
cli version of php. I can get into the program but after i type a bit of
code, I try the following keys to get output but it never parses
twistednetadmin wrote:
I have made this script to upload pictures into a picturegallery on a
website.
The script works just as I expected, but with one huge flaw. It doesn't work
from every users computer.
I can upload pictures with no problem, but another user get's an
errormessage. the other
Have you tried feeding that through htmlentities()?
e.g. echo htmlentities("Га");
see if that outputs what you want on the page.
-Mk
Andreas Jakl wrote:
I've been searching for quite some time now and tried several functions,
but didn't find a solution. I hope somebody can point me in the r
freudian slip in the subject me thinks.
Anders Gjermshus wrote:
I have I strange problem /bug in my function and I hoping someone can tell
me whats wrong.
This function return the timestamp for midnight Monday on the given week
number.
Its working fine, but on week 44 and week 45 it misses wit
I've been searching for quite some time now and tried several functions,
but didn't find a solution. I hope somebody can point me in the right
direction.
The problem:
Russian text is entered through a web form. It's a rather badly
administrated external webserver with old versions of everything,
As I'm not the serveradmin I have only checked the phpinfo wich says:
mysql.connect_timeout60
default_socket_timeout60
Keep-Alive 300
HTTP_KEEP_ALIVE 300
Timeouts Connection: 300 - Keep-Alive: 15
Wich of these I should work out from and what they all have to say, I'm not
sure of though since
I have I strange problem /bug in my function and I hoping someone can tell
me whats wrong.
This function return the timestamp for midnight Monday on the given week
number.
Its working fine, but on week 44 and week 45 it misses with 3600 seconds (1
hour)
I wounder if it's a bug in strtotime() or
twistednetadmin wrote:
I have made this script to upload pictures into a picturegallery on a
website.
The script works just as I expected, but with one huge flaw. It doesn't work
from every users computer.
I can upload pictures with no problem, but another user get's an
errormessage.
Should
Jesse Guardiani wingnet.net> writes:
>
> James Benson jamesbenson.co.uk> writes:
>
> >
> > Could it be you have two differnt domain names, PHP could be using a
> > different cookie/session for each one.
>
> Yeah, but I'm setting the session_id manually. I've checked my session
> storage pa
James Benson jamesbenson.co.uk> writes:
>
> Could it be you have two differnt domain names, PHP could be using a
> different cookie/session for each one.
Yeah, but I'm setting the session_id manually. I've checked my session
storage path and only one file is created with that session id. Woul
[snip]
The timeout part I have to check before I answer to, but I have 4mb
connection and the last user it failed for has a 2mb connection. 300kb
shouldn't make the script time out? Or could it? Where do I check the
timeout settings btw? PHP.ini?
Or can I run phpinfo() on it?
[/snip]
Check your ph
The errormessage is from this part of the script.
echo "Result:\n";
echo "Now that didn't seem to work... \n
Did you try a wrong format or size? \n
File that failed--> (".$_FILES['guildimage']['name '].")";
So it seems that the file is wrong type or size, but as it works with the
same picture fro
Hi twistednetadmin,
Thursday, November 3, 2005, 4:50:33 PM, you wrote:
> I have made this script to upload pictures into a picturegallery on a
> website.
> The script works just as I expected, but with one huge flaw. It doesn't work
> from every users computer.
> I can upload pictures with no pro
[snip]
I have made this script to upload pictures into a picturegallery on a
website.
The script works just as I expected, but with one huge flaw. It doesn't work
from every users computer.
I can upload pictures with no problem, but another user get's an
errormessage. the other user emailed the pic
I have made this script to upload pictures into a picturegallery on a
website.
The script works just as I expected, but with one huge flaw. It doesn't work
from every users computer.
I can upload pictures with no problem, but another user get's an
errormessage. the other user emailed the picture to
Could it be you have two differnt domain names, PHP could be using a
different cookie/session for each one.
Jesse Guardiani wrote:
Hello,
I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat Enterprise
Linux ES release 3 (Taroon Update 4). Here is my Session section of php.ini:
Well, I don't know why it didn't work on my test server, but when I
installed the RPMs on my live server (I know, not the smartest thing to
do, but I was desperate), the connection worked like a charm. Thanks to
everyone who gave me some of their time.
Robbert
[EMAIL PROTECTED] wrote on 11/03/2
Try asking in a newsgroup or forum specific to javascript, that has
nothing to do with PHP
Adele Botes wrote:
I have 2 tables:
products table
product_id (INT 11 AUTOINCRE PRI)
product_name (VARCHAR 255)
product_desc (VARCHAR 255)
color table
color_id (INT 11 AUTOINCRE PRI)
color (VARCHAR
Yes, it was as the apache user. Sorry I failed to mention that.
Rick Emery <[EMAIL PROTECTED]> wrote on 11/03/2005, 04:43:03 PM:
> Quoting [EMAIL PROTECTED]:
>
> >
> > An interesting development. I found some reference to running my PHP
> > script from the command line to take Apache out of th
Quoting [EMAIL PROTECTED]:
An interesting development. I found some reference to running my PHP
script from the command line to take Apache out of the picture. Lo and
behold, the script worked. I was able to connect to the server. So the
issue seems to be related with Apache. Any idea what
Quoting [EMAIL PROTECTED]:
Thanks for your help. I'd love to hear if you have any success with the
RPMs.
Unfortunately (?) everything worked for me out-of-the-box. On a fresh
FC4 box, I installed httpd and php, then downloaded and installed the
freetds and php-mssql rpms. I copied an appli
Sorry, I failed to mention that I ran the command line script as the
apache user.
Robbert
[EMAIL PROTECTED] wrote on 11/03/2005, 04:25:40
PM:
> the most obvious is db permissions -- but you should be able to get php
> to report a decent error so you know more precisely what the issue is.
>
> fo
You only need one "if". The parenthesis will evaluation order.
if( ( !empty( $var1 ) || ( !empty( $var2 ) && !empty( $var3 ) ) ||
$var1 == "something" )
On Nov 3, 2005, at 10:13 AM, Jason Gerfen wrote:
I am trying to determine if it is worth my time to attempt a if
statement similar to t
I am trying to determine if it is worth my time to attempt a if
statement similar to the following. I am asking because I have not
found any references to something like this:
if( ( !empty( $var1 ) ) || ( if( !empty( $var2 ) ) && ( !empty( $var3 )
) ) || ( $var1 == "something" ) ) {
// do so
Hello,
I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat Enterprise
Linux ES release 3 (Taroon Update 4). Here is my Session section of php.ini:
--
[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_star
I run a linux webserver with Apache and PHP5. Does anyone out there know
why a php script would work from the command line but fail when running it
through a web browser? In particular, I'm trying to get a connection to an
MSSQL server but PHP fails to connect when I run the script with a web
bro
I have 2 tables:
products table
product_id (INT 11 AUTOINCRE PRI)
product_name (VARCHAR 255)
product_desc (VARCHAR 255)
color table
color_id (INT 11 AUTOINCRE PRI)
color (VARCHAR 255)
image (VARCHAR 255)
product_id (INT 11)
I would like to create the first select box (pulling the options from
Yes there somehow seems to be an issue with ssl. Does the curl
extension rely on any ssl module in apache to work ?
On 04/11/2005, at 12:34 AM, Jochem Maas wrote:
can you get it to work without SSL?
Dan Rossi wrote:
Here is my code i am using, ive tried and tried, im still getting a
no data
Dear group, can someone suggest the best way to do the following without
writing some lengthy script that (possibly) could lead to performance
issues,
I have three DB fields in MySQL, each has a unique ID, I cannot think of
any ways other than pulling each tables record then looping through t
On 3 Nov 2005, at 14:16, Richard Heyes wrote:
It even has a method specifically for "normal" email addresses of
the form [EMAIL PROTECTED]
Ah, well, that's good news. It's been a while since I looked at it.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROT
seems that `DomDocument->createTextNode()' accepts only utf-8 string,
try encode the text before pass it to that function.
in browser side, you can view document property,
browser generally allow you to specify any encoding used to view a
page, try get familar with you browser first.
On 11/3/05,
Marcus Bointon wrote:
The PEAR rfc822 class is pretty good, but it should be noted it's
designed for parsing entire to, cc, bcc fields which may contain
multiple addresses, and it's not quite as simple as asking it 'is this
address ok'.
News to me...
if (!PEAR::isError(Mail_RFC822::parseA
can you get it to work without SSL?
Dan Rossi wrote:
Here is my code i am using, ive tried and tried, im still getting a no
data sent error in the browser.
https://mydomain/Default.asmx";);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($c
Here is my code i am using, ive tried and tried, im still getting a no
data sent error in the browser.
https://mydomain/Default.asmx";);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOP
On 3 Nov 2005, at 04:32, viraj wrote:
does PHP really needs a function to validate an email address!! i
doubt. because PHP is a language which provides number of string
functions with regex capabilities to develop what ever pattern
matching you want.
Writing a regex for RFC2822 is not easy - t
4 things you need to look into:
1. is_file() and is_readable()
2. $argv (contains what was passed along with the cmdline)
3. __autoload()
4. include_path (.ini setting)
I trust that you capable of STFW and RTFM well enough to
take those 4 and make a start at creating something that resembles
'cl
Manish Marathe wrote:
On 11/2/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
Manish Marathe wrote:
Sorry for spamming but I didn't mean to reply you privately :(
I did it myself by accident 2 minutes ago :-)
no probs.
Thanks
I am sorry if I have hurted anyone's feelings here but by fooli
STFW
>-Original Message-
>From: Unknown Unknown [mailto:[EMAIL PROTECTED]
>Sent: 03 November 2005 00:05
>To: Jasper Bryant-Greene
>Cc: php-general@lists.php.net
>Subject: Re: [PHP] Classes and Functions
>
>
>Oh thanks again
>and what does RTFM mean?
>
>
*
Manish Marathe wrote:
On 11/2/05, bala chandar <[EMAIL PROTECTED]> wrote:
Hi,
On 11/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Dear all:
whitch class can I read EXCEL .xls file
I want to read data from a excel's .xls file on Linux use php,please
tell
me way.
There is a phpexce
Curt Zirzow wrote:
On Wed, 02 Nov 2005 21:19:24 +0100, Jochem Maas wrote:
I totally agree with Richard. about the need for a php func for checking a
correct email addr.
given that php 'is all about the web', idealogically (still?) pragmatic
and dynamically typed:
is_email_addr() or is_email(
Just a standard php 4.3.11 and apache 1.3 ?? It works via php cli
wierdly enough but not the apache module ?
On 03/11/2005, at 7:17 PM, Jochem Maas wrote:
Dan Rossi wrote:
Hi there, I am trying to test out the new installed curl extension to
connect to a site via ssl and auth basic. However e
Dan Rossi wrote:
Hi there, I am trying to test out the new installed curl extension to
connect to a site via ssl and auth basic. However everytime i try to
connect with the browser , in ie it says cannot find server and in mac
safari is says could not load any data etc. If i run the same script
Robert Cummings wrote:
On Thu, 2005-11-03 at 12:15, Jasper Bryant-Greene wrote:
On Wed, 2005-11-02 at 19:05 -0500, Unknown Unknown wrote:
Oh thanks again
and what does RTFM mean?
Read The [insert your favourite word beginning with F here] Manual.
"Fondu"?? *licks lips*
you missed an '
59 matches
Mail list logo