Re: [PHP] Please assist - been on this for hours - Permissions onserver

2003-07-10 Thread Brad Pauly
Steve Jackson wrote: I don't particularly need to *write* to the root directory. I do need to move the file to the root directory though as it's part of a CMS system. I can write the file to a directory which is adequately protected, but there has to be a way to move the file after it is written (t

Re: [PHP] function is_executable

2003-07-10 Thread Mark
>From the manual: "is_executable() became available with Windows in PHP version 5.0.0." Not sure what the problem might be if you're using linux. --- "Gilberto Garcia Jr." <[EMAIL PROTECTED]> wrote: > Hey guys, > > I made a class to work with file upload. > > I used the php function is_executab

[PHP] test

2003-07-10 Thread Seigo
testing .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Password + login from the AND Basic-Authenticate form

2003-07-10 Thread Seigo
Please tell me can users login with the html-page form and Basic-authentication? I so, how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] wqe

2003-07-10 Thread Seigo
wqeqwe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test

2003-07-10 Thread Seigo
Testing ,,, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] wqeqw

2003-07-10 Thread Seigo
wqewqe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP can someone tell me whats wrong here? (newbie)

2003-07-10 Thread Jason Wong
On Friday 11 July 2003 02:28, Mark Clarkstone wrote: > - Original Message - > From: "Burhan Khalid" <[EMAIL PROTECTED]> > To: "Mark Clarkstone" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Thursday, July 10, 2003 7:26 PM > Subject: Re: [PHP] HELP can someo

Re: [PHP] Password + login from the AND Basic-Authenticate form

2003-07-10 Thread Philip Olson
On Thu, 10 Jul 2003, Seigo wrote: > Please tell me can users login with the html-page form and > Basic-authentication? Chapter 16. HTTP authentication with PHP http://www.php.net/features.http-auth Regards, Philip -- PHP General Mailing List (htt

RE: [PHP] OnClick problem (fwd)

2003-07-10 Thread andu
I may be wrong but to me the behavior is correct: calling a php script with echo $_SERVER['PHP_SELF']; should return the name of that script. -- Forwarded Message -- Date: Thursday, July 10, 2003 16:16:24 -0400 From: Dan Joseph <[EMAIL PROTECTED]> To: andu <[EMAIL PROTECTED]>, Dan

[PHP] Open new browser window

2003-07-10 Thread Karina S
Hello, I want to make a php application, which displays different text in separate windows. I mean for example a new window will open with text "Hello 1" and a second window opens with text "Hello 2". How is it possible with php? Thanks! -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Open new browser window

2003-07-10 Thread Mark
--- Karina S <[EMAIL PROTECTED]> wrote: > Hello, > > I want to make a php application, which displays different text in > separate > windows. I mean for example a new window will open with text "Hello > 1" and a > second window opens with text "Hello 2". > > How is it possible with php? > It's

[PHP] Removing array element by key

2003-07-10 Thread jwulff
How do i remove an element of an array by its key? I've tried array_s(p)lice to no avail. Either it chops too much or too little with seemingly no logic. The array is of unkown and variable size if that makes a difference. Thanks, John. -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Removing array element by key

2003-07-10 Thread Jason Wong
On Friday 11 July 2003 04:50, jwulff wrote: > How do i remove an element of an array by its key? I've tried > array_s(p)lice to no avail. Either it chops too much or too little with > seemingly no logic. The array is of unkown and variable size if that makes > a difference. Thanks, John. unset

[PHP] download hyperlink

2003-07-10 Thread Matt Palermo
Does anyone know how I can set a hyperlink to a file so that someone can download the file instead of viewing it in the browser? Please let me know. Thanks. Matt

Re: [PHP] download hyperlink

2003-07-10 Thread Mike Migurski
>Does anyone know how I can set a hyperlink to a file so that someone can >download the file instead of viewing it in the browser? Please let me >know. Thanks. You want the Content-Disposition header, see the HTTP spec. - micha

Re: [PHP] (REAL TUFFY ) Lat/Long Map Image Manipulation

