Re: [PHP] My first XML!

2002-11-27 Thread olinux
Here's a start for you $value1) { if ($key1 == $parent) {// if it's a top category print it foreach ($value1 as $key2 => $value2) { $catname = $value2; // $value2 same as $value1[$key2] $catID = $key2; echo str_rep

Re: [PHP] php bugs (Chinese word display problem)-help

2002-11-27 Thread @ Edwin
Hello, "Tom Culpepper" <[EMAIL PROTECTED]> wrote: > I am not positive of the problem as I can not see your code, but if you > want to display the words that end in '5C' the you can do them like so: > \(escape character) like this: \(95 5C 5C) Putting a space (or some other character) after the

Re: [PHP] Re: & in Query String

2002-11-27 Thread @ Edwin
Hello, "Chris Shiflett" <[EMAIL PROTECTED]> wrote: [snip] > Does it not work for you? [/snip] It does, just like I said earlier :) Anyway, I just wanted to add that not only in IE6 but even in NN4 or N7 (also in linux) it works perfectly fine. - E -- PHP General Mailing List (http://www.php

Re: [PHP] Invalid Charactors in a string.

2002-11-27 Thread DL Neil
Gidday Philip, Full answer: http://www.oreilly.com/catalog/regex/ Short answer: PHPBuilder etc have articles introducing the use of RegExes (Regular Expressions) for this sort of thing. (but please not the Arthurian "how do I validate an email address"...) Regards, =dn > Where should i start,

Re: [PHP] Changing SERVER's IP ADDRESS

2002-11-27 Thread Adharsh Praveen R
Hai Jason, Thanks a lot for the reply. you are right I call the perl script in form page. How to output a meta refresh tag from PHP? and is it in form or in the main page? In form page after I call the perl script which changes the IP address of the server, I have header("Location:https://$HTT

Re: [PHP] php/mysql report builder

2002-11-27 Thread DL Neil
Hi Mike; > sorry for posting this mysql question again. im searching for a report > builder for mysql specifically for creating reports for > invoice/receipt..etc. > just like crystal reports and oracle report builder. or is there any > suggestion to do it in PHP . On my travels (FWIW) I have

Re: [PHP] spawing new PHP process

2002-11-27 Thread Geranium
In article <[EMAIL PROTECTED]>, Robert McPeak <[EMAIL PROTECTED]> wrote: > I have other situations where I would like to somehow "spawn" a new php > process so that the page loads quickly and my user doesn't get frustrated or > confused. Hang on, there's lots of talking around the point here. Thi

[PHP] Newbie : How work with parameters?

2002-11-27 Thread Stéphane Génin
Hello, I want to read the parameters in the URL, but I can't find the right way to do that. I've tried several things : my URL is: http://localhost/test.php?id=abc I tried to use the $id, but in this case, I have a notice with 'undefined variable'. I have the same problem if I try the variable

Re: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Ernest E Vogelsinger
At 09:58 27.11.2002, Stéphane Génin said: [snip] >I want to read the parameters in the URL, but I can't find the right way to >do that. I've tried several things : > >my URL is: http://localhost/test.php?id=abc Check out the PHP manual at http://www.php.net

Re: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Scott Houseman
Use the superglobal array $_GET echo $_GET{'id'}; // should return abc Cheers Scott Stéphane Génin wrote, On 11/27/2002 10:58 AM: Hello, I want to read the parameters in the URL, but I can't find the right way to do that. I've tried several things : my URL is: http://localhost/test.php?id=a

RE: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Rich Gray
Stephane http://www.php.net/manual/en/security.registerglobals.php http://www.php.net/manual/en/faq.php Substitute 'fr' for 'en' if your prefer it en francais Use: $_GET['id'] or $_REQUEST['id'] Ciao Rich -Original Message- From: Stéphane Génin [mailto:[EMAIL PROTECTED]] Sent: 27 Novem

Re: [PHP] Decrypt Password

2002-11-27 Thread Joakim Andersson
Stephen wrote: That's what I'm going to do but how can I pull it from the database to decrypt it, then send it? You can't. Well that depends what method you used to create the passwords, but most likely you used a one-way encryption. How to solve the problem then? 1. User klicks link 'Forgot

Re: [PHP] Confirm message box

2002-11-27 Thread Keith Sauvant
Hi Wilmar, > And when the user hits the Delete link a pop up dialog box (javascript > style) asks for confirmation. Not a big deal. Your PHP script has to generate Links like: delete where xy is the id of your record. The link will be followed after a positive conformation, "myscript.php" can

Re: [PHP] Confirm message box

2002-11-27 Thread Marek Kilimajer
I use this javascript code: function confirmAction(question, uri) { if(confirm(question)){ document.location=uri + '&confirm=1'; } return false; } create link like this: delete If user has javascript enabled, on delete.php you will get $_GET['confirm']=1, and you know the action

php-general Digest 27 Nov 2002 11:17:23 -0000 Issue 1729

2002-11-27 Thread php-general-digest-help
php-general Digest 27 Nov 2002 11:17:23 - Issue 1729 Topics (messages 126201 through 126259): Re: & in Query String 126201 by: Ernest E Vogelsinger 126209 by: Chris Shiflett 126247 by: . Edwin session problems 126202 by: Jason Romero 126207 by: John W

[PHP] XSLT support for RH8

2002-11-27 Thread Dan Kuykendall
I cannot seem to get RH8 to to compile XSLT support. Has anyone else gotten this to work? Anyone with the resulting php-xslt rpm? Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session problems

2002-11-27 Thread Nenad Djordjevic
Hello Jason, I had similar problem when I try to use global array $HTTP_SESSION_VARS to manipulate with session variables in PHP version 4.1.x. If you use PHP version < 4.2.0 you need to use function `session_register` to add variable to session. If you use PHP 4.2.0 (or greater) you need to use

[PHP] Identifying users

2002-11-27 Thread Craig
Anyone know off of hand - Is there a reliable/semi-reliable way of looking users up by country. e.g - On the likes of altavista or google, I have noticed that if you type in www.altavista.com and you are in the uk, it will redirect to uk.altavista.com, and google aswell for certain countrys. Anyo

[PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Axis Computers
Hi, I was wondering if this is possible to in PHP ... I am developing an application for a pizza place, where touch typing interface is much faster than using the mouse, so I was wondering if I can develop an interface with a calculator style keypad, and the codes entered (using something like STD

Re: [PHP] Identifying users

2002-11-27 Thread Marek Kilimajer
Try http://www.xpenguin.com/ip-atlas.php Craig wrote: Anyone know off of hand - Is there a reliable/semi-reliable way of looking users up by country. e.g - On the likes of altavista or google, I have noticed that if you type in www.altavista.com and you are in the uk, it will redirect to uk.alt

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Robert Cummings
Axis Computers wrote: > > Hi, > > I was wondering if this is possible to in PHP ... I am developing an > application for a pizza place, where touch typing interface is much faster > than using the mouse, so I was wondering if I can develop an interface with > a calculator style keypad, and the co

Re: [PHP] Problem on OpenDir()

2002-11-27 Thread Joakim Andersson
Jack wrote: Dear Joakim First of all, thx for the reply and here is the code : "); } } closedir($handle); file://check if the directory exist for last month file://Folder's Name $folder=date("M",mktime(0,0,0,$previousmonth,1,$currentyear)); $dirname="Oct-02"; if (is_dir("Oct-02")) { print ("G

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread 1LT John W. Holmes
> I was wondering if this is possible to in PHP ... I am developing an > application for a pizza place, where touch typing interface is much faster > than using the mouse, so I was wondering if I can develop an interface with > a calculator style keypad, and the codes entered (using something like

[PHP] sorting files in directory

2002-11-27 Thread Nick Wilson
Hi all, I have several directories filled with files written like this: * 02-09-19-filename.etc * 02-10-02-anotherfile.whatever How does php order these files if read from the directory and printed to the screen? -- I need them in date order, do I need to sort them somehow? Many thanks...

Re: [PHP] How do i provide Download facility ??

2002-11-27 Thread Brian McGarvie
Perhaps he wants to track downloads of files and obscure the physical locations... "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > > I am a newbie in this PHP world. I was just looking around for > > information on Download of files usin

[PHP] Re: php/mysql report builder

2002-11-27 Thread UberGoober
http://www.phplens.com/ might be something you could use. "Michael P. Carel" <[EMAIL PROTECTED]> wrote in message 002d01c295b8$f0301800$[EMAIL PROTECTED]">news:002d01c295b8$f0301800$[EMAIL PROTECTED]... > hi to all; > > sorry for posting this mysql question again. im searching for a report > buil

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Brian McGarvie
> > I was wondering if this is possible to in PHP ... I am developing an > > application for a pizza place, where touch typing interface is much faster > > than using the mouse, so I was wondering if I can develop an interface with > > a calculator style keypad, and the codes entered (using somethi

Re: [PHP] PHP/MySQL Installation

2002-11-27 Thread Ernest E Vogelsinger
At 20:44 25.11.2002, manh spoke out and said: [snip] >I am a beginner of PHP/MySQL. I have tried several times to install PHP3 >and MySQL (free products) to conduct some web pages for my company, but >lots of trouble came up. I just followed the instruction o

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Marek Kilimajer
Using javascript you can change the src of image. So you start with blank image, and if onchange event handler finds out the input field has two chars, changes the src of the image to say show_image.php?id=input.value Axis Computers wrote: Hi, I was wondering if this is possible to in PHP ...

Re: [PHP] Need email solution

2002-11-27 Thread Adam Voigt
Not free or Opensource or anything, but our company has had very good results with a package called "iMail". http://www.ipswitch.com/Products/IMail_Server/index.html On Tue, 2002-11-26 at 15:38, Manuel Ochoa wrote: > > I'm setting up a Windows 2000 server with Apache, PHP and MySQL. I also need

RE: [PHP] sorting files in directory

2002-11-27 Thread James E Hicks III
I've done this by reading the directory contents into an array and then sorting that array. This really sorts on filename and not date, but your filenames seem to contain dates so this might work for you. James Hicks -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: We

Re: [PHP] sorting files in directory

2002-11-27 Thread Marek Kilimajer
Yes, you do. Add each dir to an array, sort the array, then loop through it printing the dirs out. Nick Wilson wrote: Hi all, I have several directories filled with files written like this: * 02-09-19-filename.etc * 02-10-02-anotherfile.whatever How does php order these files if read fr

[PHP] Redirecting after changing server's IP address!

2002-11-27 Thread Adharsh Praveen R
hai php-general, I want to know how can I redirect the browser to contact to a new ip address of the same server. In Detail I have a server say 192.168.1.10 (eth0) running apache.( Linux Machine running Apache). I contact the server through a client(Browser), through this client I change the

[PHP] object passing by reference

2002-11-27 Thread Hoffman, Geoffrey
I want to pass a reference to objectA along with other strings to a new objectB( constructor. Where does my & go? I just keep getting Fatal error: Call to a member function on a non-object Geoff Hoffman Web Designer/Programmer AZ Interactive Media Group Work: (480) 898-7730 Cell: (480) 231-832

[PHP] Re: Trouble maintaining a session - FIXED

2002-11-27 Thread Joshua E Minnie
Hey all, Not exactly sure why this fixed it, but when I upgraded the PHP on the NT4 server to PHP 4.2.3, everything worked as I had hoped. I plan on looking into it more, but I just thought that I would let you all know in case anyone else comes across a similar problem in the future. -- ___

Re: [PHP] object passing by reference

2002-11-27 Thread Ernest E Vogelsinger
At 01:34 27.11.2002, Hoffman, Geoffrey spoke out and said: [snip] >I want to pass a reference to objectA along with other strings to a new >objectB( constructor. > >Where does my & go? I just keep getting > >Fatal error: Call to a member function on a non-ob

Re: [PHP] sorting files in directory

2002-11-27 Thread Justin French
on 28/11/02 12:01 AM, Nick Wilson ([EMAIL PROTECTED]) wrote: > I have several directories filled with files written like this: > > * 02-09-19-filename.etc > * 02-10-02-anotherfile.whatever > > How does php order these files if read from the directory and printed to > the screen? -- I need

[PHP] Newbie Mail() Question...

2002-11-27 Thread Chase
Is there a way to have an email sent to a specified email address either when a page is accessed, or when a file is downloaded? Maybe I should just be logging the info into a table? Basically, I am trying to set up a secure site that would send the sysadmin an email when a file has been downloade

Re: [PHP] Redirecting after changing server's IP address!

2002-11-27 Thread Marek Kilimajer
Is the connection still valid after changing the IP? I think this should work: You should run your perl script from within shutdown function, so it is run after the connection is closed and any output is sent to the browser. Send header('Refresh: 5; url=http://NEW_IP/next_page.php'); to redirect

Re: [PHP] sorting files in directory

2002-11-27 Thread Marek Kilimajer
Justin French wrote I think PHP reads them in date created order, or something else... The order is not guarantied, it just happens to be so. I suppose most filesystems return files in the order they were added to the directory, but also reuse the space left after deleting a file. -- P

[PHP] PHP Jobs -- Barcelona, Spain

2002-11-27 Thread BCN Mployer
Seeking 1-2 *experienced* PHP developers to join the development staff of an established, profitable company in Barcelona, Spain. These positions offer an excellent opportunity for developers with strong design skills to build a new codebase for a heavily-trafficked international site. Job requ

[PHP] Upgrading PHP windows binaries

2002-11-27 Thread Simon Dedeyne
Hi, I want to see if I can use PHP 4.3.0RC1, and downloaded the windows binaries. Currently I'm using PHP 4.2.3 on a Win NT and XP OS, I've made the installation with the phpdev package from firepages. My question. What files do I have to change so I don't have to reinstall my Apache and Mysql

RE: [PHP] object passing by reference

2002-11-27 Thread Hoffman, Geoffrey
But I know the function is in there! Consider the following code: x = $_x; $this->child = $_child; $this->child->m = "Grow up, son"; } function foo() { return "I'm the parent."; } } class childClass { var $m; function childClass($_m) { $this->m = $_m; } function goo()

RE: [PHP] Newbie Mail() Question...

2002-11-27 Thread Rich Gray
Er yea - just call the mail() function at the appropriate time in your script... http://www.php.net/manual/en/function.mail.php However IMO if you need to log this sort of information then using a database is far more appropriate than sending emails - especially on a busy site... Rich -Origi

Re[2]: [PHP] object passing by reference

2002-11-27 Thread Tom Rogers
Hi This should do it: class parentClass { var $x; var $child; function parentClass($_x, &$_child) {//< $this->x = $_x; $this->child =& $_child; //<< $this->child->m = "Grow up, son"; } function foo() { return "I'm the parent."; } } class

[PHP] problem with https

2002-11-27 Thread Vivek Kedia
i have apache 1.3.26 on php 4.2.3 everything else is running fine except "https//whatever" when i am trying to access the files thru apache , I have looked for SSL properties in httpd.conf and everything is properly enables( that what i think ) . The error generated is "page not found" and when i

[PHP] Re: object passing by reference

2002-11-27 Thread Derick Rethans
Geoffrey Hoffman wrote: I want to pass a reference to objectA along with other strings to a new objectB( constructor. Where does my & go? I just keep getting Fatal error: Call to a member function on a non-object Can you post the relevant snippet of code? Derick --

[PHP] Re: problem with https

2002-11-27 Thread Derick Rethans
Vivek Kedia wrote: i have apache 1.3.26 on php 4.2.3 everything else is running fine except "https//whatever" when i am trying to access the files thru apache , I have looked for SSL properties in httpd.conf and everything is properly enables( that what i think ) . The error generated is "page n

[PHP] How to create zip files in PHP ?

2002-11-27 Thread php_user
Hi,sir: How to create zip files in PHP ? I found that php's zip function are read only... Can any one help me with that ? Thanks Fongming 2002-11-28 - This mail sent through IMP: http://web.horde.org/imp/ -- PHP General Mailing

Re: [PHP] problem with https

2002-11-27 Thread Adam Voigt
At the bottom of your httpd.conf, in the default SSL section, there is a path that normally points to /path/to/apache/htdocs if you store your webfiles some where other then the default, even if you change it near the top of your file, it won't work for SSL till you modify it at the bottom, if you

[PHP] Re: How to create zip files in PHP ?

2002-11-27 Thread Derick Rethans
Php User wrote: How to create zip files in PHP ? I found that php's zip function are read only... Can any one help me with that ? See this tutorial on zend.com: http://www.zend.com/zend/spotlight/creating-zip-files1.php http://www.zend.com/zend/spotlight/creating-zip-files2.php http://www.

Re: [PHP] How to create zip files in PHP ?

2002-11-27 Thread Marco Tabini
You will have to invoke an external utility, like PKZIP on Windows or zip on Linux to create the archives you need. Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- 

[PHP] Re: How to create zip files in PHP ?

2002-11-27 Thread Manuel Lemos
Hello, On 11/27/2002 01:08 PM, Php User wrote: How to create zip files in PHP ? I found that php's zip function are read only... Can any one help me with that ? You can find here a class ready to do exactly that: http://www.phpclasses.org/phpzip -- Regards, Manuel Lemos -- PHP Genera

Re: [PHP] Re: How to create zip files in PHP ?

2002-11-27 Thread Hatem Ben
check this, it could help : http://www.phpclasses.org/browse.html/class/42.html Hatem - Original Message - From: "Derick Rethans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 4:26 PM Subject: [PHP] Re: How to create zip files in PHP ? > Php User wrote: >

[PHP] Re: My first XML!

2002-11-27 Thread Manuel Lemos
Hello, On 11/27/2002 05:29 AM, Boris Kolev wrote: I want to know how i can export tree structure from Mysql table to XML mysql table structure is: ID - Group Unique Id P_ID - Parent Id Name - Name of group I want to make XML whit tree structure. Can some body help me! You may wan

Re: [PHP] sorting files in directory

2002-11-27 Thread Nick Wilson
* and then Justin French declared > > How does php order these files if read from the directory and printed to > > the screen? -- I need them in date order, do I need to sort them > > somehow? > > There's an optional second parameter for asort() and rsort(), so check it > out in the manual..

[PHP] Parsing XML files, logic involved...

2002-11-27 Thread Jeff Lewis
I have to write a script to parse XML files we receive daily. The XML files are all individual stories but there is an index page that comes with each batch that contains blocks of information for each story as follows (below). I need to run through this index file and for each story I need to g

[PHP] RE: object passing by reference

2002-11-27 Thread Hoffman, Geoffrey
Tom, you rule. It works. I figured out my problem with my other script too. I had written get and set accessor methods in my class. I discovered that attempting to pass the reference to the set method in the class constructor DOES NOT work, while setting it directly in the class constructor DOES

[PHP] How Do I install php on Apache 2.0

2002-11-27 Thread Tweak2x
Hello, I am on windows XP Pro, and I have adobe istalled. How can I get php to work on Apache? I download php-4.2.3 (the installer) and chose apache, and It didnt work. I still cant get my php to work for apache. Can somebody guide me step by steb through installing php on apache? thanks -- PHP

Re: [PHP] problem with https

2002-11-27 Thread Andre Dubuc
Hi Vivek, If you are accessing https on localhost, you would need to enter: https://localhost/whatever_file You might want to check whether you have https enabled: check phpinfo() under 'Apache Environment'. [HTTPS ] should be "on" as well. hth, Andre On Wednesday 27 November 2002 10:14 am,

Re: [PHP] How Do I install php on Apache 2.0

2002-11-27 Thread Adam Voigt
A. What does having Adobe installed matter? B. Why are you trying to run 2.0? Apache 2.0 isn't even recommended for use with PHP on linux systems yet, let alone windows. You'd have much better luck with the 1.3.27 version. On Wed, 2002-11-27 at 11:22, Tweak2x wrote: > Hello, I am on windows XP Pro

[PHP] Session End

2002-11-27 Thread Pushpinder Singh Garcha
Hi I am have created an authentication system, wherein the user is authenticated on the basis of a MySQL database. Here is the code $auth = false; // Assume user is not authenticated if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) { // Connect to MySQL mysql_pconnect( 'localhost

[PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
Greetings. I've written a simple form to allow my clients to upload files to me, and it works fine EXCEPT that the uploaded file is owned by "www" and I while I can read the file, I don't have the necessary permissions to delete it when done ... Since this site is being hosted elsewhere, is there

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Adam Voigt
exec("/bin/chown newuser:newuser /path/to/file"); On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote: > Greetings. > > I've written a simple form to allow my clients to upload files to me, and it > works fine EXCEPT that the uploaded file is owned by "www" and I while I can > read the file, I don't h

[PHP] MySql->PHP->Excel=french weird chars

2002-11-27 Thread Marios Adamantopoulos
Hi all I'm using a MySql database to save French data. In addition, I have a PHP page which is using header("Content-Type: application/vnd.ms-excel; name='excel'"); header("Content-Disposition: attachment; filename=filename.xls"); to save all the data from the database to the excel file. The

Re: [PHP] Session End

2002-11-27 Thread 1LT John W. Holmes
I'm surprised that is actually working, since you never register $auth into the session. Anyhow, you probably want the session_destroy() function. www.php.net/session_destroy ---John Holmes... - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: [PHP] Session End

2002-11-27 Thread Ernest E Vogelsinger
At 18:04 27.11.2002, 1LT John W. Holmes spoke out and said: [snip] >I'm surprised that is actually working, since you never register $auth into >the session. [snip] Nothing to do with session... Here PHP_AUTH is used,

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 01:04, Adam Voigt wrote: > exec("/bin/chown newuser:newuser /path/to/file"); The user running apache (in this case 'www') will most likely not have the requisite permissions to perform that operation. > On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote: > > Greetings.

[PHP] IIS and PHP with $HTTP_SERVER_VARS

2002-11-27 Thread Shaun Garriock
Hi The problem I am having is as follows: I setup PHP with IIS and it seems to work fine. I am creating a Intranet site and would like to obtain the user logged on to the networks username. I have setup basic auth but when I visit the site it asks me for my username and password before I can get in

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread 1LT John W. Holmes
> On Thursday 28 November 2002 01:04, Adam Voigt wrote: > > exec("/bin/chown newuser:newuser /path/to/file"); > > The user running apache (in this case 'www') will most likely not have the > requisite permissions to perform that operation. > > > On Wed, 2002-11-27 at 12:03, Kenn Murrah wrote: > >

[PHP] Password Script

2002-11-27 Thread Vicky
Hi everyone! I'm looking to code a script that does the following. Please bear with me as I'm a total novice at this ^^! It's sort of like a multiple password thing. Users need to type in between 3 and 6 (I will be changing the use of this script and sometimes there will only be 3 answers sometim

[PHP] IPs comparing

2002-11-27 Thread Jesús Pérez
Hi, I have several subnets in my network and want to show different webs depending on the subnet the user was. I know how to get the IP but not how to compare two IPs numeracally, I mean: If ((USER-IP > 192.168.0.1) && (USER-IP < 192.168.0.255)) Else if ((USER-IP > 192.168.1.1) && (USER-IP < 19

[PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
Hi all, I must be missunderstanding something here, I have this in an php 'upload form': So why won't it upload a 1.5MB file? Many thanks -- Nick Wilson // www.tioka.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Peter Janett
Since the user Apache is running as created the file, it owns it too. Make a quick PHP script to delete the files when ready. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1 Sun Sola

Re: [PHP] problem with https

2002-11-27 Thread Peter Janett
The fact that https://whatever gives you a 404 file not found means that Apache SSL IS working, but it's not pointing where you want it to. So, you need to check the DocumentRoot setting in httpd.conf and see that it's pointing where you want it. You probably either have a virtual host set on por

Re: [PHP] max file size on uploading files

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 02:02, Nick Wilson wrote: > Hi all, > > I must be missunderstanding something here, I have this in an php 'upload > form': > > > > So why won't it upload a 1.5MB file? manual -> Handling File Uploads -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sour

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 01:47, 1LT John W. Holmes wrote: > > Use chmod() to make the file(s) rw by 'others'. > > In my experience, this won't work for the same reason. Trying to run the > chmod() function in PHP will give you an error about permission denied. Works for me :) Maybe you're usin

Re: [PHP] IPs comparing

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 01:51, Jesús Pérez wrote: > Hi, > > I have several subnets in my network and want to show different webs > depending on the subnet the user was. > > I know how to get the IP but not how to compare two IPs numeracally, I > mean: > > > If ((USER-IP > 192.168.0.1) && (USER

Re: [PHP] IPs comparing

2002-11-27 Thread DL Neil
Hi Jesús, > I have several subnets in my network and want to show different webs > depending on the subnet the user was. > > I know how to get the IP but not how to compare two IPs numeracally, I mean: > > > If ((USER-IP > 192.168.0.1) && (USER-IP < 192.168.0.255)) > Else if ((USER-IP > 192.168.1.

Re: [PHP] IPs comparing

2002-11-27 Thread Alister
On Thu, 28 Nov 2002 02:19:18 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: > > I have several subnets in my network and want to show different webs > > depending on the subnet the user was. > > I know how to get the IP but not how to compare two IPs numeracally, > > I mean: > > If ((USER-IP > 192.16

Re: [PHP] FTP and security

2002-11-27 Thread Jason Wong
On Wednesday 27 November 2002 03:25, Richard Fox wrote: > > > To relate this to php, I am ready to give up > > > trying to make my > > > > > > system("scp .."); > > > > > > code work, because I will have to give the apache user more permissions > > > than I am comfortable with. > > > > What exa

Re: [PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
* and then Jason Wong declared > On Thursday 28 November 2002 02:02, Nick Wilson wrote: > > Hi all, > > > > I must be missunderstanding something here, I have this in an php 'upload > > form': > > > > > > > > So why won't it upload a 1.5MB file? > > manual -> Handling File Uploads Why don't

RE: [PHP] max file size on uploading files

2002-11-27 Thread Van Andel, Robert
One problem may be your browser timing out before the end of the script. Another may be (although I'm not 100% sure) is that the file excedes the max memory set aside by PHP. Robbert van Andel -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27

Re: [PHP] max file size on uploading files

2002-11-27 Thread Jason Wong
On Thursday 28 November 2002 02:40, Nick Wilson wrote: > * and then Jason Wong declared > > > On Thursday 28 November 2002 02:02, Nick Wilson wrote: > > > Hi all, > > > > > > I must be missunderstanding something here, I have this in an php > > > 'upload form': > > > > > > > > > > > > So why w

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 19:02 27.11.2002, Nick Wilson spoke out and said: [snip] >Hi all, > >I must be missunderstanding something here, I have this in an php 'upload >form': > > > >So why won't it upload a 1.5MB file? [snip] I can just

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 19:45 27.11.2002, Jason Wong spoke out and said: [snip] >Did you read the manual then? The bit after the 1st paragraph "Related >Configurations Note" ?? [snip] Jason, you may be a genius programmer, but you certai

Re: [PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
* and then Ernest E Vogelsinger declared > I can just guess here... you've got 1 billion in max_file_size, maybe this > is way too big for the browser's (integer?) math? Does it upload without > max_file_size? Did you try setting max_file_size to 1572864 (which is > exactly 1.5 MB)? Nope, tha

Re: [PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
* and then Nick Wilson declared > Next step, try the script on another machine I guess Thnaks for the > help Ernest... Could it be an Apache 2.0 thing? -- just upgraded. THis is what I get: Request entity too large! The POST method does not allow the data transmitted, or the data volume

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 20:12 27.11.2002, Nick Wilson spoke out and said: [snip] >Request entity too large! > >The POST method does not allow the data transmitted, or the data volume >exceeds the capacity limit. > >If you think this is a server error, please contact the webmaste

Re: [PHP] max file size on uploading files

2002-11-27 Thread Nick Wilson
* and then Van Andel, Robert declared > One problem may be your browser timing out before the end of the script. Another >may be (although I'm not 100% sure) is that the file excedes the max memory set aside >by PHP. Thanks Robert, that's not it though -- Nick Wilson // www.tiok

[PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Ron Stagg
I have an interesting challenge. I have built an online product catalog that is driven entirely by the contents of the product database (MySQL). The entire catalog is implemented in a single PHP script (catalog.php). The dynamic nature of this implementation allows the catalog script to generate h

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 20:11 27.11.2002, Ernest E Vogelsinger spoke out and said: [snip] >Ooops - you should normally only get this with GET requests where the max. >query string size is exceeded - I'd check the Apache docs though... seems >positively to be connected to the web

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said: [snip] >Error 413 certainly denotes that the web server refuses to handle the >request. No idea how to configure this value but I'm sure it can be done >with Apache. I see a better chance of gettin

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Kenn Murrah
but if i don't have the permissions to do that ... ??? - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 11:35 AM Subject: Re: [PHP] controlling ownership on file uploads ... > On Thursday 28 November 2002 01:04, Adam

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Ernest E Vogelsinger
At 20:27 27.11.2002, Kenn Murrah spoke out and said: [snip] >but if i don't have the permissions to do that ... ??? [snip] Since the Apache user ("www" in your case) owns the file it will always be able to delete it a

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Matt Vos
Compile php as a static binary (CGI execution mode?) and add something liek the following to your code at the top: #!/usr/local/bin/php $arg_count = 1; while ($arg_count < count($argv)) { $argument = $argv[$arg_count]; $arg_split = split("=",$argument); $variable = trim($arg_split[0]);

Re: [PHP] max file size on uploading files

2002-11-27 Thread Rasmus Lerdorf
On Wed, 27 Nov 2002, Nick Wilson wrote: > * and then Nick Wilson declared > > Next step, try the script on another machine I guess Thnaks for the > > help Ernest... > > Could it be an Apache 2.0 thing? -- just upgraded. THis is what I get: That's actually a downgrade these days. I'd stron

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-27 Thread Matt Vos
I'm not sure... I always echo... I don't really like embedded code... gets confusing when one part of the page is one thing and another is another. At the very least you coudl try it, I know its farily easy to build a script which will rip through the script to fix it to make it all php friendly.

[PHP] search question

2002-11-27 Thread Bryan Koschmann - GKT
Hello, I'm wondering what you all think the best way to "search" for a string is. I guess its more of a matching (regex I'm thinking) but basically what I want is this.. I'm outputting some rows of data. If one of the columns of that row contain a string of text, either beginning, end, or middle,

[PHP] Bad File Mode?

2002-11-27 Thread Steve Keller
I'm still trying to get a file posted to another server, but I seem to have run across an odd snag, and I was hoping someone can point out where I've gone wrong. Here's the code: $data = "mtype=XMLDOC&outfile=true"; $dataFile = "http://www.healthtvchannel.org/courses/pay/data/t

  1   2   >