Re: [PHP] PHP 5 Hosting

2005-09-30 Thread Tom Chubb
This is an interesting one. As someone learning PHP, I am still confused which route I should be going down? Especially as I am looking to take on a dedicated server soon, I don't know if PHP5 will become standard soon or are we going to see PHP6 first??!? Please can some more experienced people le

RE: [PHP] Query - Warning: Cannot modify header information

2005-09-30 Thread Suresh Pandian
i checked the line before 61... it sends the image content type this is the code of image.php | | All rights reserved.| +-+ | PLEASE REA

[PHP] Re: File Upload Max Size

2005-09-30 Thread zzapper
On Fri, 30 Sep 2005 01:19:01 -0400, wrote: >Hello everyone. I'm basically building a PHP FTP client app. This app >connects to an FTP server and allows the user to edit/delete >files/permissions, etc. I've gotten to the point where I have started to >create a file upload feature. The probl

Re: [PHP] Question about "Rasmus' 30 second AJAX Tutorial"

2005-09-30 Thread Stut
xfedex wrote: I did the "Rasmus' 30 second AJAX Tutorial" just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed by a

Re: [PHP] Question about "Rasmus' 30 second AJAX Tutorial"

2005-09-30 Thread Jochem Maas
xfedex wrote: Hi, I did the "Rasmus' 30 second AJAX Tutorial" just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed

[PHP] Auto unzip uploaded file