2003-07-10 Thread ruusvuu
Give this a looksee http://forums.devshed.com/archive/5/2003/01/3/49795 Quoting Joe Harman <[EMAIL PROTECTED]>: > Okay this is a tuffy! I am really just looking for someone to point me > in the right direction, or tutorials or something! maybe ideas > > 1st - I have created a Lat and Long dist

RE: [PHP] (REAL TUFFY ) Lat/Long Map Image Manipulation

2003-07-10 Thread Joe Harman
Hey thanks... They are pretty much trying to do what I am working... I will try to interact a little with them... Have a great one! Joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 10:35 AM To: Joe Harman Cc: [EMAIL PROTECTED] Subject

[PHP] tcp sockets

2003-07-10 Thread Robert C.
I have a java server running to handle xml requests and send back a response to the sender. It runs on one port for tcp and another for udp. I got the udp version working fine, but I am having problems with the tcp version. Watching the debug output on the java server, I can see that it is receivin

[PHP] Using DOMXML with homogenous elements

2003-07-10 Thread Matt Grimm
I have a final kink to work out of an array to XML parser I've been writing. The array structure is below, along with the example XML it came from. A link to the source I'm working on is at bottom. The only problem this script runs into is when there are multiple elements with the same name on th

[PHP] nlist

2003-07-10 Thread Johnny Martinez
Hi all, Is there a local filesystem-based function comparable to the ftp-based 'nlist' that lists files in a directory? Johnny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] nlist

2003-07-10 Thread Robert C.
http://www.php.net/readdir Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], Subject: RE: [PHP] nlist Date: Thu, 10 Jul 2003 16:17:30 -0700 >Hi all, >Is there a local filesystem-based function comparable to the >ftp-based >'nlist' that lists files in a directory? > >John

Re: [PHP] nlist

2003-07-10 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 00:17, lines prefixed by '>' were originally written by you. > Is there a local filesystem-based function comparable to the ftp-based > 'nlist' that lists files in a directory? > Johnny In PHP 5 you can use scandir() http:

RE: [PHP] nlist

2003-07-10 Thread Johnny Martinez
This is it. Thanks guys! J -Original Message- From: Robert C. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 4:24 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] nlist http://www.php.net/readdir Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], Subject: RE

[PHP] Re: Using DOMXML with homogenous elements

2003-07-10 Thread Matt Grimm
I failed to show the output XML in my last message. It's outputting like so: [xml] Value1Value2 [/xml] -- Matt Grimm "Matt Grimm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a final kink to work out of an array to XML parser I've been writing. > The array structu

[PHP] How to hide url on a php link NOT post...

2003-07-10 Thread Joey
How can I hide this link so value can't be changed? I don't want to change anything at the server level, and its not from a form so I cant do a post -vs- a get. http://www.abcd.com/popup_SearchRepSet.php?searchby=cust_no&search=1&value=WOR032 Thanks ! -- PHP General Mailing List (http://www.php

[PHP] Variable Functions...

2003-07-10 Thread Michael Smith
Smarty has a class method where it calls: $this->$some_var("somevalue"); and this throws errors on Windows versions of php that i've tried. why is that? -Michael -- Pratt Museum IT Intern All programmers are playwrights and all computers are lousy actors. -- PHP General Mailing List (http://www

[PHP] Re: How to hide url on a php link NOT post...

2003-07-10 Thread Shena Delian O'Brien
http://www.tinyurl.com Joey wrote: How can I hide this link so value can't be changed? I don't want to change anything at the server level, and its not from a form so I cant do a post -vs- a get. http://www.abcd.com/popup_SearchRepSet.php?searchby=cust_no&search=1&value=WOR032 Thanks ! -- P

[PHP] Storing SQL Queries for Reuse in Apps

2003-07-10 Thread Jacob C
Hello All, I just want to survey the list and see what kind of solutions people are using for the storage and reuse of SQL queries. Right now I am working on an application that has native SQL queries as well as custom queries that can be added by developers as they build on the framework. In

[PHP] Storing HTML string in database

