[PHP] MySQL - PHP's configure failed with error

2005-12-19 Thread Scott Fletcher
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

[PHP] Re: Configure - How to disable the XMLLIB support?

2005-12-15 Thread Scott Fletcher
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

[PHP] Configure - How to disable the XMLLIB support?

2005-12-15 Thread Scott Fletcher
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

[PHP] Configure/Compile PHP 5.1.1 to work with NuSOAP

2005-12-15 Thread Scott Fletcher
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

[PHP] When using foreach(), how to use &$value in php 4??

2005-12-14 Thread Scott Fletcher
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

Re: [PHP] How to automate php with crontab?

2005-10-13 Thread Scott Fletcher
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

Re: [PHP] chown function

2005-10-13 Thread Scott Fletcher
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

[PHP] What's the safest way to destory/wipe out the arrays within the associative arrays?

2005-10-13 Thread Scott Fletcher
[code] $xml = array ( 'NEWSFEED' => array ( '0' => array ( 'MESSAGE' => array ( '0' => array ( 'ATTRIBUTES' => array ( 'ID' => 'test2', 'TID' => 'test4' ), 'TITLE' => array (

Re: [PHP] Array - partical path to the array's path (part 2)

2005-10-03 Thread Scott Fletcher
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

[PHP] Array: If i'm in the child array then how I tell the parent's key name..

2005-09-30 Thread Scott Fletcher
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

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Scott Fletcher
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

[PHP] Array: how to find a parent key when using a child key?

2005-09-29 Thread Scott Fletcher
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

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-29 Thread Scott Fletcher
> 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

Re: [PHP] bad use of foreach() when building xml str from xml tree(source code provided here).

2005-09-28 Thread Scott Fletcher
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 ( '

Re: [PHP] bad use of foreach() when building xml str from xml tree(source code provided here).

2005-09-28 Thread Scott Fletcher
> $array = array('NEWSFEED' => array( > '0' => array( >'MESSAGE' => array( > '0' => array( > 'COMMENT' => array( > '0' => array( >'VALUE' => 'Comment #1', > '1' => array( >'MESSAGE' => array( > '0' => array( > 'C

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Scott Fletcher
> 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

[PHP] bad use of foreach() when building xml str from xml tree (source code provided here).

2005-09-28 Thread Scott Fletcher
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

Re: [PHP] Array - partical path to the array's path (part 2)

2005-09-28 Thread Scott Fletcher
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

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Scott Fletcher
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

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Scott Fletcher
:-) "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

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Scott Fletcher
"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[&#

Re: [PHP] Array - partical path to the array's path....

2005-09-27 Thread Scott Fletcher
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

[PHP] Array - partical path to the array's path....

2005-09-27 Thread Scott Fletcher
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

Re: [PHP] PHP Bug/Error with XML Parsing Syntax??

2005-06-13 Thread Scott Fletcher
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

[PHP] PHP Bug/Error with XML Parsing Syntax??

2005-06-13 Thread Scott Fletcher
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

[PHP] Re: Tried to run PHP as shell script and got the error...

2005-06-13 Thread Scott Fletcher
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

[PHP] Tried to run PHP as shell script and got the error...

2005-03-11 Thread Scott Fletcher
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

[PHP] Re: How to make use of the billing token the right way???

2005-02-16 Thread Scott Fletcher
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

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
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

[PHP] Re: How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
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

[PHP] How to make use of the billing token the right way???

2005-02-15 Thread Scott Fletcher
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

[PHP] How to verify the file after the FTP transfer???

2004-12-17 Thread Scott Fletcher
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

[PHP] Re: How to tell if the filepath exist or not before attempting to create a directory??

2004-12-01 Thread Scott Fletcher
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

Re: [PHP] Upload is not working ( Permission Problem), I tried a number of ways , still no success!!!!!

2004-12-01 Thread Scott Fletcher
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

[PHP] How to tell if the filepath exist or not before attempting to create a directory??

2004-12-01 Thread Scott Fletcher
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

[PHP] Sort $_FILE['userfile']['name'] by ascending abc order...

2004-11-19 Thread Scott Fletcher
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

Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
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

Re: [PHP] mail() issue...

2004-11-18 Thread Scott Fletcher
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

Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
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

[PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
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

[PHP] $_FILES and move_uploaded_file showed no directories name???

2004-11-18 Thread Scott Fletcher
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

Re: [PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-16 Thread Scott Fletcher
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]

[PHP] Re: http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
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

Re: [PHP] http header script to stimluate upload with drag anddrop??

2004-11-16 Thread Scott Fletcher
:-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
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

Re: [PHP] unable to upload a directory using the web brower(HTTP).

2004-11-16 Thread Scott Fletcher
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

Re: [PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-16 Thread Scott Fletcher
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

Re: [PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
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

[PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
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

[PHP] unable to upload a directory using the web brower (HTTP).

2004-11-15 Thread Scott Fletcher
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

Re: [PHP] Re: PHP file permission

2004-11-15 Thread Scott Fletcher
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

Re: [PHP] How do I su to another account??

2004-11-11 Thread Scott Fletcher
> 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

[PHP] Re: How do I su to another account??

2004-11-11 Thread Scott Fletcher
> > 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. >

[PHP] How do I su to another account??

2004-11-11 Thread Scott Fletcher
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

[PHP] Re: chmod difficulties...

2004-11-10 Thread Scott Fletcher
"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

[PHP] Re: chmod difficulties...

2004-11-10 Thread Scott Fletcher
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>

[PHP] chmod difficulties...

2004-11-10 Thread Scott Fletcher
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(

[PHP] Re: Passing the Array as Parameter to either the function or object/class???

2004-10-21 Thread Scott Fletcher
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

[PHP] Passing the Array as Parameter to either the function or object/class???

2004-10-21 Thread Scott Fletcher
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

[PHP] Re: Session Expire...

2004-08-04 Thread Scott Fletcher
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

[PHP] Session Expire...

2004-08-04 Thread Scott Fletcher
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

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-27 Thread Scott Fletcher
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 >

[PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Scott Fletcher
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

[PHP] JavaScript conversion to PHP code...

2004-07-26 Thread Scott Fletcher
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.

[PHP] Alternative to file_exists()???

2004-07-22 Thread Scott Fletcher
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

[PHP] Problem with file_exists() and clearstatcache()...

2004-07-21 Thread Scott Fletcher
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,

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Scott Fletcher
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

[PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Scott Fletcher
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: [PHP] PHP error catching....

2004-07-20 Thread Scott Fletcher
>[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

Re: [PHP] PHP error catching....

2004-07-20 Thread Scott Fletcher
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

[PHP] PHP error catching....

2004-07-20 Thread Scott Fletcher
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

Re: [PHP] unlink(), is it suppose to delete file???

2004-07-20 Thread Scott Fletcher
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

[PHP] Re: unlink(), why doesn't it delete the file????

2004-07-20 Thread Scott Fletcher
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

Re: [PHP] unlink(), why doesn't it delete the file????

2004-07-20 Thread Scott Fletcher
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

[PHP] Re: unlink(), why doesn't it delete the file????

2004-07-20 Thread Scott Fletcher
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

[PHP] unlink(), is it suppose to delete file???

2004-07-20 Thread Scott Fletcher
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:/

[PHP] unlink(), why doesn't it delete the file????

2004-07-20 Thread Scott Fletcher
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:/

[PHP] Re: Security vulerability, any more detail info than this???

2004-07-16 Thread Scott Fletcher
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? > >

[PHP] Security vulerability, any more detail info than this???

2004-07-16 Thread Scott Fletcher
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

Re: [PHP] Got JavaScript error when using PHP's include()...

2004-07-16 Thread Scott Fletcher
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

Re: [PHP] Got JavaScript error when using PHP's include()...

2004-07-16 Thread Scott Fletcher
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

Re: [PHP] Got JavaScript error when using PHP's include()...

2004-07-16 Thread Scott Fletcher
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

[PHP] Got JavaScript error when using PHP's include()...

2004-07-15 Thread Scott Fletcher
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.

Re: [PHP] How to tell if the file is already locked with flock()???

2004-07-15 Thread Scott Fletcher
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

[PHP] How to tell if the file is already locked with flock()???

2004-07-15 Thread Scott Fletcher
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

Re: [PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
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

Re: [PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
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

[PHP] File locking in PHP???

2004-07-15 Thread Scott Fletcher
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

Re: [PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Scott Fletcher
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

[PHP] I'm very curious about the object-orientated thingies in PHP 5.....

2004-07-01 Thread Scott Fletcher
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

Re: [PHP] mysql_escape_string() vs addslashes()...

2004-07-01 Thread Scott Fletcher
, 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

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-07-01 Thread Scott Fletcher
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

[PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Scott Fletcher
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:

[PHP] mysql_escape_string() vs addslashes()...

2004-07-01 Thread Scott Fletcher
> > 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

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-07-01 Thread Scott Fletcher
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

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
>>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

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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

[PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Scott Fletcher
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   2   3   4   5   6   7   8   >