Re: [PHP] hacks we should know about

2001-08-21 Thread Bill Rausch
Richard Lynch replied: ... - Kills file upload completely I *think* safe_mode can be on and files can be uploaded if the ISP works at it... But they have to want it bad enough to do some configuration. Most ISPs want to just install stuff as-is and not take the time to find out how to

Re: [PHP] generate documenation?

2001-08-21 Thread eschmid+sic
On Tue, Aug 21, 2001 at 12:47:14PM -0400, Daniel Adams wrote: Anyone know what they use on php.net to generate the documentation? Can you do stuff that big with doxygen? We use DocBook (XML), Jade and the modular Stylesheets (DSSSL) from Norman Walsh. -Egon -- All known books about PHP and

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread rm
I assume your running apache, if so...take a look at the apache error.log file, there may be some hint in there as to the problems...usually/ program files/apache/logs rm --- Chris Hayes [EMAIL PROTECTED] wrote: hi, i am trying to install the thousands-of-lines big postnuke.com website

RE: [PHP] hacks we should know about

2001-08-21 Thread Seb Frost
I don't host my own site so how can I put include files outside of the web root? I log on ftp and my top level IS the web root (htdocs), I can't go any higher. - seb -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 05:01 To: Bob Cc: [EMAIL

Re: [PHP] hacks we should know about

2001-08-21 Thread Alexander Skwar
So sprach »Seb Frost« am 2001-08-21 um 18:25:08 +0100 : I don't host my own site so how can I put include files outside of the web root? I log on ftp and my top level IS the web root (htdocs), I can't go any higher. In this case you can't. Alexander Skwar -- How to quote:

[PHP] Re: force download in IE

2001-08-21 Thread Tim Frank
Some versions of IE will sniff the file to determine what type it is rather than taking your word for it that you REALLY want to download the file. From my memory this is IE 4, and IE 5.5 where this is a problem. The way I dealt with this is to totally make up an application type

Re: [PHP] hacks we should know about

2001-08-21 Thread Ashley M. Kirchner
Alexander Skwar wrote: So sprach »Seb Frost« am 2001-08-21 um 18:25:08 +0100 : I don't host my own site so how can I put include files outside of the web root? I log on ftp and my top level IS the web root (htdocs), I can't go any higher. In this case you can't. Dumb question:

[PHP] Newbie Question: Forcing a page load with no click

2001-08-21 Thread LB
I've built a small login script (code fragment below), and want to force a page load depending on if the login was valid or not. How do I make PHP redirection to a new page? Ideally, I want the equivalent of building an query string such as goodpage.php?Username=?echo $Username? and forcing it to

Re: [PHP] Newbie Question: Forcing a page load with no click

2001-08-21 Thread Dallas K.
use require_once(page); to include the page or use header(Location: page); to redirect to a different page - Original Message - From: LB [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 21, 2001 10:58 AM Subject: [PHP] Newbie Question: Forcing a page load with no

Re: [PHP] Re: Use cron to execute a script -- OTHER problem now

2001-08-21 Thread Travis Cannell
Ok I have the same problem but this isnt working. The first line of my sript is #!/usr/local/php -q , BTW this isnt in the ? ? brackets, but should it be? then I use lynx -dump -http://localhost/show_reminder.php in the crontab, but the mailer demon gives me the message your terminal lacks the

Re: [PHP] mime types

2001-08-21 Thread Evan Nemerson
Making a web based proxy server. On Tuesday 21 August 2001 01:08, you wrote: On Tue, 21 Aug 2001 18:01, Evan Nemerson wrote: Well, I hope nobody will ever have to do what I just did, so here you go. I got them from the apache/conf/mime.types Have fun! $extensions = Array(

Re: [PHP] List of files?

2001-08-21 Thread Hugh Danaher
how about readdir() in a while loop. - Original Message - From: Seb Frost [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 21, 2001 5:26 AM Subject: [PHP] List of files? OK so I'vebeen reading about reading and writing to/from files, but what I want to do is (I think)

[PHP] To jump or not to jump?

2001-08-21 Thread Seb Frost
Is it good practice (sp?) to jump in and out of php whenever you've got some plain html to write, or should one write an entire file in php? I'm leaning towards the latter, unless there's a huge chunk of html code. opinions? - seb -- PHP General Mailing List (http://www.php.net/) To

[PHP] header() not working.

2001-08-21 Thread Jay Paulson
anyone know why the header() wouldn't work? I don't have anything being printed out before or after I call the header(). The only thing that does happen is when it tries to redirect the user it sends them to a 404 page error. Also, when I check the web server log it says it's trying to call

Re: [PHP] To jump or not to jump?

2001-08-21 Thread Jay Paulson
I would say not to embed php in html... look at class.FastTemplates.php, just go to google.com and do a search.. also some people like PHPLib Templates. jay - Original Message - From: Seb Frost [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 21, 2001 2:10 PM Subject: [PHP]

[PHP] Re: header() not working.

2001-08-21 Thread Gijsbert te Riet
Hi Jay, anyone know why the header() wouldn't work? I don't have anything being printed out before or after I call the header(). The only thing that does happen is when it tries to redirect the user it sends them to a 404 page error. Also, when I check the web server log it says it's

RE: [PHP] header() not working.

2001-08-21 Thread scott [gts]
header() works. it's the text that header() is printing that's causing problems. what are you outputting via header() ? -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] header() not working.

Re: [PHP] header() not working.

2001-08-21 Thread Jay Paulson
There's my code below: header(Location:loggedon.php?SID=$SID); exit; I know the file is there cause I look right at it when I do an ls command. I also know that the $SID variable is set cause I've echoed that out before the header(). The header() seems not to work on files that are in the same

[PHP] Re: Multi-dimensional array issue solved

2001-08-21 Thread Ken Hopkins
Thanks; after some all-nighter testing have come up with a solution. Will definitely have to access the individual variables as (quoted_strings) instead of ($variable). Looks like this works: ? $out = array(0 = array(name, srch, sel, case, qvalues = array(0 = array(values, valtypes),

[PHP] PHP_UK Meeting, Sat Sept 8th, Taunton, Somerset

2001-08-21 Thread James Moore
Hi all, Just to confirm over the past week or so I have received enough interest in the meeting for it to take place. The details will be as available at http://www.phpuk.org/meetings.php For those who asked how to get tickets please send monies to: James Moore Prospect House Tower Hill

[PHP] sessions

2001-08-21 Thread Jeremy Morano
Hi , I'm having problems with my session_unregister(). Maybe what i'm trying to do can't be done but I would like someones opinion. This is what I am doing and why i'm doing it. session_start(); session_unregister(val_1); session_register(val_1); I am doing this to clear the contents of val_1

RE: [PHP] sessions

2001-08-21 Thread Johnson, Kirk
session_start(); session_unregister(val_1); session_register(val_1); I am doing this to clear the contents of val_1 before I use it again. Needless to say its not working. val_1 always contains the same value until session_registering()'ing a variable just puts it in a list of names of

[PHP] URGENT AND CONFIDENTAIL

2001-08-21 Thread ceaser benene
tel:874-762-727947 fax:874-762-727949 #20 LOUIS BOTHA CERSCENT, SADTON SOUTH AFRICA. Dear sir, In order to transfer out (USD 126 M) One hundred and twenty six million United States Dollars) from African Development Bank. I have the

Re: [PHP] header function

2001-08-21 Thread Christian Reiniger
On Tuesday 21 August 2001 16:53, Jay Paulson wrote: I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run my script and it hit's: header(Location:index.php); well the thing is once it hits that line in my script and just fails, however i don't get any type of parse error

Re: [PHP] Need Working... pop up dialog (repost)

2001-08-21 Thread Christian Reiniger
On Tuesday 21 August 2001 17:10, Ray Clouse wrote: So we need to keep as much compressed as possible, but we have to uncompress the data for the webpages to use it. The PHP webpages on the server use the uncompressed data to generate plots. The data is never sent to the user, just the

[PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnny Nguyen
This is the code in the first page that I visit. ? session_start(); $check0 = session_is_registered(fb); $check1 = session_register(fa); $check2 = session_is_registered(fa); $check3 = isset($HTTP_SESSION_VARS[fa]); $HTTP_SESSION_VARS[fa] = avalue; $check4 = isset($HTTP_SESSION_VARS[fa]); echo

[PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
I have two pages page1.php and page2.php here is the code for page1.php: ? session_start(); if (session_is_registered != 1) { session_register(FailedLogins); $HTTP_SESSION_VARS[FailedLogins] = 0; } if

Re: [PHP] hacks we should know about

2001-08-21 Thread Alexander Skwar
So sprach »Ashley M. Kirchner« am 2001-08-21 um 11:46:29 -0700 : Dumb question: Can't he create a new folder under his web root (let's call it 'incs') and setup an .htaccess file that denies requests to files within that? Yes, he might be able to do so - but it's also possible that the

[PHP] Re: To jump or not to jump?

2001-08-21 Thread Gabe da Silveira
I generally like to write separate library files containing most of the code, store them outside of the web directory, include the necessary libraries and then just insert function calls where I need them in the html. From: [EMAIL PROTECTED] (Seb Frost) Newsgroups: php.general Date: Tue, 21

RE: [PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Johnson, Kirk
apparently, session_is_registered and isset return null if they evaluate to false. I was expecting boolean true and false return values, What you were expecting is correct, boolean true/false. However, it appears that PHP converts these values to strings during the echo. true converts to

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
Start with this correction on page1.php: if (session_is_registered != 1) { should be if (session_is_registered(FailedLogins) != 1) { We'll go from there :) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] IIS

2001-08-21 Thread hassan el forkani
:)) Microsoft's web server (Internet Information Server) At 16:52 22/08/01, nafiseh saberi wrote: hi. what is IIS? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Need Working... pop up dialog (repost)

2001-08-21 Thread Ray Clouse
Another part of this is an external program on the server that can't read from the gzipped file. The file has to be uncompressed, unfortunately. The resulting uncompressed file is recompressed through a cron job after 30 days if it hasn't been used for 30 days. I came up with something that

Re: [PHP] Re: To jump or not to jump?

2001-08-21 Thread Alexander Skwar
From: [EMAIL PROTECTED] (Seb Frost) Newsgroups: php.general Date: Tue, 21 Aug 2001 20:10:38 +0100 To: [EMAIL PROTECTED] Subject: To jump or not to jump? Is it good practice (sp?) to jump in and out of php whenever you've got some plain html to write, or should one write an entire

Re: [PHP] Sessions, Is this behavior by design?

2001-08-21 Thread Alexander Skwar
So sprach »Johnny Nguyen« am 2001-08-21 um 12:29:53 -0700 : false. I was expecting boolean true and false return values, but no matter i can work with it this way, just wondering if this is by design.? There isn't such a thing as boolean true or false in PHP. In PHP, everything other than

[PHP] how expensive is Image functions?

2001-08-21 Thread ERISEN, Mehmet Kamil
Hello All, How expensive are the image functions as far as the system resources go. Would it be too expensive to use php to create simple gifs like buttons, tabs etc. Thanks, Erisen ulrAslan. = Mehmet Erisen http://www.erisen.com __ Do

[PHP] mySql_fetch_array($result) question.

2001-08-21 Thread ERISEN, Mehmet Kamil
Hello All, Another question. Here is the problem: - One SQL query - 1 result. I have a form that has more than one drop down lists. I like to use the mysql_fetch_array($result) to populate the select options. The problem is that after the first use, the mysql_fetch_array($result) does not

[PHP] Re: mySql_fetch_array($result) question.

2001-08-21 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Mehmet Kamil Erisen) wrote: I have a form that has more than one drop down lists. I like to use the mysql_fetch_array($result) to populate the select options. The problem is that after the first use, the mysql_fetch_array($result) does not

Re: [PHP] URGENT AND CONFIDENTAIL

2001-08-21 Thread Christopher CM Allen
In order to transfer out (USD 126 M) One hundred and twenty six million United States Dollars) from African Development Bank your private telephone and fax number including the full details of the account to be used for the deposit. lol sheesh! -- PHP General Mailing List

[PHP] Not allowing same value in array. Example requested

2001-08-21 Thread Montz, James C. (James Tower)
Can someone show me how I could walk through each value (a random number) in an array to make sure no 2 are the same? I'm basically just trying to generate a random number generator. I'm just looking to create 10 numbers, none of which can be duplicates. Thank you in advance! -- PHP General

[PHP] Returning info from a function

2001-08-21 Thread Richard Kurth
Could somebody tell me way this function will not work I know the script inside the function works because I have tested it but when I put it in a function all I get back when I call it is a 1 function getpath($search) { Global $search,$path; $a = `/bin/ls -al /home/sites/ | awk {'print $9 $10

[PHP] change user after uploading file using a form

2001-08-21 Thread Jeroen Olthof
hi, I'm using the form file object for uploading a file because php using ftp isn't supported on my provider but everthing ok so far. Now the http user (lets say the user that php is running on) is owner of the file, I want to change this to the user I am (the ftp user) hosting is running linux

[PHP] Re: Not allowing same value in array. Example requested

2001-08-21 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (James C. Montz) wrote: Can someone show me how I could walk through each value (a random number) in an array to make sure no 2 are the same? http://php.net/manual/en/function.array-unique.php -- CC -- PHP General Mailing List

RE: [PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
oops. of course that's what i meant. -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 1:56 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Session Headaches Start with this correction on page1.php: if (session_is_registered != 1) {

[PHP] attachments

2001-08-21 Thread Nicholas Thompson
I am currently using an e-mail page that supports uploads, but does anyone know how to get the attachment to actually attach to the message? (perhaps even upload it to other mail servers like yaho) Uploading to my server is fine, but when I send messages with attachments and check my mail

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
OK, the session_is_registered() thing is correct. It seems like the gist of the problems is that different pages can't seem to modify the same session variables. This is definitely not the case. Two things to try: 1. In page2, put some logic around the session_register(FailedLogins);,

[PHP] Re: Page detect

2001-08-21 Thread J Smith
If you're talking about the PHP page itself, try $PHP_SELF. If you want to know what page sent the form data to the PHP page, try $HTTP_REFER. Be careful, though, as not every browser sends the referring page along with a request, leaving $HTTP_REFER empty. J Kevin P wrote: Hi all I

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
Error.log does not get new lines, but if i have it open in an editor, and cause the crash again, the editor says it changed, so probably the date is changed? vhost.acces.log gets these lines (each split in 3 by me): (uri: http://localhost/trials/postnuke/ ) 127.0.0.1 - -

RE: [PHP] chicken and egg problem with SID

2001-08-21 Thread Johnson, Kirk
One way around this is to make the first page just a dummy that starts a session then redirects to the real first page, with the session id passed on the redirect URL. Kirk -Original Message- From: Egan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 10:56 AM To: [EMAIL

RE: [PHP] Session Headaches

2001-08-21 Thread Johnny Nguyen
I am using php 4.0.6 and i would rather not use global variables. regards, Johnny Nguyen -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 3:33 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Session Headaches OK, the session_is_registered()

Re: [PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
Richard, thank you for your suggestion. i installed PHP 406 over the 405 and now i don't get the error anymore. so whatever was the cause is solved now. Chris vhost.acces.log gets these lines (each split in 3 by me): (uri: http://localhost/trials/postnuke/ ) Chris I assume your

RE: [PHP] Returning info from a function

2001-08-21 Thread Dave
I'll assume the is legit (never used it in PHP personally) here is a restructured function assuming all your provided code does what you want !untested! function getpath($search) { # removed $path and $search... $search is already passed # and you are only using $path in the

[PHP] Regular Expressions....

2001-08-21 Thread Steve Wright
HEy, i am having major problems trying to work out this regular expression. Regular expressions are still quite new to me, and i don't fully understand them, so please bear with me... thanks! This is what i wanmt to do, turn the following block of text: if (top != self)

RE: [PHP] Session Headaches

2001-08-21 Thread Johnson, Kirk
I am using php 4.0.6 and i would rather not use global variables. I hear ya. After playing around with this, your approach works if register_globals is set to off (I did this with an .htaccess file). I'm surprised by this. It appears that the global version of a variable still overwrites the

[PHP] hello and a question

2001-08-21 Thread Kevin Keeler
Hi. I just joined the list and, of course, I have a question. I've searched for quite a bit of time now, but to no avail.. mostly, I suspect, because all the relevant search terms are to broad. But heres my problem: I have a journal I whipped up and tweak often that uses PHP and MySQL (no small

[PHP] Re: hello and a question

2001-08-21 Thread jimw
Kevin Keeler [EMAIL PROTECTED] wrote: $entry_hidden = eregi_replace(hide.+/hide,hidden,$entry); try: $entry_hidden = preg_replace(|hide.+?/hide|i,hidden,$entry); .+ is 'greedy', meaning it consumes as much as text as it can. with perl-like regular expressions, you can add a trailing ? which

Re: [PHP] Re: hello and a question

2001-08-21 Thread Kevin Keeler
yay. this preg business methinks needs some more looking into. ;) everywhere I've looked theres always one or 2 people proselytizing its greatness. my late-night boredom reading of O'Reilly's _Perl_ (sans computer or pause) left little behind little information in my head, not surprisingly.

[PHP] download script

2001-08-21 Thread AD
Hi, I'm working on a download script header(Content-Type: application/octet-stream\n); header(Content-Length: $size\n); header(Content-Disposition: attachment; filename=\$file\\n); header(Content-Description: Download\n); readfile($path.$file); This works, but when the initial file download

Re: [PHP] download script

2001-08-21 Thread Brad Hubbard
On Wed, 22 Aug 2001 10:19, AD wrote: Hi, I'm working on a download script header(Content-Type: application/octet-stream\n); header(Content-Length: $size\n); header(Content-Disposition: attachment; filename=\$file\\n); header(Content-Description: Download\n); readfile($path.$file);

[PHP] Mcrypt: just a little tip:-)

2001-08-21 Thread Alex Piaz
Hi Folks! I am working on a project where I need to encrypt some data that will be decrypted later by a visual basic application and also receive encrypted data from that application and decrypt it on the webserver. To exchange the data, I did some xml and everything went fine, but I can't

[PHP] Re: To jump or not to jump?

2001-08-21 Thread Richard Lynch
Jump out for anything more than three lines of pure HTML. Your HTML will be much easier to read. Speed-wise, it just doesn't matter, unless you intentionally alternate back-and-forth every other line... Even then, the difference is negligible. -- WARNING [EMAIL PROTECTED] address is an

[PHP] Re: strange upload/db-insert problem with ie5.5

2001-08-21 Thread Richard Lynch
1)select the document, then upload through form with method post - target same document 2)do the checking stuff with the document, if ok call the same script again for displaying the property-page - form-target same document Don't do that. Just do everything in one script. 3) if

[PHP] Re: Include/requrie secure pages

2001-08-21 Thread Richard Lynch
You would have to use cURL to get those. HTTPS pages require that the client (in this case PHP) negotiate a secure connection using SSL and thus sending back and forth some headers of public/private key-pairs. cURL does this. PHP's include() doesn't. -- WARNING [EMAIL PROTECTED] address is an

[PHP] Re: attachments

2001-08-21 Thread Richard Lynch
You need to not just use the mail() function, but use something like Manuel Lemos' mail class that does the mime-encoding needed to do attachments... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: passing variables between PHP and Perl

2001-08-21 Thread Richard Lynch
http://php.net/exec/ You can get back whatever Perl spews out to 'stdout' using that. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: showing submitted images

2001-08-21 Thread Richard Lynch
A FORM submission is supposed to return an HTML document, not a JPEG. Have your return document look more like this: echo IMG SRC=display.php?pathname=$form_data_name; Then, move your header() and fread into the display.php file. The catch is the file is DELETED after the upload script

[PHP] Re: Passing variables to a file

2001-08-21 Thread Richard Lynch
You could give them a session ID, and then keep foo completely on the server. http://php.net/session_start If you just want it invisible to most users but not really *SECRET*, a simple POST form works. They can still see it if they do View Source in the browser. -- WARNING [EMAIL PROTECTED]

[PHP] Re: unix permission converter

2001-08-21 Thread Richard Lynch
I have written a Permission Converter which converts unix permissions (the ones we know from CHMOD) into a - delimited string of numbers. I also made it that it supports one more level (unix only has 3 different types of permissions, (r,w,x) while mine can handle a fourth one. Since I'm just

[PHP] Re: 2D-3D Imagem (GD Library)

2001-08-21 Thread Richard Lynch
I'd like to know if I can create 2D images with the image function of GD Library. I'm guessing you mean 3-D, since 2D is just there... AFAIK, there's no built-in 3-D support to GD. You'd have to have a separate 3-D engine and a renderer to project it onto 2D before you ever touched the GD

[PHP] Re: PHP files appearing in error_log

2001-08-21 Thread Richard Lynch
The issue is that every once in a while I get a full copy of a page in my system error_log. That is, not the error_log for the site the page exists on, but the /var/log/httpd/error_log. Wild Hypothesis: Some worm/virus/hacker is trying to access:

Re: [PHP] hacks we should know about

2001-08-21 Thread Richard Lynch
There *SHOULD* be some directory outside htdocs you can get to... Talk to your ISP to see if there is. If not, create a directory and add Apache directives to Deny All access to that directory. Not as good, but better than nothing. -- WARNING [EMAIL PROTECTED] address is an endangered species

[PHP] Re: security check - virtual host and mod php setup

2001-08-21 Thread Richard Lynch
please hack apart this solution and point out the error/insecure nature of the setup. goal, provide php access to name based virtual hosts on FreeBSD boxes problem, security of PHP access to base system and other user scripts solution, apache compiled with suexec # set user and group

[PHP] Re: confusing problem w/sessions

2001-08-21 Thread Richard Lynch
i have a simple snippet of code : But before you got to this code, there was some more code, or some includes, or some HTML... ? session_start(); $a = 10; session_register(a); ? i am trying to understand how do session work. Accessing at this document directly from the

[PHP] Re: flash and mysql

2001-08-21 Thread Richard Lynch
Rasmus has some sample code in his talks. It's not real fancy, just makes a Flash movie with PHP flying all around. Should be enough to help you get started though. http://conf.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out?

[PHP] Re: INPUT type=file value=????

2001-08-21 Thread Richard Lynch
The W3C HTM 4x spec(s) say that when using the file type on a form input element, User agents may use the value of the value attribute as the initial file name. They *MAY* use it? As in, if they feel like it?... W3C has a lot of specs that have nothing to do with what the browsers have

Re: [PHP] Need Working... pop up dialog (repost)

2001-08-21 Thread Richard Lynch
You may just need a flush() call after the Starting UNZIP. http://php.net/flush PHP (Apache, actually) sends data to the browser when there's enough to send, not right away. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music?

[PHP] Re: register_globals odd behaviour?

2001-08-21 Thread Richard Lynch
I think you should still use $count++ The array is just there for you to *READ* data, not to alter it. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: $PATH_INFO strangeness

2001-08-21 Thread Richard Lynch
Produces the result (among everything else): HTTP_SERVER_VARS[PATH_INFO]: /foo/bar However, an ? echo Path info: $PATH_INFO; ? produces an empty result. Same with $HTTP_SERVER_VARS[PATH_INFO]. That's crazy... You're not doing this inside a function and forgetting: global $PATH_INFO are

[PHP] Re: Help me on server.

2001-08-21 Thread Richard Lynch
Can you surf to the IIS machine and get HTML. Can you use: telnet IIS-host 80 GET /whatever.php HTTP/1.0 (Hit return twice) and get the HTML? If so, the problem is probably in Java, not in PHP. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help

[PHP] Re: Increase field value by 1 problem

2001-08-21 Thread Richard Lynch
function updateHitCounter($id,$PHPSESSID,$type){ $flag=$this-validateSession($PHPSESSID); if($flag==1){ include(admin/config.inc.php); $connection = mysql_connect($host,$username,$password); if ($connection == false){ echo mysql_errno().:

[PHP] Re: 404 header

2001-08-21 Thread Richard Lynch
Just telnet to a 404 page that works and see what that outputs... I'm guessing: header(404: Page does not exist); -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little

[PHP] Re: chicken and egg problem with SID

2001-08-21 Thread Richard Lynch
I can generate some random value to be used for the session_id, but I can't think of a good way to store it for use on the first page. Why does it matter if they hit refresh and get a new session ID before you've collected any information about that ID?... About all you *COULD* do is have a

[PHP] Re: PHP and the Console

2001-08-21 Thread Richard Lynch
You have to compile PHP a second time without the --with-apxs (or --with-apache). If you still have your PHP source code, just copy config.nice to config.cgi, and edit it to remove the --with-apxs line. Then do make clean ./config.cgi make You'll get a binary file called php which you can

[PHP] Re: how expensive is Image functions?

2001-08-21 Thread Richard Lynch
How expensive are the image functions as far as the system resources go. Would it be too expensive to use php to create simple gifs like buttons, tabs etc. How busy is your server?... Would I recommend it for Yahoo.com? No. Would I recommend it for some site that has low-traffic?

[PHP] Re: our country

2001-08-21 Thread Richard Lynch
Check at http://www.phpusergroups.org to see if there's a User Group in your area. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: change user after uploading file using a form

2001-08-21 Thread Richard Lynch
I'm using the form file object for uploading a file because php using ftp isn't supported on my provider but everthing ok so far. Now the http user (lets say the user that php is running on) is owner of the file, I want to change this to the user I am (the ftp user) hosting is running linux

[PHP] Re: Mem and variables

2001-08-21 Thread Richard Lynch
odd question, but if variables are stored in memory until the script terminates, that includes old unused variable, isn't it more efficient, memory wise, to reuse old variables that reference, in effect the same basic data, rather than create new or additional variables The difference

[PHP] Re: HELP with Regular Expressions

2001-08-21 Thread Richard Lynch
if (($hostname) || ($HOSTNAME)) { $hostname= trim($hostname); if ($HOSTNAME) $hostname = trim($HOSTNAME); if (!eregi(^[-a-z0-9-]+(\.[a-z0-9-]+)*$ , $hostname)) { print_error(your byour hostname/b is invalid); } $HOSTNAME = $hostname; } Things I know are wrong:

[PHP] Re: Help with ImageCreateFromGIF()

2001-08-21 Thread Richard Lynch
Is it possible to import images from external sources using ImageCreateFromGIF()? I am working on a script that is designed to pull a web-based counter into another image on my server, but I get errors from every external URL I've tried so far. Probably not. You'll have to suck the GIF down

[PHP] Re: if statement and imageline()

2001-08-21 Thread Richard Lynch
What are you getting? An image at all? Broken image? Try getting rid of the header(image/jpeg) or whatever, and see if you have some error message. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: Returning a string from a function

2001-08-21 Thread Richard Lynch
For($i = 0; $i (count($items)/1); $i +=1){ $path=strstr(($items[$i]), '/'); return $path; You probably want the return *OUTSIDE* the loop. You also probably want $path .= strstr(...), not just = Can't tell for sure, as I don't understand what sed and awk are doing. -- WARNING [EMAIL

RE: [PHP] Regular Expressions....

2001-08-21 Thread Dave
below HEy, i am having major problems trying to work out this regular expression. Regular expressions are still quite new to me, and i don't fully understand them, so please bear with me... thanks! regex is a different beast... however if the text that you have isa actually as such, it is

[PHP] Strings with Spaces in URLS

2001-08-21 Thread Chris Aitken
I have come up with a bit of a problem I have a little funky search form on a page, and when I send the search data on as a URL, anything with a space is screwed up example $search = This is a test; echo a href=http://www.blah.com/foo.php?search=$search; and when the

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Jason Murray
$search = This is a test; echo a href=http://www.blah.com/foo.php?search=$search; You'll want this: echo a href=http://www.blah.com/foo.php?search=.urlencode($search).; ^^ Jason -- PHP General Mailing

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Lawrence . Sheed
$search= urlencode ($search); urlencode - have a look on the php site. -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: August 22, 2001 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strings with Spaces in URLS I have come up with a bit of a problem I have a

[PHP] Re: unix permission converter

2001-08-21 Thread Raphael Pirker
Hi Richard, The system is not for any boxes use - it's for the user-access system I'm developing for my companie's Website. I copied the system they use at unix a little. We have READ and WRITE permissions and 4 different user-categories. 1,2,4,8 - the reason I'm splitting this up is actually

RE: [PHP] Re: passing variables between PHP and Perl

2001-08-21 Thread Dave
Just a quick addition... when a PHP script is run as a shell script from a Perl script (that make sense?) it cannot pass back exit variables to the Perl script... Would love to be proven wrong on this as I had to dust off Perl programming for a RADIUS interface some time ago. Dave

[PHP] sockets question

2001-08-21 Thread Gregor Jaksa
One simple question: I need to use the same socket connectin in 2 different scripts, is that possible ? and if YES, then how to do it ? for example: i have login.php where i do $socket_handle = fsockopen($server, $port); now in add.php i would like to send msg to $socket_handle socket...

RE: [PHP] Re: security check - virtual host and mod php setup

2001-08-21 Thread Dave
please hack apart this solution and point out the error/insecure nature of apache compiled with suexec # set user and group to unique chown USERID:USERID /path/to/user/html/directory Make it -R in case any files managed to get in there before you did this. error of omission on my part

[PHP] AudioGalaxy-like stuff

2001-08-21 Thread Christian Dechery
Is there anyone here familiar with Audiogalaxy's site? It's all in PHP, and there is something there which is really something... when you're searching for songs, there's an icon that when u click, it adds the song to the queue. But the page remains... the file is added to the queue without

<    1   2   3   >