2003-07-10 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a php script set up for a user to upload a word document, which is then coverted to html form, which I would then lke to store in a database. Howver, when I run the following command: INSERT into sermons (data) VALUE ('$output'); It failes

[PHP] RE: Blatant newbie question - killing a session

2003-07-10 Thread Ow Mun Heng
session_destroy()?? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Bruce Bruen [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:48 PM To: [EMAIL PROTECTED] Subject: Blatant newbie question - killing a session Hi, this is

Re: [PHP] Storing HTML string in database

2003-07-10 Thread Jacob C
Have a look at: http://www.php.net/addslashes Quoting Aaron Axelsen <[EMAIL PROTECTED]>: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I have a php script set up for a user to upload a word document, > which is then coverted to html form, which I would then lke to store > in a dat

RE: [PHP] download php

2003-07-10 Thread Ow Mun Heng
I'm not sure about FreeBSD but on Redhat, the /etc/passwd 'IS' meant to be world readable. But fortunately it's only stores usernames and Real names and etc.. whereas /etc/shadow is only root readable and it's the file that stores user's passwords. I think that's pretty secure. Why are you parsin

Re[4]: [PHP] Object assignment

2003-07-10 Thread Tom Rogers
Hi, Friday, July 11, 2003, 4:30:41 AM, you wrote: MG> Well I've made a signifigant improvement to this function, and it's now the MG> parsing operation is only something like 26 lines. It works flawlessly (so MG> far) for XML that does not have repeat element names on the same level. MG> Which se

RE: [PHP] Storing HTML string in database

2003-07-10 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I had forgotten about that, thanks alot - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.developercube.com - -Original Message- Fr

[PHP] Need hep with mysql function

2003-07-10 Thread zlut arch
Hi, I encountered a problem that I have never seen in my 3 years of using php and mysql. Yesterday, I installed MySql, php5, and apache2 on my new laptop. php5 worked fine with apache2, and MySql was working fine on its own. But when I tried to connect to MySql database, I get a strange error m

Re: [PHP] Need hep with mysql function

2003-07-10 Thread Robert Cummings
This has been discussed a lot on many of the PHP forums in the past few weeks. Mysql is not longer bundled with PHP. You need to use the configuration option and set the location of your mysql base directory. Cheers, Rob. On Thu, 2003-07-10 at 21:30, zlut arch wrote: > Hi, > > I encountered a pr

Re[5]: [PHP] Object assignment

2003-07-10 Thread Tom Rogers
Hi, Did some more tweaking and if we create a new element for each node ther is no need to clone, saves a few lines of code :) function parseBranch($branch, &$doc, &$parent) { foreach ($branch as $key => $val) { switch ($key) { // parent attribute

RE: [PHP] Blatant newbie question - killing a session

2003-07-10 Thread Bruce Bruen
Thanks, That did the trick. Nicely encapsualable too, so I can easily remove it. Regards Bruce -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 July 2003 8:23 PM To: Bruce Bruen Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Blatant newbie question - kill

Re[2]: [PHP] /etc/passwd

2003-07-10 Thread Mantas Kriauciunas
Hello Wendell, Thursday, July 10, 2003, 6:59:25 AM, you wrote: >>> So how to make sure that no one can access other people files and >>> server files? and is there any way that nobody would be able to >>> download php files or how to make them look like code when they are >>> downloaded. Than

[PHP] pdf file error?

2003-07-10 Thread Micah Montoy
I did my research. We'll, searched the net anyway without a solution. I am getting the error: Fatal error: PDFlib error: function 'PDF_set_info' must not be called in 'object' scope in c:\inetpub\wwwroot\webpage10\example\utilities\pdf_maker\act_p_makePDF.php on line 4 I read that this is becau

Re: [PHP] Excel Parser

2003-07-10 Thread Tom Rogers
Hi, Friday, July 11, 2003, 4:27:13 AM, you wrote: JM> Hi all, JM> Does anyone know of any free Excel parsing non-COM code available on the JM> net? Just straight php driven? JM> I've found a couple commercial solutions but would like to try this myself JM> or save money. Thanks for any help. JM>

[PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Phil Powell
foreach ($profileArray[$i][attributes] as $key => $val) { $singleProfileHTML .= $key . "=\"" . str_replace("'", ''', str_replace('"', '"', $val)) . "\"\n"; } The parsing error occurs in the "$singleProfileHTML.." line. I'm completely don't get it; I see absolutely nothing wrong with th

[PHP] dump $_POST into variables????

2003-07-10 Thread Joe Harman
Okay, curious if there is an easier way to do this... here is what I do can't I just dump these into an array and and assign it to a variable... maybe that doesn't make sense... basically I just want to have one command that retrives all the "POST" variables... then list my variables ie $ZipCo

[PHP] just wondering

2003-07-10 Thread Artoo
Just wondering if there's a clear screen function in PHP like the clrscr() in 'C'. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dump $_POST into variables????

2003-07-10 Thread Jason Wong
On Friday 11 July 2003 13:01, Joe Harman wrote: > Okay, curious if there is an easier way to do this... here is what I do > > $ZipCode = $_POST['zip']; > $Distance = $_POST['distance']; > ?> > > can't I just dump these into an array and and assign it to a variable... > maybe that doesn't make se

RE: [PHP] dump $_POST into variables????

2003-07-10 Thread Joe Harman
Ah... Jason Man Of Few Words! THANKs... You have saved me time and lines in my code :-) Cheers! Joe -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2003 1:13 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] dump $_POST into variables On Friday 11

[PHP] Re: pdf file error?

2003-07-10 Thread Micah Montoy
Never mind. I found the error. thanks "Micah Montoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I did my research. We'll, searched the net anyway without a solution. I am > getting the error: > > Fatal error: PDFlib error: function 'PDF_set_info' must not be called in > 'obj

Re: [PHP] How to hide url on a php link NOT post...

2003-07-10 Thread Jeff Harris
On Jul 10, 2003, "Joey" claimed that: |How can I hide this link so value can't be changed? |I don't want to change anything at the server level, and its not from a |form so I cant do a post -vs- a get. | |http://www.abcd.com/popup_SearchRepSet.php?searchby=cust_no&search=1&value=WOR032 | |Thanks !

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Lars Torben Wilson
Hi there, On Thu, 2003-07-10 at 21:53, Phil Powell wrote: > foreach ($profileArray[$i][attributes] as $key => $val) { ^^ You should quote the word 'attributes': http://www.php.net/manual/en/language.types.array.php#language.types.array.donts Sorry...that link

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread David Otton
On Fri, 11 Jul 2003 00:53:32 -0400, you wrote: >foreach ($profileArray[$i][attributes] as $key => $val) { > $singleProfileHTML .= $key . "=\"" . str_replace("'", ''', str_replace('"', > '"', $val)) . "\"\n"; >} > >The parsing error occurs in the "$singleProfileHTML.." line. I'm completel

Re: [PHP] regexp problem

2003-07-10 Thread Burhan Khalid
On Thursday, July 10, 2003, 9:25:31 PM, Taylor wrote: TY> First, TY> I need the code to replace the link in a string, like TY> with TY> ereg_replace("''", "''", TY> $old); TY> That was the closest i got, but (.*) makes it take the first BASE HREF, and the last ">>, which sucks. TY> Can anyone

Re: [PHP] Variable Functions...

2003-07-10 Thread Burhan Khalid
On Friday, July 11, 2003, 3:11:51 AM, Michael wrote: MS> Smarty has a class method where it calls: $this->$some_var("somevalue"); Are you sure about that syntax? I'm not too familiar with Smarty, only used it once, but I think its $this->some_var("value"); MS> and this throws errors on Windows

Re: [PHP] What did I do wrong to cause a parse error?

2003-07-10 Thread Phil Powell
Thanx I got it to work, however, I have no idea why it works now considering I did nothing different: $singleProfileHTML .= "\n"; Beats the heck out of me! Phil - Original Message - From: "David Otton" <[EMAIL PROTECTED]> To: "Phil Powell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent

<    1   2