2005-09-30 Thread Norbert Wenzel
I know a script (it's a webgallery) where you upload your images.zip with any amount of images in it. After uploading the .zip get unzipped and the images will be placed into the gallery. How did they unzip (or better, how is it possible to unzip) the file with php? and is it possible to extra

[PHP] Wiki Filesystem integration

2005-09-30 Thread Rory Browne
Hi Folks Anyone here have any experience with integrating Filesystem documents and Wikis? One of our depts uses a wiki(phpwiki) for docs, whilst the other uses a network drive. Anyone here have any experience in consolodating something like this into one interface? Thanks Rory -- PHP General M

Re: [PHP] Auto unzip uploaded file

2005-09-30 Thread Jochem Maas
Norbert Wenzel wrote: I know a script (it's a webgallery) where you upload your images.zip with any amount of images in it. After uploading the .zip get unzipped and the images will be placed into the gallery. How did they unzip (or better, how is it possible to unzip) the file might I sugg

[PHP] Array within array

2005-09-30 Thread Chris
Greetings PHP community, I have a CSV text file which I need to use to update existing DB records. So I have the following : $array_file = file("path/to/file"); file() creates an array comprising each line of the file, but if each line contains 20 or so CS values, how do I go about reading each

Re: [PHP] Auto unzip uploaded file

2005-09-30 Thread Norbert Wenzel
Jochem Maas wrote: Norbert Wenzel wrote: I know a script (it's a webgallery) where you upload your images.zip with any amount of images in it. After uploading the .zip get unzipped and the images will be placed into the gallery. How did they unzip (or better, how is it possible to unzip) the

Re: [PHP] Passing non GET/POST request methods to php script do not work on RH based linux

2005-09-30 Thread Yedidia Klein
no one answered me so i'm answering myself php.ini has a directive called allow_webdav_methods that is by default off. changing this directive do not work on php 4.3.2 as written at http://il.php.net/ini.core (didn't really understood what they ment there by "This directive does not exist a

[PHP] Re: Passing non GET/POST request methods to php script do not work on RH based linux

2005-09-30 Thread cc
could be problem of apache configuration ? is there directives like 'limit' in your apache config file? On 9/30/05, Yedidia Klein <[EMAIL PROTECTED]> wrote: > no one answered me so i'm answering myself > php.ini has a directive called allow_webdav_methods that is by default off. > > changing t

[PHP] Server Time Out

2005-09-30 Thread Kevin Cloutier
Hi, I'm new to this newsgroup and I'm psyched I found it. But, my newsreader (Thunderbird), keeps returning a "Connection to server news.php... has timed out" when ever I try to dload or refresh the messages. Anyone have a suggestions on what I can do? I'm assuming it's just a setting I need

[PHP] Re: File Upload Max Size

2005-09-30 Thread Matt Palermo
Well, I would like to at least be able to upload a 10mb - 15mb file. I don't need it to upload files that are HUGE, just a reasonable size. "zzapper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 30 Sep 2005 01:19:01 -0400, wrote: > >>Hello everyone. I'm basically bui

Re: [PHP] Query - Warning: Cannot modify header information

2005-09-30 Thread Minuk Choi
Months ago when I kept encountering that problem, it was due to this. Suresh, in /home/gift1/public_html/home.php, do you have a space, an empty line, etc. ? that file should start with "I put double quotes to emphasize that there should be NOTHING before the PHP script start. -Mk Sures

Re: [PHP] Array within array

2005-09-30 Thread Emil Novak
Like this? Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server Time Out

2005-09-30 Thread Emil Novak
That should work! Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Query - Warning: Cannot modify header information

2005-09-30 Thread Emil Novak
You can simply avoid that by buffering the output: or (older versions of PHP): Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Array within array

2005-09-30 Thread Ben Litton
I would do something like $fp = fopen($file_location, 'r'); while (!$fp) { $csv_line = fgetcsv($fp); //insert line into database here after appropriate validation and cleaning } On Fri, 30 Sep 2005 06:29:11 -0400, Chris <[EMAIL PROTECTED]> wrote: Greetings PHP community, I have a CSV text fil

Re: [PHP] Array within array

2005-09-30 Thread Chris Blake
On Fri, 2005-09-30 at 15:33, Emil Novak wrote: > $array_file = file("path/to/file"); > foreach($array_file as $line) > { > $e_array = explode(',',$line); > { > // do update on db for each line of array > } > } > ?> > > Like this? Hi Emil, That`s exactly how I fig

Re: [PHP] Server Time Out

2005-09-30 Thread Jochem Maas
Kevin Cloutier wrote: Hi, I'm new to this newsgroup and I'm psyched I found it. But, my newsreader technically this is a mailing list ;-) personally I just subscribe to the list with my email addr and get all the posts sent to me ... I never really got the hang of the newsgroup concept. htt

Re: [PHP] Auto unzip uploaded file

2005-09-30 Thread James Lobley
On 9/30/05, Norbert Wenzel <[EMAIL PROTECTED]> wrote: > > I know a script (it's a webgallery) where you upload your images.zip > with any amount of images in it. After uploading the .zip get unzipped > and the images will be placed into the gallery. > > How did they unzip (or better, how is it poss

Re: [PHP] Question about "Rasmus' 30 second AJAX Tutorial"

2005-09-30 Thread xfedex
On 9/30/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > > I'm guessing that trhe onclick and onsumbit handlers you set are hanging > on a 'submit' type input? .. if so the form is submitting - in whcih case > the > AJAX request will arrive back at your page - and the page won't be there > (so > to spe

[PHP] php.ini & magic quotes

2005-09-30 Thread Jay Blanchard
Everyday I scratch my head. In php.ini in the C:\WINNT it is said; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_runtime = Off In phpinfo() it is said; magic_quotes_

Re: [PHP] decrypting query string back into $_GET['var']

2005-09-30 Thread Graham Anderson
So is this the best/safest way within reason ? //-- // 'Sending' PHP script: require_once("/home/includes/encryption.inc"); $str =encrypt(urlencode("movie=mymovie.mov&mask=mask.gif&drag=drag.gif")); $urlString = $pathtoReceivingScript.$str ; //---

Re: [PHP] php.ini & magic quotes

2005-09-30 Thread Jochem Maas
Jay Blanchard wrote: Everyday I scratch my head. In php.ini in the C:\WINNT it is said; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_runtime = Off In phpinfo() it

[PHP] Testing for an empty array (with null values)

2005-09-30 Thread zzapper
Hi, I can use if (count($somearray) > 0) to test for an empty array. It is possible to have an array with null values which is effectively empty but fails the above as it's count (I belive is greater than 0). Any ideas -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/

[PHP] Re: File Upload Max Size

2005-09-30 Thread zzapper
On Fri, 30 Sep 2005 08:42:28 -0400, wrote: >Well, I would like to at least be able to upload a 10mb - 15mb file. I >don't need it to upload files that are HUGE, just a reasonable size. > > >"zzapper" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> On Fri, 30 Sep 2005 01:19:01 -

Re: [PHP] Testing for an empty array (with null values)

2005-09-30 Thread Emil Novak
Better use is empty(), which supports array as parameter: $test = array(); if(empty($test)) // true { // code... } else // false { } Emil Novak, Slovenia, EU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array: If i'm in the child array then how I tell the parent's key name..

2005-09-30 Thread Scott Fletcher
Suppose that I'm in a child array and I wanna know how do I tell what key is the parent's level, one level up... For example, --snip-- $arr['ABC']['DEF']; --snip-- Let's say the child is "DEF" then the key name one level up would be "ABC". How do I determine the one level up? Thanks... -- P

[PHP] Re: Array: If i'm in the child array then how I tell the parent's key name..

2005-09-30 Thread M. Sokolewicz
Let me reply with a question first :) how do you get *to* the child? ;) post some code so we know. In 99.99% of the cases, the way you get to the child includes a way to find out the parent key (usually you foreach() to it, or something similair). - tul Scott Fletcher wrote: Suppose that I'm

[PHP] PHP5, $_SESSION, DOM XML objects not returning value

2005-09-30 Thread Daevid Vincent
I'm trying to store an array of DOM XML objects (http://www.php.net/manual/en/ref.dom.php) in a PHP5.0.3 $_SESSION array, but when I load the session back (and yes, I've declared my class before the session_start()), I get these errors: Warning: XMLRule::getValue() [function.getValue]: Invalid Sta

RE: [PHP] PHP5, $_SESSION, DOM XML objects not returning value

2005-09-30 Thread Daevid Vincent
Are you f'ing kidding me?! http://www.php.net/manual/en/ref.session.php "Some types of data can not be serialized thus stored in sessions. It includes resource variables or objects with circular references (i.e. objects which passes a reference to itself to another object). " L A M E !!! This i

Re: [PHP] Re: File Upload Max Size

2005-09-30 Thread Carlos Olmos
if you don't have access to php.ini then use ini_set("upload_max_filesize","10M"). At 06:29 p.m. 30/09/2005 +0100, zzapper wrote: On Fri, 30 Sep 2005 08:42:28 -0400, wrote: >Well, I would like to at least be able to upload a 10mb - 15mb file. I >don't need it to upload files that are HU

[PHP] creating a shopping cart.

2005-09-30 Thread John Taylor-Johnston
What's the best approach to create a shopping cart.? Cookies? Submit buttons passing _post values? Or create session values? I have a bit of code to get that started. It won,t be a complicated site: http://testesp.flsh.usherbrooke.ca/db/index.php - want to allow visitors check off the titles th