Re: [PHP] Re: phps and iis

2004-02-16 Thread Scott Fletcher
Well, the instruction at macromedia website is not accurate. It is only for IIS 5 and below. IIS 6 used an increased security feature because of plaquing problem with security hole so, it use a complete lockdown on lot of things. You can safely follow the instruction at macromedia website for in

[PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Scott Fletcher
Hi! I'm wondering if there is such a thing as an alternative to the HTML submit button that would instead look like an anchor and yet act like a submit with POST action. Just wondering... Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Scott Fletcher
e of its > href attribute "javascript:document.formName.submit()" where formName is the > name of the form you wish to submit. As with a lot of client-side scripting > languages, I cannot guarantee that this solution is cross-browser > compatible. > > Shaunak > > > -Original Message---

Re: [PHP] An HTML alternative to submit button to look like anchor??

2004-02-16 Thread Scott Fletcher
Not a problem!! :-) I had a morning brain freeze until lunch. Thanks... "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] You can do it with an image. [/snip] Dang! I was thinking picture of an anchor. Monday afternoon brain freeze! -- PHP General Mailing Li

[PHP] Re: [PHP-INSTALL] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-16 Thread Scott Fletcher
; webmail :/ > > Chris > > I mean, I sometime found a few POST data had incorrectly went over to the > > GET data. I don't know it's a PHP problem but more of a web browser > > problem. > > > > Scott F. > > "Scott Fletcher" <[EMAIL PRO

[PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
Hi! I am wonder if it is possible to use the header("Location: https://www.blah.net";) while stimulating it as a POST method/string. Because I need to hide the get/post string as you would with a HTML form's POST method. What I have here is header("Location: https://www.blah.net?PHPSESSID=

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
thought. I saw no "Location:" feature, now your comments surely would be of a help. Thanks a million! Now I'll have to decide which one to use.. Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher &l

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
doesn't seem to be the problem because the directory folder is already at "dr-xr-xr-x", so not sure what the problem is exactly... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]&

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
It said it is set to 1 from ini_get(), it also said "on" from php.ini... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Groan!!! I get permission denied er

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
o work with temporary certificate if this is the problem. Scott F "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > It said it is set to 1 from ini_get(), it also said "on" from php

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
That's not the one, I tried it with port 80 and still get the error message, so ssl have nothing to do with it. Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sample code is $fp = fsockopen("www.whatever.com", 443, $err

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
] [Permission denied] --snip-- "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Sample code is $fp = fsockopen("www.whatever.com", 443, $errno, > > $errmsg); >

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-18 Thread Scott Fletcher
P.S. The telnet part, it said... --snip-- Trying Connected to www.google.akadns.net --snip-- When I exited, I get HTML codes dumped on screen along with bad request... Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Sco

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-19 Thread Scott Fletcher
I still get this message with the class HTTP_Request (Pear). --snip-- Warning: fsockopen() [function.fsockopen]: php_hostconnect: connect failed in /home/website/emarket/www/zz_test_dir/Net/Socket.php on line 108 Warning: fsockopen() [function.fsockopen]: unable to connect to 216.109.118.68:80 in

Re: [PHP] PHP Header to stimulate a POST method or POST string????

2004-02-19 Thread Scott Fletcher
tYour client has issued a malformed or illegal request.Connection closed. --snip-- "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > > This is what I get... > > > > --snip-- > > 1 > > Warning: fsoc

[PHP] fsockopen failed with permission denied error...

2004-02-19 Thread Scott Fletcher
Hi Everyone! Sample code below... --snip-- $fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30); --snip-- I get the error message, permission denied along with 13. When I read the bugs.php.net and found out that I need to add the "@" to it so I did this.. --snip-- $fp = @fsockopen("www.cnn.

[PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
Hi! Went Google surfing on Browser Refresh & Back/Forward Button and it turned out that PHP can do the dirty work. Problem is no sample script, all I see are comments about suggesting on using the $_SESSION or the database to check the $_POST stuffs and do something about it. So does anyone

Re: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
>Why is "Browser Refresh & Back/Forward Button" capitalized? Is that the name of a >band or something??? Well, forgot to enclose the double quote. Old Habit with capitalization on commonly used term... >Are you trying to process a form a something and you want to prevent the >browser from process

[PHP] Re: fsockopen failed with permission denied error...

2004-02-20 Thread Scott Fletcher
ote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > > Hi Everyone! > > > > Sample code below... > > > > --snip-- > > $fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30); > > --snip-- > > > > I get the error message,

Re: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
#x27;s not totally > >true because the user could go back and resubmit the form. Decided to go ahead and break up the rest of the webpages on the development website to make this possible. It is going to set me back by a month. My boss is not going to like it. :-( Better less problem down th

[PHP] What is CLI? Something about PHP 5 that have it...

2004-03-08 Thread Scott Fletcher
Hi! What is CLI? It is something that PHP 5 that have it. Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What is CLI?

2004-03-08 Thread Scott Fletcher
What is CLI that PHP 5 mentioned about? Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What is CLI?

2004-03-08 Thread Scott Fletcher
Oh I see what you're talking about now... Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Adding php to the "include_path" in the php.ini???

2004-03-12 Thread Scott Fletcher
Hi! After doing many testing for hte fsockopen() bugs with PHP developers which is now fixed. I just happen to noticed that in the middle of those testing when I do the PHP installation after doing the usual configure and make. What I noticed is that it asked me to .. --snip-- You may want

[PHP] Pear Package...

2004-03-15 Thread Scott Fletcher
Hi! I saw the Pear packages that are originally stored in /usr/local/lib/php/. This occur when I compile PHP. Problem is they are different from the ones I downloaded from the pears.php.net website. So, I enclosed those files into the website's directory, along with all other website fil

Re: [PHP] Pear Package...

2004-03-15 Thread Scott Fletcher
Aw! Never knew what the php's include_path is for... So, that fixed the problem by just setting it to the website directory. Thanks, FletchSOD "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Monday 15 March 2004 02:15 pm, Scott Fletch

[PHP] Re: Pear Package...

2004-03-15 Thread Scott Fletcher
tt, > > What you need is to set the include_path > > http://www.php.net/manual/en/configuration.directives.php#ini.include-path > > Greg > -- > phpDocumentor > http://www.phpdoc.org > > Scott Fletcher wrote: > > Hi! > > > > I saw the Pear pack

[PHP] header() vs. fsockopen for "Location: http:www.d.com"....

2004-03-17 Thread Scott Fletcher
Hi! Let's say there are 3 webpages with webpage #1 for customer filling out the form and submit it to webpage #2 for processing and database insert/update then php header("Location: http://www.whatever.com";) to redirect the webapge to webpage #3. (or back to webpage #1). That way, the web-b

[PHP] Re: Problem with sending mail with attachment

2004-03-18 Thread Scott Fletcher
I had experience this similar problem with the attachment, as it turned out that not all email software work out the same way, especially with MS-Exchange which need an extra "\r" or "\n" for it to work. For the attachment issue you have. I don't know what Content-Type you're using because it sho

Re: [PHP] header() vs. fsockopen for "Location: http:www.d.com"....

2004-03-18 Thread Scott Fletcher
Thanks... FletchSOD "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Scott, > This has been heavily discussed in recent weeks you will find lots of > pointers in the archives. But in short there's no harm in > header("

[PHP] Possible to have Array in $_SESSION????

2004-03-18 Thread Scott Fletcher
Hi! Is it possible to have an array that contain 2 or more segment to be put into the $_SESSION and to retreived it back? FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Clearing Post Data with IE

2004-03-22 Thread Scott Fletcher
Using "Pragma: private" instead of no-cache would elminate that message about cache expired and asking if you want to resubmit. However, based on your questions. It's not the answer you're looking for. So, there is a better way around. Just do Webpage #1 for form and submit it to Webpage #2 fo

[PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Scott Fletcher
Hi! I haven't found the right wording to spit out the HTTP scripts to the web browser through the fsockopen. In this case, the "Location: " script. I can not use the php header() function because of the FPDF strict checking. (Freeware PDF). All I did was to create a PDF and put it on t

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header("Location: "), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the http://us

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
In plain english, can't use the header("Location: "), so have to use the fsockopen() instead. Just that header() is not allowed, don't ask me why. Just couldn't get the browser perform the HTTP LOCATION event. It does work when using fsockopen() for HTTP POST or GET as stated in the http://us

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
You can use the HTTP Authentication instead for username and password. "Andy B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > There is no way to inject any kind of data to the super-global Arrays at all > [snip] > > duhhh...how come i didnt think of that... well..guess its

[PHP] Re: RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Scott Fletcher
> $_session[user]=$_POST[user];//if using register_globals=off Actually, $_SESSION with a capital letters does work... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Then do what I did, the script below is only an example.. --snip-- page1 --snip-- That way, no one see the hidden code in html stuff like or for example. Hope that will give you an idea... :-) FletchSOD "Andy B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > You ca

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Here's what I do, maybe this will help to give you an idea... --snip-- --snip-- "Andy B" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > You can use the HTTP Authentication instead for username and password. > [/snip] > > no i cant this time because the people want the lo

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Um, you would be able to jump out of the admin area (logged in area) to public/free area and back to the admin area (logged in area) only if either one of these two, not necessnary both is maintained on every webpage of that website, 1) session_start() or 2) session_id via links/form. But if the p

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
--snip-- if(headers_sent()) $this->Error(' '); --snip-- FletchSOD "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > In plain english, can't use the header("Location

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
See the reply to the Chris Shiflett's reply... "Michal Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >In plain english, can't use the header("Location: "), so have to use > >the fsockopen() instead. Just that header() is not allowed, don't ask me > >why. Just couldn'

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
> > Sigh! Well, I guess all web browsers suck at it by the way! > Suck at what exactly? Not suck at receiving the HTTP commands from the webserver but suck at not receiving the HTTP commands from the PHP. :-) I understand how the browser/webserver communication work so no wonder why it doesn't w

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Scott Fletcher
> Why not delete that part of the 3rd party code then? Or send your Location > header before you call it? Curl won't help you here, for the same reasons > that fsockopen won't work. Not sure about deleting the part of the 3rd party code though, I had thought about it alot and I had been itching for

