[PHP] Security Permissions

2002-08-30 Thread Georgie Casey
before on my host, i could make directories and write files in PHP. now i cant. my host removed frontpage extensions in the meantime, could they be what allow me? or do they have nothing to do with it -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv

RE: [PHP] request what a user clicked

2002-08-30 Thread stu9820
It's not coming from a form. will the form request still work? >= Original Message From Steve Edberg <[EMAIL PROTECTED]> = >At 03:12 PM 8/30/02 , stu9820 wrote: >>what is php's request object? >>like in ASP - Request("variable") > > >Short answer: > > $_REQUEST['variable'] >

Re: [PHP] Arrays misbehaving!

2002-08-30 Thread Chris Wesley
On Fri, 30 Aug 2002, Cameron Thorne wrote: > I was hoping I could access by either name OR number, but apparently not. Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow really have your heart set on using integers). There are probably

[PHP] Re: Security Permissions

2002-08-30 Thread CHAILLAN Nicolas
Nothing to do with it, verify your permissions on this directory, your user must have read and write permission. chmod -R u=rwx /directory/here . -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergeme

[PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread CHAILLAN Nicolas
did you also destroyed the session? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet "Victor" <[EMAIL PROTECTED]> a écrit dans le message

Re: [PHP] and validator problem

2002-08-30 Thread Tom Rogers
Hi, Friday, August 30, 2002, 7:28:45 PM, you wrote: PT> Hi all. PT> I have a tag: PT> CV PT> when I want to validate page (W3C online validator) , validator prints: PT> Line 37, column 50: PT> How can I solve this? (& doesn't functioning, because after that is PT> &PHPSESSID added automatical

[PHP] Re: bulk mail

2002-08-30 Thread Richard Lynch
>I know a lot has been discussed in this topic, but I still don't find any >solution. You keep ruling out the solutions you do find, which is not quite the same... :-) >What I want to do is send a lot of mails triggered from a web page using >php. Bad Idea. PHP was never designed to send a "

[PHP] Re: Apostrophe in preg_match?

2002-08-30 Thread Richard Lynch
>I'm trying to get an apostrophe (and a dash, as well) to be >included in a preg_match expression, but I don't know how to escape the >characters. The dash has to come "last" in your [] grouping: [!a-zA-Z-] ^ | This will work. The ' is a matter of counting how many \s PHP wan

[PHP] Re: use curl.so with php4.1.0 and apache1.3.22 and curl7.9.8

2002-08-30 Thread Richard Lynch
>When I restart apache this is the message: > >Stopping httpd:[ OK ] >Starting httpd: PHP Warning: Unable to load dynamic library >'/usr/lib/php4/curl.so' - /usr/lib/php4/curl.so: cannot open shared object >file: No such file or directory in Unknown o

[PHP] Re: foreach fails on unitialized array?

2002-08-30 Thread Richard Lynch
>When I use foreach on a uninitialized array I get the following warning: > >Warning: Invalid argument supplied for foreach() in >/www/htdocs/jc/cart/add_item.php on line 21 > >I would expect foreach to treat an unitialized variable as an empty >array and hence do nothing. Is this the expected

[PHP] Re: that UNIX permissions thing again -- sort of

2002-08-30 Thread Richard Lynch
>Our image gallery application takes a directory tree of images uploaded >by the user and then does all sorts of magic to make thumbnails, track >comments, and so on. The only thing owned by the user is the directory >tree and its contents; everything else is owned by the web server ID. > >All of

[PHP] Re: Problems with PHP 4.2.2 and *IMAP*

2002-08-30 Thread Richard Lynch
>Yes. Another poor soul who is having problems with PHP and installing the >IMAP library. I've installed Apache 1.3.26, PHP 4.2.2 and MySQL and they all >work just fine together. But I want IMAP as well, because I want my webmail >app to work. > >I compiled PHP like so: >$./configure --with-ap

[PHP] Re: Window/Page/Browser/Screen width

2002-08-30 Thread Richard Lynch
>I've seen similar questions in archives so sorry if I'm asking the same thing >again! > >Is it possible, using php, to get the screen, page, or window width? Not really... >My aim would be to have a set of picture thumbnails, and give the html the best >number of columns depending on the size o

[PHP] Re: Stepping through an array more than once

2002-08-30 Thread Richard Lynch
>Now, obviously this only echoes the first part, as it seems the array is >at the end when it tries to loop through again. >I tried a reset($myrow_it) , but it drops an error about $myrow_it not >being an array. It's not an array, it's a MySQL result identifier. You want http://php.net/mysql_dat

[PHP] Re: Reconfigure PHP

2002-08-30 Thread Richard Lynch
>I have installed GD, libpng, zlib, jpeg-6b, and FreeType 2. I now need to >reconfigure PHP 'with' these additions. I don't understand how to determine >what directories to point to for each of these 'with' statements. In >Windows, I would just look for an exe, but under UNIX (Solaris 7) I not sur

[PHP] Re: whats wrong with this?

2002-08-30 Thread Richard Lynch
> if($day = $system_day){ > >the problem i am experiencing is that it seems the "if" statement is setting >the $day value to equal $system_day instead of comparing their values >if i add That's because you have only one = sign there. = by itself does the assignment (setting a value) == does

[PHP] Re: php and gnupg problems.

2002-08-30 Thread Richard Lynch
>Hi, >Appologies if this comes through twice. I tried to post it via goolg groups >but it didn't seem to work. > > >If I run the following script from within apache, then the script >fails and returns $error=2 >$data="this is a test"; >$GNUPGHOME="/home/nobody/.gnupg"; >putenv("GNUPGHOME=$GNUPGHO

[PHP] Re: Configure 'with' PHP

2002-08-30 Thread Richard Lynch
>I am proceeding with adding support for gd-2.0.1, libpng-1.2.0, jpeg-6b, >zlib-1.1.4, and freetype-2.1.2. The configure script is ending with an >error. Here is my configure command as well. I am using PHP 4.0.6. > >./configure \ >--with-apxs=/usr/local/apache/bin/apxs \ >--with-mysql=/usr/local/

[PHP] Re: include interpreted php file

2002-08-30 Thread Richard Lynch
>pb : include a php file in an other php file >contraints : the php file must be interpreted before being included >solution known : fsock then get the html code from the server and include >it... > >Is there an other solution (easier) to include that file? Not real sure if you *want* the PHP fil

[PHP] Re: Scheduling tasks

2002-08-30 Thread Richard Lynch
>Hi, > >I'm trying to work out how to schedule tasks in php. I would like to use at >but are having a few difficulties. > >Does anyone have any suggestions on an alternate way to schedule a command >to run on the system via php. Make sure you have configured and installed PHP as a "CGI" as well a

[PHP] Re: command line argument vs. urlencode ?

2002-08-30 Thread Richard Lynch
> Any one know why the "+" (plus sign) is not passed as argument to >$argv when calling a php script from linux shell ? > >php test.php 123 xxx+ Best guess is + is a special character in the shell, so you need: php test.php 123 "xxx+" Or maybe even so far as: php test.php 123 "xxx\

[PHP] Re: Proxy taking me to localhost.com

2002-08-30 Thread Richard Lynch
>I am on a cable connection...and to connect to the net my provider gave me >an address where my browser would get automatically configured...maybe >because of that I am goint to localhost.com? >I may be way off track here coz I dont know the first thing about what the >heck a proxy itself is b

[PHP] Re: Permission Denied

2002-08-30 Thread Richard Lynch
>I use PHP to send mail. Recently, emails originating >from the server stopped sending. After some >investigation, I looked at the /var/log/maillog file, >and saw the following errors when a mailing tried to >originate: > >Aug 29 13:16:10 x sendmail[1162]: g7TIGA001162: >SYSERR(apache): Can't crea

[PHP] Re: and or statement

2002-08-30 Thread Richard Lynch
>What is the "and" "or" statement in php? > >I need this to see if the first statement is whatever, and or the second >statement is whatever... > >if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {} "and" and "or" mean pretty much what they would in English: The expression "x AND y" only returns

[PHP] Re: using php from command line

2002-08-30 Thread Richard Lynch
>Hi to all, > > I have a problem here in using php in command line i cant find the php >executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 >with --enable-cli. > >Any idea why? I need to run a php script using cron, or if you have any >suggestion please share. Did you do "mak

[PHP] Re: Question about sending varibles to script

2002-08-30 Thread Richard Lynch
>I have following question. How can i send to a script varible, but not from >HTML form but via URL. (I'm talkin about something like >http://www.domain.com/script.php?id=1 > in earlyier version o php). -- Like Music? http://l-i-e.com/artists.htm -

[PHP] Re: Where is my REMOTE_USER?

2002-08-30 Thread Richard Lynch
>when logging in with username and password with the good old "Require user" >mechanism in Apache I could earlier see the name of the user logging in as >$REMOTE_USER. > >But it seems now to have disappeared. It seems to be nowhere, neither as > >$GLOBALS['REMOTE_USER'] >$_SERVER['REMOTE_USER']

[PHP] Re: gettext

2002-08-30 Thread Richard Lynch
>Hi >I'm using gettext to add i18n to a web site, and it seems to work fine, >but the translation is done randomly. I mean that if you reload many times >the page, sometimes it gives back the translated message and sometimes the >untranslated one. >These are the steps I followed to use gettext wit

[PHP] Re: Reading header information

2002-08-30 Thread Richard Lynch
>What I'd like to do is get some of the information found when you do a >telent on port 80 like this below.. > >telnet www.hostname.com 80 >Trying www.hostname.com... >Connected to.www.hostname.com >Escape character is '^]'. >HEAD / HTTP/1.0 > >HTTP/1.1 200 OK >Date: Thu, 29 Aug 2002 17:00:09 GMT

[PHP] Re: performing searches with random entries

2002-08-30 Thread Richard Lynch
>I'm trying to take a variable in that would be usually 3 to 4 words (could >be more or could be less). Right now, I'm exploding the variable and >testing each individually, but this obviously is a pain with the more >variables you get, and the result I get from the mysql search doesn't give >me

[PHP] Re: count errors

2002-08-30 Thread Richard Lynch
>I have a function that resets the count of fields with certain values when >called. 99.9 percent of the time it works fine. However occaisionally it >wont update the database. Even after breaking the selects up it still fails >sometimes. If anyone has an idea of why I would really appreciate hear

[PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread Richard Lynch
>I can logout with session_unregister - but w00t about the back button? > >This is probably so trivial that it has been discussed before, if anyone >has some knowledge or link at hand mind passing it on? Thanks. If you are using Cookies, then everything is fine. Their cookies will be gone, and t

[PHP] Re: Using cURL

2002-08-30 Thread Richard Lynch
>Dear All, > >I'm using a shared server hosted by an ISP. I cannot get PHP recompiled >with --with-curl. I've read the information about cURL but it appears that I >need to be root in order to install it? I cannot do this. Does this mean >that I cannot use cURL or CURL at all? If it doesn't what d

RE: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread victor
K, thanks, i will sort of realized this, but I was wondering if the user is silly enough to leave the browser window open then someone can press the back button and go back, I will probably write a message somewhere to tell the user to close the browser window. To the one who asked about the sess

[PHP] --with-imap strangeness in 4.3 dev

2002-08-30 Thread Michael Geary
Hi Folks, I am on OS X 10.2, and I'm compiling the latest dev version of PHP as found at Zend: http://snaps.php.net/php4-latest.tar.gz In general, I am having good success with it. However, I am having some strangeness with Imap integration. For reference, I have OpenSSL and the C-client ins

Re: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread Justin French
If you were REALLY concerned, you could use JavaScript (JavasCrap) to open a new window and close the parent... this way there would be no such thing as a "back" button... it'd be disabled. I think later version of JS can empty the history too (unsure though). It's not going to be fool proof for

Re: [PHP] request what a user clicked

2002-08-30 Thread Chris Shiflett
I'm not sure if you've gotten any responses to this, but you might try asking a question that doesn't require knowledge of ASP. Though a lot of people do know both PHP and ASP, just about everyone reading this list at least knows PHP. Some of us are lucky enough to have never had to learn ASP

RE: [PHP] Re: session_unregister - but w00t about the back button?

2002-08-30 Thread victor
I did a : session_unregister('xxx'); session_destroy(); header("Location: http://www.xxx.com/xxx";); and mozilla is the only browser out of ie6 netscape 4.7 and mozilla to respect the logout and not repost the data on reload or back request. Go mozilla. I guess the big boys somewhere are taking

Re: [PHP] PHP_AUTH_USER

2002-08-30 Thread Hendråwan Rinäldi
- Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: "Hendråwan Rinäldi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 30, 2002 4:49 PM Subject: Re: [PHP] PHP_AUTH_USER > I'm afraid you're going to have to be more specific than that my friend. > every body

[PHP] few things...

2002-08-30 Thread Matt Zur
First of all... I'm a bit confused is there really a difference between echo and print? They seem to do the same thing? Also... I have trouble searching for these things in the docs: A Call Function to emulate a browser and contact a remote host? For example... to load in a piece of text f

Re: [PHP] few things...

2002-08-30 Thread Chris Shiflett
Check our cURL for Web client functions. I'm not aware of a function like hidden() the way you describe it, but you could easily write it yourself. Look into user-defined functions in the manual. Happy hacking. Chris Matt Zur wrote: > A Call Function to emulate a browser and contact a remot

[PHP] Re: foreach fails on unitialized array?

2002-08-30 Thread Richard Lynch
>>From: "Richard Lynch" <[EMAIL PROTECTED]> >> >>If you absolute *MUST* refuse to initialize the array (BAD IDEA!) >> >>You would be *MUCH* better off listening to those >warnings and fixing your code. > >I totally agree with. I was just peeved that PHP would handle unitiliazed >strings without a

<    1   2