I don't know what is the problem. I'm using the GNU GCC and GNU Biutils.
--snip--
./configure --with-mysqli=../../mysql/bin/mysql_config --with-apxs2=../../ap
ache2/bin/apxs --with-unixODBC --with-openssl --with-curl --disable-libxml -
-disable-dom --enable-track-vars --enable-ftp --enable-socket
Never mind that... I looked in the configure code and found this
"--disable-libxml" option... Not the "--disable-xml" option...
""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I still haven't got PHP config
I still haven't got PHP configured without running into errors. It kept
asking for xml2-config, something XMLLIB related. So I used the
"--disable-xml" option but that doesn't work.
Any idea?
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
I'm working on installing Apache 2.2.0 and PHP 5.1.1 and I'm going to use
NuSOAP for the first time. Since I never used SOAP before, so on the
php.net soap documentation, it mentioned that I would need to use the
"--enable-soap" option but does NuSOAP use this PHP's soap package?
Thanks...
--
P
I have encountered a situation where I'm using the foreach() where I need to
assign new data to the $value in the foreach loop, foreach($x as $key ==>
$value). With PHP 5, you can do the ampersand to the $value but I'm using
PHP 4? So, how do you guys do it? I tried this sample code but it only wor
Then do something like this...
0,5,10,15,20,25,30,35,40,45,50,55 * * * *
/usr/local/bin/inquiry_pull_test.php
in the crontab file Depending on your situation, you might will need to
add or not add the "#!/usr/local/bin/php" at the top of the php scripts...
I don't know if your php script is
Well, apache use the "nobody:nobody" permission...
""Keith Spiller"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Jasper,
>
> When using my Php script, I don't see any error messages.
>
> I have logged in using SSH, but the directories created are
> owned by 48 and not my ftp u
[code]
$xml = array
(
'NEWSFEED' => array
(
'0' => array
(
'MESSAGE' => array
(
'0' => array
(
'ATTRIBUTES' => array
(
'ID' => 'test2',
'TID' => 'test4'
),
'TITLE' => array
(
Got it figured out by now. I noticed one small bug but I'll fix it monday
morning, so i'm going to post what I did to make this work..
I'm going to donate this code to the guy at
http://www.devdump.com/phpxml.php and hopefully he'll put some of this to a
good use as more and more people are now u
Suppose that I'm in a child array and I wanna know how do I tell what key is
the parent's level, one level up...
For example,
--snip--
$arr['ABC']['DEF'];
--snip--
Let's say the child is "DEF" then the key name one level up would be "ABC".
How do I determine the one level up?
Thanks...
--
P
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
I'm using the recursive function and it use the foreach() loop. I can
figure out how to use the current key but I could not figure out how to use
the parent's key. Can anyone point out to what I'm missing here?
Just look at the "//Parent Key - How??" comment in the script...I'm not
sure what
> the xml above is not structurally
> the same as the array below
>
> I'll bet your output has just one message
> element right? or you have gone completely offtrack.
>
> might be time you went here:
>
> http://php.net/xml
> http://php.net/dom
> http://php.net/domxml
>
> might be something the
Here's we go. A better script here. Now I only need to figure out how to
add data to the string and assigned it to string 1 when done. I used hte
break command there to make a point here. Maybe this will work...
--snip--
$array = array
(
'NEWSFEED' => array
(
'0' => array
(
'
> $array = array('NEWSFEED' => array(
> '0' => array(
>'MESSAGE' => array(
> '0' => array(
> 'COMMENT' => array(
> '0' => array(
>'VALUE' => 'Comment #1',
> '1' => array(
>'MESSAGE' => array(
> '0' => array(
> 'C
> Aw!!! This is driving me nut...
It still does :-)
> get to grips with var_dump() ...
Um Interesting thought...
> ($array.$suffix) will never be an array
> $suffix .= "['".$key."']";
Yea, you are correct... I was trying to integrate the coding and stumpled
upon this. It's a mind
Need some help here... The script didn't turned out right, especially with
the tags... For your conveince, I posted the code of my work here
with a slim-down testcase...
--snip--
$array = array
(
'NEWSFEED' => array
(
'0' => array
(
'MESSAGE' => array
(
'0' => ar
To the top...
Aw!!! This is driving me nut... I can't get it to do what I want it to
do... Also, another problem is that we're all not thinking at the same
level so I'll just dump the simple code so you all can see what I'm trying
to do...
[code]
function getVal($arr, $path)
{
$retval
see below...
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> see below..
>
> Scott Fletcher wrote:
> > "Jochem Maas" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Mike Dunlop
:-)
"Mike Dunlop" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My bad - that doesn't work - that came off the top off my head. It
> sure did look sexy though, no ?
>
> - MD
>
>
> >> echo ${"array".$prefix};
> >>
> >
> > really? did you test that?
> > doesn't work when I do it (t
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Mike Dunlop wrote:
> > On Sep 27, 2005, at 10:22 AM, Scott Fletcher wrote:
> >
> >> [code]
> >> $array = array();
> >>
> >> $array[
Wow, that seem to work... Should have use "$suffix" instead of "$prefix" to
make it less confusing.
"Silvio Porcellana" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
>
> >What I want this to work instead is
Here is something simple that I want it to work.. Not sure how to do this
exactly...
Code #1
[code]
$array = array();
$array['col1']['col2'] = "Test #1";
$array['col3']['col2'] = "Test #2";
echo $array['col3']['col2']; //Spitted out result as "Test #2"...
[/code]
What I want this to w
ot
--snip--
Blah Arcadia, TransSouth
--snip--
with no " " within those data in the "Message" tag..
Thanks...
FletchSOD
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, June 13, 2005 10:21 am, Scott Fletche
I'm not sure what's wrong with PHP.. I ran the XML file through the Mozilla
and it validate just fine. I get XML parse error but it gave no reason for
the errors.
The source code here is
[code]
$data = "Were changing";
$xml_parser = xml_parser_create('ISO-8859-1');
xml_parser_set_option($xml_pa
Oh, forgot to add the "!" to the "#/usr/local/bin/php".. Since it's my
first time in shell scripting with php so I wasn't thinking correctly...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi! I'm trying to
Hi! I'm trying to run PHP as a shell script but I got the error message...
Source code below is ...
--snip--
#/usr/local/bin/php
--snip--
Attempt to run the file below and got the error
--snip--
-=[/usr/local/bin]==>./ecbi_inquiry_pull_experian.sh
Hello World!!\n
./ecbi_inquiry_pull_experian.s
That doesn't look too difficult. Thanks... I'll think of something as to
prevent the 2nd page from showing up in the 2nd browser window or 2nd
browser tab window or with the back/forward browser button..
Scott
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
--
PHP
Never heard of the uniqid() before and looked it up on the php.net. It look
very promising. I can do that. That leave me with 2 questions. How do I
do (or how does it work) this with a token if
1) The webpage is submitted (goes from page 1 to page 2) with the uniqid().
2) The 2nd browser windo
I can do the Session Token but problem is two browser windows can have the
same Session Token via "File --> New Window" or Browser Tab. I have thought
about using the Database Table instead but it all go back to the original
problem with 2 same browser windows that use the same Session.
I'm think
I created the token via Javascript where the billing can be controlled
better and to prevent the mixed up of the billing such as incorrect
statements or calculation. I use the billing lock file for that purpose. I
found that it doesn't alway work that way when the browser is refreshed or
submitte
Hi! I'm now stuck on how to verify the file after the FTP transfer. I'm
writing a script that do the files and database backup and verifying them.
I'm using the Unix machine. Since I'm using the tar utility via the shell
environment in PHP, like PassThru() or Exec(). I'm using the tar utility
v
Never mind that.. I found a different way to use it. It would be so cool
if there is such a feature as directory_exists() to check for partical
filepath...
Scott
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm wondering how to tell
The directory folder where you upload the file(s) and folder(s) inito must
have the ownership of Apache and the permission of 755. Then you'll have no
trouble uploading file(s)/folder(s) into it since Apache would have the
permission to create the file(s)/folder(s) where none exist or update them
I'm wondering how to tell if the filepath exist or not, that way, I don't
create the directory if the filepath exist.
I thought that the is_dir() is the way to go but found that it is not
reliable.
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
Um, let's see, what would be the way to go in sorting the dual array
--snip--
$_FILES['userfile']['name']
$_FILES['userfile']['type']
$_FILES['userfile']['size']
$_FILES['userfile']['tmp_name']
$_FILES['userfile']['error']
--snip--
where $_FILES['userfile']['name'] would be in ascending abc orde
EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jason Wong wrote:
> > On Friday 19 November 2004 03:28, Scott Fletcher wrote:
> >
> >>Well, I had successfully uploaded the files/folders. PHP just stripped
out
> >>the folders for no reasons. A file can
I did have that similar problem when it took about a minute or two on unix
machine. It turn out to be a DNS issue, so the successful workaround I made
was to use the host file instead in /etc/hosts by added the machine name to
it since that what the sendmail use. Maybe this is in your case?
--s
Well, I had successfully uploaded the files/folders. PHP just stripped out
the folders for no reasons. A file can be a folder too.
Scott
"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Scott,
>
> Thursday, November 18, 2004, 6:05:09 PM, you wrote:
>
> SF> I m
I mean full file path, it only show the filename without the filepath...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I found that $_FILES and move_uploaded_file doesn't contain directories
name
> when I uploaded multiple files/folders
I found that $_FILES and move_uploaded_file doesn't contain directories name
when I uploaded multiple files/folders. On the unix machine, all I saw are
files as if the tree is being stripped out and the remaining files is placed
together as if there's no folder.
Why is that? I really need this t
7;t and stopped working,
that I don't like. Well, I'm building a website on the test machine, so the
java applet have to work before it goes live. Thanks for that wonderful
link....
Thanks,
Scott
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I have written lot of http header scripts myself, so I'm familiar with what
they are used for.
Scott
"M. Sokolewicz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
> > Hi!
> >
> > I wonder is is it possible t
:-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
I wonder is is it possible to have an http header that would stimluate
files/folders upload via dragging over to the browser window? If so then
what are the sample functions or scripts that make this possible...
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubs
t; Helvetica, sans-serif; font-size: 12px; font-weight: bold> File is
> valid, and was successfully uploaded. ");
> }
>
> not sure if this is what your looking for???
> hope this helps
> ANgelo
>
> >>> "Scott Fletcher" <[EMAIL PROTECTED]> 11
might would have to write one from scratch.
Scott
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
>
> >Um, can't be done. So, I'll have to use JAVA instead. Have anyone ever
> >done this, does
ks,
Scott
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
> > I found that on most web browsers, I can not upload the folder via HTTP
> > using hte web browser upload dialog box.
>
> Most? I thought al
Um, can't be done. So, I'll have to use JAVA instead. Have anyone ever
done this, does anyone know of a good freeware JAVA applet that I can use?
Thanks,
Scott
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I found that on most w
I found that on most web browsers, I can not upload the folder via HTTP
using hte web browser upload dialog box. So, I can't use the php's
function, is_uploaded_file and move_uploaded_file. Because the web browser
see the folder as something to open with, like going down one directory.
So, any ad
Rule of thumb. set the file permission to 644 for all files execpt the
directory, the directory folder would be 755. Most executable files can
safely be set to 644 but if your machine or web browser can't run the file
then change permission for that file from 644 to 555. Why 644 in the first
pla
> Try looking into setting up and using sudo.
>
> Ian
>
> On Thu, 2004-11-11 at 09:20 -0500, Scott Fletcher wrote:
> > How do I su (switch user) to another account from the nobody in php? I
> > haven't got it to work, so I get the impression that it is either I'm
do
>
> Or just as a suggestion if you don't want to change the running
> environment of apache I recommend having your script set a flag (temp
> file or something) then write a shell or php script running through a
> cron job to check for the temporary file before it executes.
>
How do I su (switch user) to another account from the nobody in php? I
haven't got it to work, so I get the impression that it is either I'm doing
it all wrong in PHP script or that the nobody doesn't have the authority to
do so.
Have anyone who ever successfully do it please post a sample script
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I tried that before and it doesn't work... Here's the response..
>
> --snip--
> 3004-501 Cannot su to "webacct" : Authentication is denied.
> --snip--
>
> Scott
user with enough permissions to do what you
> are trying :)
>
> (passthru('SU ...'))
>
> Scott Fletcher wrote:
> > Hi, I'm using the AIX or UNIX system... When I tried the ...
> >
> > --snip--
> > passthru('chmod -R a+rw ../WebHelp/* 2>
Hi, I'm using the AIX or UNIX system... When I tried the ...
--snip--
passthru('chmod -R a+rw ../WebHelp/* 2>&1');
--snip--
I get an error message, "Operation Is Not Permitted".. So, I tried other
option...
--snip--
chmod("../WebHelp/", 0755);
--snip--
I get an error message, "Warning: chmod(
Thanks I wasn't sure if that would work but now I know it does. It is
nice to know..
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
I wanted to know is can it be done by passing the array as a parameter
to the function?
I also wanted to know is is it possible to pass around the array in the
object-orientated feature like object/class stuffs?
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To un
I think I'm looking at it the wrong way. Both of them are not related to
the 1 hour session timeout that I set up with I think there is no such
feature and that I would have to write a custom PHP script to manage that.
Am I right??
FletchSOD
"Scott Fletcher" <[EMAIL PR
Run that again about php.ini configuration on the session expiration. I
looked up at http://www.php.net/manual/en/ref.session.php and it said
--snip--
session.cache_limiter specifies cache control method to use for session
pages (none/nocache/private/private_no_expire/public). Defaults to nocache
Good thinking... I like without the substr() because substr() take more time
than we want it to be
FletchSOD
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > --snip--
> > $char_code = strpos($char_set,(substr($input,$loop,1)));
> > --snip--
>
> even a little shorter
>
I think maybe this will do the trick..
--snip--
$char_code = strpos($char_set,(substr($input,$loop,1)));
--snip--
FletchSOD
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi, what is in your opinion is the best way to convert from JavaScript
Hi, what is in your opinion is the best way to convert from JavaScript to
PHP What I'm not entirely sure of is the
"char_set.indexOf(input.charAt())". It look pretty tricky
--snip--
var algorithm = 8;
for (loop=0; loophttp://www.php.net/)
To unsubscribe, visit: http://www.
I have decided to look for an alternative to file_exists() because it is
taking too long. Is fopen() a good alternative or what?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I noticed the problem with the php functions, file_exists() and
clearstatcache(). When I load a webpage, the php do the file_exists() and
attempt to create one if the file does not exist. Then when I go to the
next webpage, that file is removed. It is working pretty well. When I
press refresh,
I like this one, the readdir() function. It look very promising.
Thanks!
Scott F.
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > I would like to use the file_exists() or something similar to check for
the
> > existance of any of the xml files regardless of what file
I would like to use the file_exists() or something similar to check for the
existance of any of the xml files regardless of what filename it use. Like
file_exist("*.xml") for example. Anyone know??
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
>[re-snip]
>I can't remember what I did 6 to 8 months ago.
>[/re-snip]
>/* commenting is your friend */
I definitely agree with you on that...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
was a
function where I can enter the PHP's defined parameter in the function.
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Scott Fletcher:
> > What are those php functions that catch the PHP errors, not display it
and
> &g
What are those php functions that catch the PHP errors, not display it and
do something to it while the user load a webpage. I don't remember what
those are. :-(
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not free
> of any open filedescriptors... I don't know exactly what processes
> happens in kernel when deleting the file, but it's something like
> that... and it could result in your problem...
>
> m.
>
> Scott Fletcher wrote:
>
> > I have a file that was 25 KB and I u
Never mind that, found hte problem. It's because I set the fopen to write
only somewhere... The unlink now work correctly (deleted file)...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a file that was 25 KB and I use the unl
See my other post on this one. I don't know, maybe a bug in M$ Outlook or
something. (Whistling and looking away from the issues) :-)
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
I have a file that was 25 KB and I use the unlink() to remove the file.
Wh
Never mind that, found hte problem. It's because I set the fopen to write
only somewhere... The unlink now work correctly (deleted file)...
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a file that was 25 KB and I use the unl
I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's filesize
is 0 KB. Is unlink() suppose to remove the file or what??
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
I have a file that was 25 KB and I use the unlink() to remove the file.
When I rechecked it, I found that the file is still there but it's filesize
is 0 KB. Is unlink() suppose to remove the file or what??
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Except that 4.3.8 cover the 4.3.7 issues
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Saw a website about security vulerability and there's no info on php.net
> that can describe more about it. So, anyone know?
>
>
Saw a website about security vulerability and there's no info on php.net
that can describe more about it. So, anyone know?
http://pcworld.co.nz/news.nsf/0/4D6AE0157B37ACDCCC256ED200693BB3?OpenDocument
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
PROTECTED]
> You defined jsTest after the include where it should be before.
>
>
> On Thu, 2004-07-15 at 16:24, Scott Fletcher wrote:
> > When an include file contain plain JavaScript codes, with the echo
command
> > before and after the include file. I get the javascript err
Okay, I still get this same error when I move the jsTest to before the
function
FletchSOD
"Neal Owen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You defined jsTest after the include where it should be before.
>
>
> On Thu, 2004-07-15 at
IL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You defined jsTest after the include where it should be before.
>
>
> On Thu, 2004-07-15 at 16:24, Scott Fletcher wrote:
> > When an include file contain plain JavaScript codes, with the echo
command
> > before and a
When an include file contain plain JavaScript codes, with the echo command
before and after the include file. I get the javascript error saying
"undefined jsTest"... Anyone know why is that?
--snip--
echo "";
echo "";
include('test.inc');
echo " var jsTest = 0; ";
echo "";
echo "http://www.php.
Um, I think I'll stick to file_exist instead and to unlock, I'll grab the IP
address in the text file and match it against the current browser of whoever
is using before deleting the file. That way, I'll know who is the guilty
party if the person doesn't finish whatever he/she is doing on the brow
Hi!
How do we tell if the file is already locked when someone use a flock()
on the file??
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nah! I'll settle for a simplier one... file_exists() by checking to see
if the file exist then spit out the error message. Meaning the file is in
use...
FletchSOD
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Hi! I saw the php function flock(), since I never used
Yea, read that, very good info there. Alright, I'll make one from scratch
and do some testing to find what need to be add/change/remove to make it
more a rock solid script. Boy, it remind me of Perl.
Thanks,
FletchSOD
"Matt M." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > Hi
Hi! I saw the php function flock(), since I never used it before so I
thought I would ask you folks a couple of questions.
1) Is this function good or is there a better function somewhere that I'm
not aware of?
2) If the flock() activated the file lock then is it possible that I
manually unlock
try "mysql_escape_string()". and I'm using Mozilla...
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 1 Jul 2004 09:37:46 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote:
> >
> > What the hell??? When
Hey everyone,
I'm very curious about the object-orientated thingies in PHP 5. Anyone
know of a sample scripts I can read it on? And how does it work since the
browser-webserver is one sided in communication or one way, not both way?
Scott F.
--
PHP General Mailing List (http://www.php.net
,
Scott F.
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Scott Fletcher:
> > > > I would argue that something like mysql_escape_string() is better
than
> > > > addslashes(), so I agree with you for the most part a
Ah, when I enter the "mysql_escape_string" in the "search for" textbox, I
get a mysqli_escape_string webpage So, it wasn't me that make a mistake
after all I didn't know there is mysqli as well.
Scott F.
"Scott Fletcher" <[EMAIL PROTECT
What the hell??? When I enter the "mysql_escape_string" in the "search for"
textbox at www.php.net, I get a mysqli_escape_string result. So, the
question here is, is the website mistaken or is someone made a typo when
posting to this php newsgroup???
Scott F.
--
PHP General Mailing List (http:
> > I would argue that something like mysql_escape_string() is better than
> > addslashes(), so I agree with you for the most part anyway. :-) It all
> > depends on what database is being used and how.
Starting a new topic since the related-topic lists got too long. So, run
that again about what
ed on the wrong link somewhere because it is hard to read the
i after the l.
Scott F.
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, 30 Jun 2004 15:41:42 -0400, Scott Fletcher <[EMAIL PROTECTED]>
wrote:
> >
> > Bummer, mysq
Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm using
PHP 4.3.1
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- Justin Patrin <[EMAIL PROTECTED]> wrote:
> > You also shouldn't need addslashes when putting it in. quoteSmart() in
> > PEAR
wrote in message
news:[EMAIL PROTECTED]
> --- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> > I'm using data that goes from the HTML textbox to PHP to MYSQL to
> > PHP to HTML textbox. The only trouble I have is to escape the
> > apostrophe character when i
>>and now to the second part... why use htmlentities()? that is for
>>displaying data within a form element OR (i hope i have this right)
>>preventing XSS (Cross Site Scripting attacks).
Yep, for displaying the data in the HTML's textbox and to allow us to redo
the data before resubmitting it.
Sco
This one look and sound good. I'll give this a shot. Thanks a million
Scott F.
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Red Wingate wrote:
>
> > use " to display the data in the input-text element and undo this
> > before inserting it into the database
I'm using data that goes from the HTML textbox to PHP to MYSQL to PHP to
HTML textbox. The only trouble I have is to escape the apostrophe character
when it is put into the HTML textbox by PHP (from MySQL).
--snip--
echo "";
--snip--
I can't use the HTML feature like " or something because the
1 - 100 of 704 matches
Mail list logo