I bet you are double-escaping it. Try without the AddSlashes() call. By
default PHP will escape this for you automatically.
-Rasmus
On Thu, 20 Jun 2002, David McInnis wrote:
> After posting this on the MySQL list and getting some feedback we were
> able to determine that this was not a flaw w
This is where we find several problems. The first one, is the price for
such equipment here in Argentina (more than double in US Dollars), which
is the main reason we try to get around with software.
The second issue, is that the local DB may have to work synchronized
with an on-line one in the n
Hi,
How can I connect PHP application on Linux to the Sybase database which is lying on
the different machine.
Please help me.
Regards,
Vivek
why don't you do a quick fix and just add addslashes again if obviously
there is no escap slash present right now?
Good luck,
Andy
--
http://www.globosapiens.net
Global Travellers Network!
"David McInnis" <[EMAIL PROTECTED]> schrieb im New
But i want to show my own message to the user for
this error .
http://www.globosapiens.net
Global Travellers Network!
"Jack" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all
> i made a Registration Form for user to input their Data, but i also
After posting this on the MySQL list and getting some feedback we were
able to determine that this was not a flaw with MySQL. Any ideas from
the PHP community?
===
Can anyone tell me why this does not work? I am using php and mysql.
When I do an insert from select into a mysql table I get
I have capture serial port (pabx phone) ,and get the file dat like in
attachement.
So iwant make some page for read that conten in the file I just take
some part like this
1.date
2.extension
3.long
4.number
Exsample :
17/06/02 07:27:3008 00:00:59 437 2034224
16/06/02 08:11:2506
I think you're confused. the only WinGate I know of is an alternative
to windows' internet connection sharing. It's not a web server.
and what's a T connection?
On Thu, 20 Jun 2002 19:26:37 -0300, César Aracena wrote:
>Hello all,
>
>I have this client who has a T connection and would like to run
what about doing a "select count(*) from table where username = 'foobar'"
then, if ($cnt > 0) { /* display error */ } else { /* insert new username */
}
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 2:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[
Dear all
i made a Registration Form for user to input their Data, but i also had some
Field Check before the data can be insert to the Mysql_Database!
I had a question here, sometime the mysql shows the error :
"Duplicate Key for xxx"
I know what is this about, reguarding to my Registration Form,
All:
None of the many online user posts in setting up Java connectivity from
within PHP have worked. RPM or tarball.
Do you know of anyone who has an RPM of PHP, with the standard MySQL,
GD, Postgres, WDDX, etc...but also libphp_java.so correctly set-up?
The Windows PHP has Java support right
> i want read how caracter from onepage like this
>
> asasassasa
> sasassasa
> sasasassas
> sasassasasa
> sasasassasa
Yes, I want to one give you answer like this, okay? Thanks, no.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1. the problems of licensing, copyright, people who don't pay, etc etc could
all be handled with a decent license agreement/contract and a lawyer to
follow up any possible bad apples.
2. usually people connect to MySQL as "localhost", but you can connect to
the server remotely IF the server allow
Ed,
Read the rest of the email. The problem WASN'T to do with what CLIENT was
reading the page at the time, it was to do with what SERVER was running the
PHP code.
Saving his text files onto the Mac, and then trying to run them produced
"Error on line 1", whilst saving and running the code on W
When users have to enter dates on my forms, I always provide them with three
drop-down menus, for day (1-31), Month (1-12) and year (usually current
year, the next and the next, depending on the application).
Then I have three values on the next page ($_POST['day'], $_POST['month'],
$_POST['year'
Hi, sorry if this is one of those oft-answered questions, but...
I am using the script below to upload a file to the server, however if I
upload a file, say, 'pamnude.jpg' then the tmp path, file name and file size
are returned but not the mimetype. Why could this be?
Also, I read about there be
sorry... (4FFF | 4) is returning 4
-Original Message-
From: Frank S. Kicenko
Sent: Thursday, June 20, 2002 7:34 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: RE: [PHP] Hex operations
I think the goofy variable is getting truncated
(3FFF | 4) is returning 7
(4FFF | 4) is return
I think the goofy variable is getting truncated
(3FFF | 4) is returning 7
(4FFF | 4) is returning 8
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 6:37 PM
To: Frank S. Kicenko; [EMAIL PROTECTED]
Subject: RE: [PHP] Hex operations
loo
> Okay, let's say I want to send a user to a certain webpage...
>
> usually I would use...
>
> include("website.php");
>
> but, if i want to send a user to a website along with a
> variable like...
>
> $temp = "website.php?var=".$var;
> include($temp);
>
> ...this doesn't work.
> but, if i want to send a user to a website along
> with a variable like...
>
> $temp = "website.php?var=".$var;
> include($temp);
>
> ...this doesn't work.
Example:
somefile.php now has access to $var. This is
talked about in the manual too:
http://www.php.net/include
In your cas
Try enclosing the function code in brackets:
function Check_Session()
{
code goes here
}
Mick
Quoting Mark Colvin <[EMAIL PROTECTED]>:
> I have the following .php script and .inc file which doesn't work:
>
> = .php file =
>
>// Include function files
> require
use header
ob_start()
$temp = "website.php?var=".$var;
header ("Location: $temp");
Puru
- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 4:31 PM
Subject: [PHP] include() question...
> Okay, let's say I want to send
looks like it's trying to treat $cap1 as a decimal number, and not a hex
number
have a look at this:
for ($cap = 0; $cap < 64; $cap++)
{
$cap1 = dechex($cap);
$bit = ($cap1 | 0x01);
echo "$cap - $cap1 - $bit\n";
}
and you'll see what I mean...
-Original Message-
From: Frank S. Kic
Okay, let's say I want to send a user to a certain webpage...
usually I would use...
include("website.php");
but, if i want to send a user to a website along with a variable like...
$temp = "website.php?var=".$var;
include($temp);
...this doesn't work.
any suggestions??
THANKS!!
U... Does anybody know why this doesn't work...
Example:
$cap = 16383;
$cap1 = dechex($cap);
// cap1 is now equal to 3FFF;
$bit = ($cap1 | 0x01);
//bit should equal 3FFF, but it doesn't.. it is always = 3 !!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
For the first question: Will this work?
In class A, you wont get anything when you use $this->bar if the class
hasn't been instantiated.
besides that fact, you'll should get the output of:
settig:bar+foo
if you call A::foo();
As for the second question: How many times A will be made
answer: zero
Sorry Chris,
It's set at June 20th here? Maybe my NNTP server?
John
Chris Garaffa wrote:
> Hello,
> any chance you could set your clock to the correct date? It says July 6,
> and is really screwing up my sorting order for mail... thanks
>
> On Saturday, July 6, 2002, at 04:49 PM, jtjohnston.
Hello,
any chance you could set your clock to the correct date? It says July 6,
and is really screwing up my sorting order for mail... thanks
On Saturday, July 6, 2002, at 04:49 PM, jtjohnston
--
Chris Garaffa
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To un
Hello all,
I have this client who has a T connection and would like to run a PHP /
MySQL based program in local mode, but also be able to make the data
available from the web but hosted in a remote server
kinda strange u
think? Me too
The problem is that his server doesnt run with IIS but
wit
It took me a few minutes to figure out where the /profiles link was on your
hompage. You understand that the only way a spider can read the content on
your webpage is to fopen() and parse the contents. Google's software cannot
"explore" your dynamic content like a human can. If the random profi
Hi Christopher,
I think that we have the same configuration. I'm running PHP with the SAMBAR server as
well and the JP Graph module is working OK with me so it should be working.
Have you tried the JP Graph - testsuit : On my notebook ( W2K ) I installed it at
http://localhost/jpgraph-1.6.1/src
Hi!
Thursday, June 20, 2002, 10:56:40 PM, you wrote:
PS> Is there any way to determine script's memory usage?
When you configure and compile you have some option
--with-memory-limit something like that and then add
\"%{mod_php_memory_usage}n\"
in you http.conf of Apache where you define how
> Is there any way to determine script's memory usage?
Depends on your web server. There is a way in apache. Rasmus answered this
same question for me a couple weeks ago, look through the archives. I saw an
option in IIS to put memory usage into the logs, that may work, too.
> What about executi
> user input, which is not always reliable, has to be in the correct
format.
What I've done for things like this is to have three separate select
form elements. The first for selecting a day of the month. The second
for selecting a month and the third for selecting a year. I usually set
the
Hi,
Is there any way to determine script's memory usage?
What about execution time in ms (with breakpoints)?
And is there way to measure MySQL query speed in ms?
Thanks
Pekka
http://photography-on-the.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Hi guys,
I did recently launch my first web site and I am asking myself why google is
only indexing the first page.
To get a better index on other search engines I am passing parameters a bit
strange and the dynamic pages
look more like static ones. So I hope this was not a shoot in a hole :-(
I
I never saw the original post, but you'll want to use the TO_DAYS() function
in your query.
SELECT TO_DAYS(leave_to) - TO_DAYS(leave_from) AS Num_Days FROM your_table
---John Holmes...
- Original Message -
From: "Lazor, Ed" <[EMAIL PROTECTED]>
To: "'Jack'" <[EMAIL PROTECTED]>; <[EMAIL P
hello Todd,
there is a directive where you can redirect errors to certain pages withhin
the htaccess file.
I do not remember the exact syntax, but it looked like...
ErrorDocument 401 /root/to/your/file.html
Please check the apache docs it this does not work.
Andy
--
Ok, thanks to everyone's help here, I just finished doing a minimalistic
compile of PHP 4.2.1, (removing mysql, posix, session, and xml).
However, I then replace my existing 4.1.2 with it (yeah, I was upgrading
at the same time - If I had to recompile, might as well)
And I was suprised, even a
Good question. Please refer to the RedHat mailing list for assistance.
> -Original Message-
> From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 12:47 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Red Hat & PHP
>
>
> I'm trying to install a PHP server on Li
I'm trying to install a PHP server on Linux Red Hat 7.3
I have a reformatted PC and some burned disks of RH 7.3 that my CD-ROM
won't detect when it reboots.
How do I get RH 7.3 loaded? I've tried using the rawrite.exe function
but it always hangs at a DOS prompt when I run this file.
Thanks
> -Original Message-
> From: Todd Fernandes [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 3:07 PM
> The way I have it working now is that I check to see if
> $PHP_AUTH_USER is
> set, and if it is, I send them to the page that is a
> directory down behind
> the .htaccess fi
On Thu, 2002-06-20 at 11:29, René Fournier wrote:
>
> And this is the trick: Can PHP somehow fetch MySQL data over the
> Internet? Is this possible? If so, is it necessary for me to resort to
> new, unknown technologies like XML or SOAP, or can I do it with PHP
> alone?
>
PHP can fetch (and
Line 706 of php4/main/SAPI.c implements this. Go ahead and submit a patch
and we will consider it.
-Rasmus
On Thu, 20 Jun 2002, Peter Thoenen wrote:
> PHP Manual says there are two special cases for
> headers, Location and Status. Not to concerned about
> status here, but it states that Locat
Here is my question. It involves using PHP and apache's .htaccess files.
What I basically want to know is, how do I redirect a bas user after a
failed Authentication attempt.
Example:
One PHP script checks to see if $PHP_AUTH_USER is set and if not calls
header( sprintf("WWW-authenticate: basic
René,
My 10 cents:
For a monthly fee, host sites and promote your software (and updates) as
part of the service. Or, sell the software and offer upgrades at a price.
This option isn't as attractive though. It's much more expensive upfront
and means the customer will have to deal with managing
On Thursday, June 20, 2002, at 02:41 PM, Chris Sechiatano wrote:
> Just a simple question about the HTTP_POST_VARS. I know my forms will
> work
> if I use only the name of the input. Say a text box called FirstName.
> I
> can just do:
>
> print "$FirstName";
>
> and everything works fine. Wh
Hi,
Just a simple question about the HTTP_POST_VARS. I know my forms will work
if I use only the name of the input. Say a text box called FirstName. I
can just do:
print "$FirstName";
and everything works fine. Why would I want to use
print $HTTP_POST_VARS["FirstName"];
instead?
Thanks
On Thursday, June 20, 2002, at 02:29 PM, René Fournier wrote:
> The idea: In order for Joe User to update text on his web site, he
> comes to my "Europa" web site, enters his company name, user ID,
> password, and clicks Login, and--voilà--he sees a handsome list of
> tables containing the t
Hi Christopher,
it seems to me that you have gd1.8 enabled but jdgraph in you version
requires gd2.
Check your php.ini if the propper library is activated.
Hope this helps,
Andy
--
http://www.globosapiens.net
Global Travellers Network!
"C
Hello Leon,
try array_shift
http://www.php.net/manual/en/function.array-shift.php
Hope this helps,
Andy
--
http://www.globosapiens.net
Global Travellers Network!
"Leon Mergen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTEC
I have a question to which I'm pretty sure the answer will be "no", but
I would like to hope I'm wrong...
I've developed a very simple Content Management tool--called
"Europa"--that even retarded monkeys can use to change/update text in
their web site. It's web-based, user-authenticated (sessi
i am getting the following warning message:
Warning: Unable to open 'none' for reading: No such file or directory in
/z/mercury/www/data/content/admin/do_upload.php on line 40
Hi anil,
it seems to me that you are not getting the filename. Check if the filename
which comes from your form is
PHP Manual says there are two special cases for
headers, Location and Status. Not to concerned about
status here, but it states that Location: always
returns an status code 302. Now HTTP/1.1 depreciates
302 since browsers were incorrectly implementing it
anyways. It was replaces 302 with the MU
One of the guys over on the php-db list told me that to store the binary
string correctly in postrgresql, that I would
have to double quote whats already there.
So in essence, by the time it hits the database, it has to be ->
\\\0PZ\\\0<Îê˜Úµ
Any suggestions to modify the string like this...
M
Foul! Top-post ;)
*gives Ed a noogie*
> Concise is also good ;)
>
> *gives Erik a noogie*
>
> Erik wrote:
> > I was going to stay out of the thread, because people have
> > ways of doing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just escape the \ with a single escape character. eg. your string
'\0PZ\0<Îê˜Úµ' would end up as '\\0PZ\\0<Îê˜Úµ' - each \ simply
escapes the backslash following it. If you add two backslashes, you end
up with one too many which is what the error is referring to.
..micahel..
On Thu, 2002-06
Im trying to move some binary strings from mysql to postgresql,
and the binary strings has escape chars '\' in them.
I was told to double escape them like so -> '\\\'
Here is what Im trying ->
$data = '\0PZ\0<Îê˜Úµ'; // This is a representation from an mysql dump
$data2 = str_replace('/\', '/\
Concise is also good ;)
*gives Erik a noogie*
Erik wrote:
> I was going to stay out of the thread, because people have
> ways of doing
> it that they are set in, but this is really the crux of it --
> allow me
> to extrapolate on what Dan said. Please realize that these
> aren't "fire
>
Be careful not to get confused between a chrooted environment like the
web server or ftp server and php include paths. PHP handles the include
and require parameters either as absolute (eg /inc/filename is an
absolute path from / - it is not relative to the web docroot.) or
relative to the directo
I think there is a way to export the user list in the Exchange Server
Manager into a csv file. It would not be real time, but would get you the
list.
On Thu, 20 Jun 2002, Barajas, Arturo wrote:
> Hi, list.
>
> I'm starting an application, running Apache + PHP + MySQL under WinNT.
>
> I ne
> Most links being passed to clickrate do not have this particular problem.
> Is it a problem if I pass all URL through urldecode, for those cases when I
> need it, i.e. will it mess up a URL that hasn't been encoded with urlencode?
Run a little test script to see for yourself, but I don't beli
Thanks, I knew there was a function I was missing.
Most links being passed to clickrate do not have this particular problem.
Is it a problem if I pass all URL through urldecode, for those cases when I
need it, i.e. will it mess up a URL that hasn't been encoded with urlencode?
Thanks,
-Lisi
Hi, list.
I'm starting an application, running Apache + PHP + MySQL under WinNT.
I need a user database, and all the users are on the Exchange
Server database. Does anyone know how can I read that
database or connect to it?
I'm already running the NTLM module, so I can validate my
users unde
You need to run the link value through urlencode() before you stick it
in the url. When you need to read it as a legal url again, pass it
through urldecode().
..michael..
On Thu, 2002-06-20 at 11:20, Lisi wrote:
> I have the following link in my code:
>
>
>clickrate.php?site=sitename&link=htt
> The problem is that since the link itself has variables being passed,
> action is being passed as a separate variable and the full link is getting
> cut off.
> I tried using htmlspecialchars, and surrounding the link with quotes, but
> nothing worked.
You can try urlencode(). The problem wi
I have the following link in my code:
clickrate.php?site=sitename&link=http://www.clientsite.com/store.php?id=430&action=menu
There are two variables I am trying to pass to clickrate, site and link.
The full link is http://www.clientsite.com/store.php?id=430&action=menu.
The problem is that si
Hey everyone,
I'm getting this error regarding the PHP source files when compiling Apache.
These are the arguments I used to configure php 4.2.1:
./configure --with-apache=../apache_1.3.26 \
--with-jpeg-dir=/usr/local/lib --with-pgsql --with-gd \
--with-ttf=/usr/local/lib --with-t1lib=/usr/loca
> after you read this web page (take you no more than 15 minutes), you
> should consider browsing the actual HTTP spec, though it's pretty
> technical and is very long.
I've html'd the RFC2616 for easier reading and you can find it at
http://www.php-faq.com/httpintro.php
--
PHP General Maili
You need to establish a relation between the two tables to complete the join
with something like:
AND G.GID = U.GID
Also, this is not a PHP related question. You should also be directing this
to the MySQL mailing list.
> -Original Message-
> Im having problem in getting the the
Why would this be the case? PHP is server-side and client independent...
> -Original Message-
> Your problem is undoubtably to do with the difference in line
> endings on
> mac/pc/unix.
>
This message is int
I don't know the complete answer. But, in case it helps, I can tell you
that you'll need to research how to load standard web pages. In other
words, this is a general Javascript / Flash question and PHP doesn't really
play factor into your solution.
> -Original Message-
> how can I call
See these PHP directives:
Directive:Default:
--
magic_quotes_gpc on
magic_quotes_sybase off
If both are enabled, PHP will do what you want.
magic_quotes_gpc is the PHP directive that essentially
runs addslashes() on all your GetPostCookie
Check out the date() and mktime() functions.
> -Original Message-
> Now i want to compare the leave_from and leave_to date to find out the
> number of days between!
>
> What should i do or any function in php can provide this operation?
***
On Thursday, June 20, 2002, at 12:19 PM, James Drabb wrote:
>
> I was wondering if there is a setting to make PHP not change the posted
> data? For
> example I am posting a first and Last name and if I put in O'Hara for
> the last name
> PHP returns O\'Hara. I would prefer getting just O'Ha
> -Original Message-
> From: Mark Colvin [mailto:[EMAIL PROTECTED]]
> Sent: 20 June 2002 16:48
>
> I have the following .php script and .inc file which doesn't work:
> = .inc file =
>
> class Sessions
> {
>
>function Check_Session()
>
> session_start();
>if (!ses
Hey PHPers,
I was wondering if there is a setting to make PHP not change the posted data? For
example I am posting a first and Last name and if I put in O'Hara for the last name
PHP returns O\'Hara. I would prefer getting just O'Hara back and then replacing
the ' with '' myself. I need to be a
Rename php.ini-dist to php.ini and modify it
according to your needs (also read all the
notes contained within).
Regards,
Philip Olson
On Thu, 20 Jun 2002, Anil Garg wrote:
> hi,
>
> how can i change the maximum size of the file being uploaded??
> The line below does not seem to help me:
>
Change upload_max_filesize in php.ini to the value you desire.
--
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
On Thu, 20 Jun 2002 12:12:33 -0400
"Anil Garg" <[EMAIL PROTECTED]> wrote:
> hi,
>
> how can i change the maximum size of the file being uploaded?
hi,
how can i change the maximum size of the file being uploaded??
The line below does not seem to help me:
Do i need to make some more changes??
php ver i am using is mod_php4-4.1.2
I dont have a php.ini file anywhere!! i just have a file php.ini-dist in
/usr/local/etc/ ...but i dont think i
80 matches
Mail list logo