Re: [PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Scott Fletcher
Also remember to keep in mind, some user's browser had the cookie disabled. Once that happen then it wouldn't work. "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > Um, you would be able to jump out of

[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: 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] 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] 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: 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. >

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

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

[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

[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

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

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-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

[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] 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] 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] 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] $_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

[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

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

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
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

[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

[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

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] 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

[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: 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] 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

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] 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] 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

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
:-) "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
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 (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

[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
> 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

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] 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] 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

[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] 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: 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] 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] 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] 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

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

[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

[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] 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] 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] 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] dll windows libraries for php.

2001-02-01 Thread Scott Fletcher
Hi! I installed the IIS and PHP4 on WinNT 4 for testing purpose only. (Tsk!Tsk! I like Unix better!) And they are working great so far. One after another, things that don't work are starting to work and it is taking a while. Right now, I have an script error saying undefined function, virt

Re: [PHP] dll windows libraries for php.

2001-02-01 Thread Scott Fletcher
Aww! That's suck! Look like a conversion from Apache to IIS is a bad idea. Thanks, Scott ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 95cn8n$tms$[EMAIL PROTECTED]">news:95cn8n$tms$[EMAIL PROTECTED]... >Hi! I installed the IIS an

[PHP] Off the point! (Apache)

2001-02-05 Thread Scott Fletcher
Hi! Anyone know the url address for the apache newsgroup? I don't seem to be able to find one. Just wanting to ask a question or two at the apache newsgroup. The questions are is there every a ModSSL and OpenSSL that would work on windows machine, along with apache and php? Somebody a

<    2   3   4   5   6   7   8   >