What about:
ENV[USER]
or
ENV[USERNAME]
(see phpinfo())...
Greets,
Edward
- Original Message -
From: Bogdan Stancescu [EMAIL PROTECTED]
To: Martin Towell [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Stewart Gateley [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002
I know I can do this with sessions, reason I am asking is
webserver should not be able to create file (for security reasons),
I would of maybe thought php could create a file as a different user.
php is not always used by the box owner. I find it strange that such a
option
Is only available if
Hello,
I've been trying to figure out how to properly convert a bdf font
into a GD font for use with ImageLoadFont. The conversion goes
without a problem, and I can load and use the font, but for some
reason, all the characters look as though they have a space inserted
between them. So,
Not sure I understand how you concluded that web server should not create
files, it certainly should not be able to create files on client machines
without permission of user (which it cannot do). Users should not be able
to upload files to the server without the permission of the web
I haven't experienced this myself, but I'd have thought that if you're
propagating the session via the URL rather than a cookie then it won't get
added if the page isn't parsed. If it's not passed on just once it's lost.
Tim Ward
Internet chess www.chessish.com http://www.chessish.com
After the loop has finished executing add another line
if ($i % $cols != $cols-1) { print /tr; }
Otherwise once the loop has finished if not EXACLTY $i % $cols == $cols-1
then there would be no /tr after the last row which could cause display
problems in the user agent (other than the fact
try using gd if you have = 1.8.3 then you will have to use ImagePng() and
Content-type: image/png instead of ImageGif() to export the image.
header (Content-type: image/gif);
$im = ImageCreateFromString ($fileContent);
ImageGif ($im);
=S.
On Tue, 26 Feb 2002, Narvaez, Teresa wrote:
Hello,
On Tue, 26 Feb 2002 10:07:55 -0900
Chris Lott [EMAIL PROTECTED] wrote:
It strikes me that my students really don't have a good grasp of what
PHP is capable of doing, since they are getting bogged down in learning
the minutiae of the language itself. So (quickly if possible-- I'd like
to demo
- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: Michele Salerno [EMAIL PROTECTED]; php
[EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 10:38 PM
Subject: Re: [PHP] Help me
Michele,
Please show some lines of code in your next message so we can better
understand your
This is why I love lists. I was going to have to do something similar this
week and was planning on using perl, never thought about running php from
the command line.
Thanks,
=S.
On Wed, 27 Feb 2002, Sven Jacobs wrote:
I've use a script that I put in my cron.weekly to execute a php script
Have you tried any diagnostic to find out what fields are being returned by
the query, something like:
If ($result = mysql_query(show tables))
{ while ($row = mysql_fetch_array($result))
{ foreach($row as $fieldname=$value) echo($fieldname=$valuebr);
}
}
I think you'll find the field
Hy !
Is it possible to compile personnal module in C++ ??
When I use the g++ (C++) compiler, the following message appear in my PHP
page : Invalid library (maybe not a PHP library)
I need to compile my module with a C++ compiler because it use a C++ library
(OmniORB).
Help me :o)
Thanks
- Original Message -
From: Sanj [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 8:54 PM
Subject: [PHP] php on PWS win Me
Hi,
Currently running Win Me with pws, want to run php purely for testing.
Have just installed apace http://127.0.0.1 but need to turn
Well, you probably need to do something like this:
file1.php (where you want to display an image)
img src=getimage.php?fileId=42
end file1
getimage.php (the ? needs to be on the first line in the file)
?
Code to connect and selected DB not included
Hi
I have big problem with headers which I send to www browser: IE 5.5 and
Netscape 6.2. On my web site I have PHP script to download huge text
files to client side. The text file is compressed by gzip program before
it will be downloaded to client. My problem is how to send to www
browser
Chris,
This might be a bit late but a couple of graphioc designers I work with
use a forum on Flash at http://www.were-here.com. The forums themselves,
judging from the filenames, are done with PHP and are quite attractive
in terms of presentation and are clearly well used.
Hope this is of use,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
All of a sudden Apache is nor running correctly under Windows 98.
It appears that somehow localhost was changed from 127.0.0.1 to something else.
Does the fact that I now have a 24/7cable connection to the Net cause the
problem?
Thanks!
Anthony Rodriguez
([EMAIL PROTECTED])
--
PHP
http://www.superpages.com/ -- the US national telephone directory from
Verizon -- appears to use php. The extension is .phtml ...
- Original Message -
From: Chris Lott [EMAIL PROTECTED]
minutiae of the language itself. So (quickly if possible-- I'd like to
demo
some sites tonight)
Hi,
I want to get the calender displayed beside the input box. If user select a
particular date from the calender after selection it should display the date
in the input box along with the time stamp. Any help will be appreciated.
Thanks in advance.
-Balaji-
What is the maximum number of characters a variable of
type string can hold ?? Is there a restriction ??
$x = adfafasfadfaf
what is the max number of characters $x can hold ??
__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every
Greetings,
My SMTP server requests I use a password for every time I send(not IP based). How is
it possible to let PHP to use password authentication when mail is sent.
Thank you,
Svavar Luthersson
Not passing via URL currently... using track_vars
Dave
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 4:16 AM
To: [EMAIL PROTECTED]; Dave
Subject: [PHP] RE: Sessions and switching between php and htm documents
I haven't experienced
Try the php-gtk list. [EMAIL PROTECTED]
I use this list all the time and they are great at answering questions...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 7:38 PM
To: [EMAIL
What exactly are your trying to do. TCP connections use sockets to connect.
Sockets are how you connect...
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
From: Uros Gruber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 1:08 AM
To: [EMAIL PROTECTED]
hy all,
is there an easy way to compile php with all possible extension and
feature options, as far as they don't crash when used together, and,
even better as far as the libs are available on the system?
tia,
henning
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
hy leif
Leif K-Brooks wrote:
I read the tutorial for it on the php-gtk site, but I didn't see a thing
about how to run it?
this is not the list to discuss this, please subscribe to php-gtk-general.
btw, afaik in the introduction part of the manual installation and
tunning are
tested the $HTTP_SESSION_VARS prior to sending, set just fine. changed the next
page to php and tested for the session var... nothing.
[in login.php]
?
session_start();
# database check in here
if(match){
$HTTP_SESSION_VARS[UserID_session]=$txtUserID; #from form field for user
Hi, all!
I try load big extern library. How can I do it : compile with PHP-libraries
or at runtime? What I need to do?
Olga,
olga tonkonog
entwicklung / development
caatoosee search technology gmbh
gropiusstr. 9
d - 31137 hildesheim
fon +49 (0) 5121-99866 16
fax +49 (0) 5121-99866 01
Hey there
I installed the diff patch for 4.0.6 on my source and recompiled it. How can
I be sure the patch has been installed correctly? Anyone that has an exploit
or something I can test against it to see if the hole is closed?
Regards
--
PHP General Mailing List (http://www.php.net/)
To
further to this...
--enable-track-vars --enable-trans-sid are both set in the build...
using mod_php
register globals is on
-Original Message-
From: Dave [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 8:47 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP]
I can't really get you, but I have done similar programs in php/xml
I think if I could see the code or if I know the ultimate goal of you, I
could able to solve the problem.
On Tue, 26 Feb 2002, Tom Holton wrote:
Hello,
I have come across a strange error when using the XML parsing
When you check your info page, do sessions automatically start? If not, make
sure you do a session_start(); in there somewhere before you start checking
things.
Not sure why (lost in the annuls of time) but I always manually start/stop
my sessions.
=C=
*
* Cal Evans
* Journeyman Programmer
*
Sven,
Is it possible to mail files with the mail() commando?
Or can it be done on a other way?
You're talking about 'attachments' aren't you?
Yes it is!
Recommend you visit http://phpguru.org/ and pickup the SMTP and MIME classes there
(including sample code which
shows how to attach files
Hi,
I've got a strange HTML problem... When I have a textarea, and put a large
text in it, the submit button isn't working if the text is very long, but it
is working till a certain amount of characters (didn't check out which
amount)
I can click as many times as i want on the submit
I have the following line of code:
$this-html=$this_html +
tr
td bgcolor=\$type_color\ class=\copy\ width=\10\ -- this line
div align=\center\
...
/td
/tr
;
I get Warning: unexpected character in input '\' (ASCII=92) state=1
And Parse Error in the same line..I am just sitting and looking at
i think you don't understand the problem
it's just a textarea, no php has to do with it:
textarea name='test'/textarea
when i try to FILL it with tekst (so, in my browser) it is working for a
certain amount of characters, but above it, the submit button is clickable,
but doesn't take any
I am running apache and php. I want to create a custom 404 page for my
site. I have created a .htaccess file and ErrorDocument 404 /error.php3
line to it.
If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404
page is displayed without issue.
If someone tries to view
td bgcolor=\$type_color\ class=\copy\ width=\10\
-Original Message-
From: Pax [mailto:[EMAIL PROTECTED]]
Sent: mercredi 27 février 2002 16:47
To: [EMAIL PROTECTED]
Subject: [PHP] I can't find the problem - parsing error
I have the following line of code:
$this-html=$this_html +
tr
Swap round the and \ before the number 10
ie
\10\ should be \10\
HTH,
Richy
==
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]
-Original Message-
From: Pax
Generally more than you'll ever need :-)
About 8 MB by default.
Bogdan
Kancha . wrote:
What is the maximum number of characters a variable of
type string can hold ?? Is there a restriction ??
$x = adfafasfadfaf
what is the max number of characters $x can hold ??
I think, what he's trying to say is check to make sure it's not an errant
quote and not a string length issue. The same behavior may be caused by an
errant quote.
=C=
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Edward van
Hi list,
I have a class to perform my tasks to bd, among than there's this function
function executa($sql=) {
if($sql == ) {
$this-resultado = 0;
$this-numrows = 0;
$this-row = -1;
}
$this-resultado =
I have a column in a database with a column type of string that holds
catalog numbers. They can be in two formats.
1: 410998
2: 555336-18
The 18 in the dash number represents a length. So there could be multiple
entries with the same base, just a different int after the dash.
I am experiencing
Pax,
If the backslashes are to escape the double-quotes then the one after
width is the wrong way around. \10\ I would expect to be \10\
Hope this helps.
Regards
Chris
Pax wrote:
I have the following line of code:
$this-html=$this_html +
tr
td bgcolor=\$type_color\ class=\copy\
with insert, update and delete you must use mysql_affected_rows()
- Original Message -
From: Rodrigo Peres [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 4:58 PM
Subject: [PHP] php mysql_num_rows problem
Hi list,
I have a class to perform my tasks to
with insert, update and delete you must use mysql_affected_rows()
http://www.php.net/manual/en/function.mysql-affected-rows.php
- Original Message -
From: Rodrigo Peres [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 4:58 PM
Subject: [PHP] php
On Thursday 28 February 2002 00:09, Mike Krisher wrote:
I have a column in a database with a column type of string that holds
catalog numbers. They can be in two formats.
1: 410998
2: 555336-18
The 18 in the dash number represents a length. So there could be multiple
entries with the same
I have used phpmailer as my SMTP host also requires authentication. so far
working without a problem.
--
R'twick Niceorgaw
E-Mail: [EMAIL PROTECTED]
--
- Original Message -
From: DL
On Wednesday 27 February 2002 23:44, Edward van Bilderbeek - Bean IT wrote:
i think you don't understand the problem
it's just a textarea, no php has to do with it:
You said it yourself, so what's this doing on a PHP list :)
textarea name='test'/textarea
when i try to FILL it with
Hi,
Did you try http://localhost , instead of 127.0.0.1, or with your
machine, if you have changed any, recently. Or else just check if it
conflicts with the port(s) if you have PWS also installed on your machine.
If you don't get any solutions, alternatively post your query to the
It may be able to store 8MB, but each line can only hold 1024
characters. I ran into this using a string variable to store the message
body of an HTML email. If I did not put a '\n' at the end of each line,
I would get random '!' placed through the sent email.
Steven J. Walker
Walker Effects
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 17:26
It may be able to store 8MB, but each line can only hold 1024
characters. I ran into this using a string variable to store
the message
body of an HTML email. If I did not put a '\n'
Is it possible to run PHP on a Pocket PC?
Thanks CW
Hi there,
I am wondering if it is possible to get the compression rate of a jpeg
file?!
As I did read on php.net creating a jpeg gives you a third parameter with
the compression. Default is 75 %.
So asuming the user has an image compressed with 50 % and he does upload
this picture through my
Hi All,
Slightly difficult question, and I am new to
Windows programming.
Installed Apache, PHP, Office and Adobe Acrobat 5.0
on Win2000 Professional.
By using,
$pdf = new COM(pdfdistiller.pdfdistiller.1);
$pdf-FileToPdf($psfile, , );
I am able to convert PS to PDF.
In
hi,
i'm hoping to find a way to append to the include_path set in my
php.ini file. i've got several virtual servers that each require
different include_paths which are defined using the php_admin_value line
in my apache conf file. Since the documentation says that include_path
is like the
Steven
It may be able to store 8MB, but each line can only hold 1024
characters. I ran into this using a string variable to store the message
body of an HTML email. If I did not put a '\n' at the end of each line,
I would get random '!' placed through the sent email.
Maybe you know more
I've been looking for a WIN CE port of PHP for some time now and haven't
been able to find one, let me know if you find something. There is a version
of ASP for the PocketPC though in case you need an alternative.
__
Mike Krisher
--
PHP General Mailing List
Not really, no.
On Wed, 27 Feb 2002, Henning Sprang wrote:
hy all,
is there an easy way to compile php with all possible extension and
feature options, as far as they don't crash when used together, and,
even better as far as the libs are available on the system?
tia,
henning
--
PHP
On Thursday 28 February 2002 01:50, darcy w. christ wrote:
hi,
i'm hoping to find a way to append to the include_path set in my
php.ini file. i've got several virtual servers that each require
different include_paths which are defined using the php_admin_value line
in my apache conf
I have form I am working with and trying to add some PHP processing to the
form's contents.
The form is a html template used by a CGI script.
So, instead of having a 'submit' button for the form's content, there is a
GIF. The CGI apparently reads the GIF as a button to submit the form's
I've written webpages that were designed to be used on an iPaq. It had a
wireless card in it so the used simply used a browser to hit the server they
were stored on. That's one way but does not exactly answer your question.
To answer your question, no, there is no port of php to WinCE that I am
Hi Jason,
i think you misunderstood what i was asking. i am doing exactly what
you described below. My question is whether there is a way to not
overwrite the include_path variable, but instead to append certain paths
within my virtual server's setup to the master include_path that is
setup
I am running apache and php. I want to create a custom 404 page for my
site. I have created a .htaccess file and ErrorDocument 404
/error.php3
line to it.
If someone tries to view www.myserver.com/thispagedoesnotexist.htm the
404
page is displayed without issue.
I guess you are using PHP
Hi,
I have some script to access an Oracle database using
stored procedures. When I access a development
database everything runs fine. When I access the
production database I get errors PLS-00553: character
set name is not recognized ORA-06550.
The problem seems to be related to NLS. So in
I assume that you are doing something like this for your image:
input type=image src=path/to/image/image.gif border=0 name=myimage
Given that, PHP gives you $myimage_x and $myimage_y which correspond to the
X and Y coordinates that were clicked on the image from the user.
So on the page that
I am currently building an intranet security system to handle internal
users and the web applications we have.
When we are done we will have the ability to add/remove users, control
what apps they can and can't see, etc. One thing I would like to be able
to do is set up groups and have the
On Tue, 2002-02-26 at 13:22, Bogdan Stancescu wrote:
Hello all!
How do I find out if a file was actually uploaded /without/ using
is_uploaded_file()?
First: Why not use is_uploaded_file()? Second
Second: What version of PHP are you using?
Torben
My first though is that I should use
On Thursday 28 February 2002 02:30, darcy w. christ wrote:
Hi Jason,
i think you misunderstood what i was asking. i am doing exactly what
you described below. My question is whether there is a way to not
overwrite the include_path variable, but instead to append certain paths
within my
I'm having this one issue that's really bugging me - I have a textarea where
you can type in something - After typing it in, it goes to another page
asking you to verify, if it's correct, it inserts it into a database.
The page that asks you to verify holds the value of the textbox in a hidden
I'm trying to make an email field and I would like to check that its valid
by checking for an @ and a . can someone point me in the right direction for
this.
THanks
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
--
Chris,
I've done some stuff on my site in PHP... certainly not big name,
and maybe or maybe not cool depending on what you're into.
http://www.northern.ca/
(my yahoo like directory of links)
http://www.northern.ca/projects/phpwidgets/
(an semi-abandoned personalization engine... still
Hi Folks!
I am working on a php system which sends e-mail. The system is ready to go
now, but I am asking myself and now all of you what´s the best way to send
this emails throug a php script:
a) Using the mail() function?
b) popen sendmail and writing the messages directly on it?
I am
Jason Wong wrote:
On Thursday 28 February 2002 02:30, darcy w. christ wrote:
Hi Jason,
i think you misunderstood what i was asking. i am doing exactly what
you described below. My question is whether there is a way to not
overwrite the include_path variable, but instead to append
Hi,
I've sent a few emails thus far regarding adding apostrophe's through a PHP
script form into a MySQL database. The responses I received indicated to
me that I needed to get my hosting company to activate magic_quotes_gpc.
After several days of talking with what seems to be the sole tech
Use a regular expression to test the variable submitted by the form. This
is an excerpt from my usual validation script using ereg().. I'm sure you
can adapt this for your purposes..
if (!ereg('^[-!#$%\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.
'@'.
On 2/27/02 1:10 PM, Philip J. Newman [EMAIL PROTECTED] wrote:
I'm trying to make an email field and I would like to check that its valid
by checking for an @ and a . can someone point me in the right direction for
this.
THanks
Philip J. Newman
Philip's Domain - Internet Project.
On Wed, 27 Feb 2002, darcy w. christ wrote:
Jason Wong wrote:
On Thursday 28 February 2002 02:30, darcy w. christ wrote:
Hi Jason,
i think you misunderstood what i was asking. i am doing exactly what
you described below. My question is whether there is a way to not
Hello, Thanks for your help. This is what I have for file1.php and
ddownloadfile.php. What I want is to click on Donwnload now link and be
able to get the file out of the database and display it on the browser.
Thank you in adavance, -Teresa
file1.php
---
?php
while ($row =
Hi there,
I am wondering if it is possible to get the compression rate of a jpeg
file?!
As I did read on php.net creating a jpeg gives you a third parameter with
the compression. Default is 75 %.
So asuming the user has an image compressed with 50 % and he does upload
this picture through my
Maybe it's just an issue of using get rather than post. in the form.
Hugh
For every complex and difficult problem there is always a simple, easy
answer--that's wrong.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 8:55 AM
Hi,
Within a frame I would like to get the url of the frameset
and include a different css dependent on the url. I am
using apache and php, and first tried with HTTP_REFERER.
However, this only works the first time you call the frame and not
when you have a link (the referring page will be the
James,
Look into stripslashes():
http://www.php.net/manual/en/function.stripslashes.php
and htmlspecialchars():
http://www.php.net/manual/en/function.htmlspecialchars.php
Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]
On Wednesday, February 27, 2002,
Yo thanks this dose work. (o; haven't got to functions in the book yet
- Original Message -
From: Chris Burnett [EMAIL PROTECTED]
To: Philip J. Newman [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, February 28, 2002 8:25 AM
Subject: Re: [PHP] Checking for and @ and a .
On
Anthony Rodriguez wrote:
All of a sudden Apache is nor running correctly under Windows 98.
It appears that somehow localhost was changed from 127.0.0.1 to
something else.
Does the fact that I now have a 24/7cable connection to the Net cause
the problem?
Thanks!
Anthony Rodriguez
Hi there :)
Use the addslashes() function prior to insertion to database, and
stripslashes() on retrieval from db before you display it.
//prior to db insertion
$myvar = addslashes($myvar);
//on retrieval
$myvar = stripslashes($myvar);
Since you are wanting to display it to the user before
I've done it :-)
But be careful. There are dozens of way to implement this. My way is
simple, but makes use of too many sql queries I believe. Could have stored
everything in one line and grab it at user's login, but anyway My
current way seems more logical to follow and update.
I
Steven (and anyone else interested),
I was working on email earlier in the day, and have just cleared my desk of all that
'junk'.
Your reading for tonight (1024/1000/997 byte line length limits in email) can be found
in the discussion of RFC
2646 available from sunsite.dk (and elsewhere) -
Why isn't addslashes() working? You addslashes then you stripslashes()
:-)
Anyway, how about mysql_escape_string()?
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
Thanks for the help!
Those output variables are pretty interesting - I didn't know that image
maps could be built in PHP with relative ease. :)
So I learned two things for the price of one.
:)
-Mike
-Original Message-
From: Sam Masiello [mailto:[EMAIL PROTECTED]]
Sent:
Thank you. What I am trying to avoid is doing a parsing of the string
everytime a user comes in. My thought is to use a user table, a group
table and then a permissions table that will allow the user to be a member
of more than one group.
Thank you,
-Scott
On Wed, 27 Feb 2002, Julio
Hi phpers,
Does anybody know if accessing DB2 using ODBC runs ok ?
I've never tried that and was wondering if there are any
tips/limitations (like configuration settings on both ends...) ?
Thanks,
Mário
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
If you register an object as a session variable, do you need to include the
objects class *before* start_session()?
What if I use serialize() on my object, and then register a variable with
the serialized data; then I can start_session(), do some other things, then
include the class definition,
Mário,
It runs fine, either using the unified-ODBC or compiling PHP --with-iodbc as
per the HOWTO at www.iodbc.org and using real ODBC drivers. As in every
case with ODBC, the quality of your experience will be determined by the
quality of the ODBC drivers you use.
OpenLink provides free,
I'm trying to let users upload word files through a PHP form but its not
working! The script keeps telling me that the file path doesn't exist.
HERE'S THE CODE I USE IN THE FORM PAGE:
FORM ENCTYPE=multipart/form-data ACTION=freelancers/uploaded_word.php
METHOD=POST
INPUT
I don't see why addslashes wouldn't work, but why not roll your own?
$dbStr = preg_replace(/'/, /\\'/);
I believe that, in MySQL, you can also double-up single quotes to escape
them:
$dbStr = preg_replace(/'/, /''/);
HTH
Matt
On Wed, 27 Feb 2002, Tim Thorburn wrote:
Hi,
I've sent a few
Whoops...helps if I write it legally.
$dbStr = preg_replace(/'/, /\\'/, $dbStr);
$dbStr = preg_replace(/'/, /''/, $dbStr);
M
On Wed, 27 Feb 2002, Matt Drake wrote:
I don't see why addslashes wouldn't work, but why not roll your own?
$dbStr = preg_replace(/'/, /\\'/);
I believe that, in
http://www.php.net/
[27-Feb-2002] Due to a security issue found in all versions of PHP
(including 3.x and 4.x), a new version of PHP has been released. Details
about the security issue are available here. All users of PHP are strongly
encouraged to either upgrade to PHP 4.1.2, or install the
Please unscribe me from this list I did not sign up for the stuff
1 - 100 of 170 matches
Mail list logo