Re: [PHP] 4.3 Install on Solaris

2003-01-31 Thread Philip Olson
On Fri, 31 Jan 2003, Weston Houghton wrote: > > All, > > I seem to be getting a silly error on Solaris when trying to do a PHP > 4.3 make. I get an error that looks to me like the liner arguments are > just too long. to be honest, I'm a bit stupified as to why this is > happening or how to

RE: [PHP] Screen Size detect??

2003-01-31 Thread Sean Malloy
Create index.htm; var width = screen.width; var height = screen.height; window.location = 'index.php?width=' + width + '&height=' + height; and in index.php $width = $_GET['width']; $height = $_GET['height']; etc etc -Original Message- From: Dade Register [mailto:[EMAIL PROTECTED]]

RE: [PHP] Bug?

2003-01-31 Thread Sean Malloy
sounds like you should turn error reporting on a blank page usually means PHP has encountered an error, but DisplayErrors is off in php.ini -Original Message- From: Todd Barr [mailto:[EMAIL PROTECTED]] Sent: Saturday, 1 February 2003 4:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Bug? Hel

Re: [PHP] Bug?

2003-01-31 Thread Jason Sheets
Hello Todd, It sounds like register globals are not enabled and your code relies on register globals being enabled, register globals now defaults to off. If you have a recent version of PHP (>= 4.1) you should use the super globals, most likely you are looking for $_GET. You could change your co

Re: [PHP] fputs / fwrites ?

2003-01-31 Thread Maxim Maletsky
Please, don't hijack(*) the threads. (*) Hijack a thread - replying to an email from the usergroup modifying its subject and body making it look like a new post. Emails have also the in-reply-to headers which make the threads visualize in mail clients as the follow ups, although was intended as a

[PHP] fputs / fwrites ?

2003-01-31 Thread Lee Herron
Okay, so I want to open a file, get a small number from it (less than 3 digits) then overwrite a new number (incremented the original by 1) and close the file. The goal is to do this in the fastest way possible .. I don't like having to open the file more than once to do this. I've tried: $cfile

Re: [PHP] Screen Size detect??

2003-01-31 Thread Maxim Maletsky
On Sat, 01 Feb 2003 18:44:19 +0100 Maxim Maletsky <[EMAIL PROTECTED]> wrote: > There is no way to do that with PHP. > > PHP/JavaScript rule #1: > > PHP = Client Side > JS = Server Side Geez I mean viceversa :) In Stalin's times I'd get killed for certain mistakes :) -- Maxi

Re: [PHP] Screen Size detect??

2003-01-31 Thread Maxim Maletsky
There is no way to do that with PHP. PHP/JavaScript rule #1: PHP = Client Side JS = Server Side Obviously, client's browser is Client Side and PHP, which is Server Side, cannot be used for detecting Client's properties on page request (page wasn't prepared by PHP yet to activat

[PHP] Bug?

2003-01-31 Thread Todd Barr
Hello all I am having issues passing vars in the url example here is my url http://localhost/tsatest.php?Sub_Task=2 and here is my code $link = odbc_connect( 'TSA','',''); $Query = "SELECT * from projects where sub_task='$Sub_Task'"; $Result = odbc_do($link, $Query); All this returns is a blan

[PHP] Screen Size detect??

2003-01-31 Thread Dade Register
I'm trying to detect the screen size of any client browser, or at least IE. Is there a php function that can do this? If not, does anyone have any ideas on a JS that would work too? Plz help. Thanx. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affo

Re: [PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Tom Rogers
Hi, Saturday, February 1, 2003, 2:00:51 PM, you wrote: PJN> I would like to list 2 possable items in a mysql queary. PJN> SELECT * FROM products WHERE productType = '$productType AND Where PJN> productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC PJN> LIMIT 10 PJN> I woul

[PHP] I would like to display a list of the same products only if productPublic = staff or members.

2003-01-31 Thread Philip J. Newman
I would like to list 2 possable items in a mysql queary. SELECT * FROM products WHERE productType = '$productType AND Where productPublic = 'staff' OR productPublic = 'members' ORDER BY productId DESC LIMIT 10 I would like to display a list of the same products only if productPublic = staff or me

[PHP] 4.3 Install on Solaris

2003-01-31 Thread Weston Houghton
All, I seem to be getting a silly error on Solaris when trying to do a PHP 4.3 make. I get an error that looks to me like the liner arguments are just too long. to be honest, I'm a bit stupified as to why this is happening or how to fix it. FWIW, I have compiled 4.23 just fine on that box

Re: [PHP] another problem with 4.3.0 : imagecreatefromjpeg undefined

2003-01-31 Thread Jason Wong
On Friday 31 January 2003 23:22, Robert Mena wrote: > Hello again, > > another problem with 4.3.0. I have gd support but > after the upgrade my scripts started complaing : > > Fatal error: Call to undefined function: > imagecreatefromjpeg() > > My ./configure (the same used for ages). > > './config

Re: [PHP] Delete files via PHP

2003-01-31 Thread Jason Wong
On Saturday 01 February 2003 03:23, Miguel Brás wrote: > Hey, thx for your speech > > In a matter of fact, I have 2 books about PHP and all they say about the > unlink function (I use it in my upload system) is that it is suposed to > force the delete of the temporary file that it is created durin

Re: [PHP] how can I start running a perl cgi from php

2003-01-31 Thread Jason Wong
On Saturday 01 February 2003 06:00, qt wrote: > Dear Sirs, > > I want to run a perl script with a command in my php script. I think > include() is not suitable to run perl script. When I use include(), it > brings source of the perl script. > > Would you help me which command is very usefull for th

[PHP] Re: Script to export MySQL structure & data

2003-01-31 Thread Mark McCulligh
When you do a sql select command, an option is to have the result exported to a file. Example: SELECT name, addr, phone INTO OUTFILE '/tmp/result.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINE TERMINATED BY '\n' FROM customer There are other export options that you can

RE: [PHP] Unable to upload multiple files

2003-01-31 Thread John W. Holmes
> value='$tracks'> > value='$uartist'> > > > > > > > > > And the php part: > > $number_of_files = count($_FILES['userfile']); > for ($i=0; $i < $number_of_files; $i++) > { >if ($_FILES['userfile']['size'] !== 0) > { > $namename= "$uartist[$i]-$usong[$i]

RE: [PHP] doing auto number myself to a primary key...

2003-01-31 Thread John W. Holmes
> $sql="SELECT TOP(id) FROM divxtemp"; > $res=mysql_db_query("DB",$sql) or die (mysql_error()); > $reg=mysql_fetch_array($res); > $id=$reg["id"]+1; > $sql="INSERT INTO divxtemp (titulo,cds,id) VALUES > ('$titulotxt','$cdstxt','$id')"; > mysql_db_query("DB",$sql) or die

[PHP] how can I start running a perl cgi from php

2003-01-31 Thread qt
Dear Sirs, I want to run a perl script with a command in my php script. I think include() is not suitable to run perl script. When I use include(), it brings source of the perl script. Would you help me which command is very usefull for that purpose. Best Regards -- PHP General Mailing List

Re: [PHP] new to php/mysql

2003-01-31 Thread Janos Rusiczki
Most probably you have an error in your MySQL query or you are trying to fetch rows from the connection identifier. But why don't you post the code which generated this error? How can we guess what's wrong in it elseway? Sam wrote: Warning: mysql_fetch_row(): supplied argument is not a valid

Re: [PHP] new to php/mysql

2003-01-31 Thread Matt
"Sam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i'm new to this php/mysql thing - i've defected microsoft. > when trying to pull data from a table in mysql, i get the following error: > > Warning: mysql_fetch_row(): supplied argument is not a valid MyS

[PHP] new to php/mysql

2003-01-31 Thread Sam
hi, i'm new to this php/mysql thing - i've defected microsoft. when trying to pull data from a table in mysql, i get the following error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\cn\test.php on line 24 is this an error from my php page or do i

Re: [PHP] Script to export MySQL structure & data

2003-01-31 Thread Janos Rusiczki
I knew the mysqldump method. I'm using it frequently. My problem is that I'm writing this script for a client and I do not have shell access to his host. Or should I run mysqldump from PHP? I want a general solution which could be re-usable an all hosts wheter I can access mysqldump or not. So, a

Re: [PHP] move a record into a different table

2003-01-31 Thread Paul Roberts
so how about With INSERT ... SELECT statement you can quickly insert many rows into a table from one or many tables. INSERT INTO tblTemp2 (fldID) SELECT tblTemp1.fldOrder_ID FROM tblTemp1 WHERE tblTemp1.fldOrder_ID > 100; from the mysql manual Best Wishes Paul Roberts [EMAIL PROTECTED] +

Re: [PHP] Help Needed

2003-01-31 Thread Kevin Stone
Pervasive login methods such as the one you've devised are the best way to have a password protected region on your website. However it will only work on pages that are parsed by PHP. In order to protect plain text or HTML files they will have to be stored outside of your public directory and eit

Fw: [PHP] move a record into a different table

2003-01-31 Thread Kevin Stone
Sorry but as convenient as PHP and MySQL are there are some things you just have to code for yourself. In order to move data from one table to another you will have to: 1) SELECT the desired fields from the first table 2) extract() them from the results pointer 3) INSERT them into the second tabl

[PHP] Help Needed

2003-01-31 Thread Pushpinder Singh Garcha
Hello All: I am using PHP and MySQL in my application. I need to be able to allow ONLY authorized users access to some pages in the site. For this I am creating a session variable ''$valid_user", after the user has successfully authenticated himself with the Database. The pages that need to be

Re: [PHP] Script to export MySQL structure & data

2003-01-31 Thread Brent Baisley
I'm pretty sure you're looking in the wrong place. The command you are looking for is mysqldump and it is part of the mysql command set. With the right parameters it will create a file that can be used to restore your entire database to a working state. I'm not sure how PHPAdmin does it. I use a

Fw: [PHP] doing auto number myself to a primary key...

2003-01-31 Thread Kevin Stone
In MySQL you use MAX() to retrieve the maximum value from a column. `SELECT MAX(id) as id FROM divxtemp` -Kevin - Original Message - From: "Mr. BuNgL3" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 31, 2003 2:31 PM Subject: [PHP] doing auto number myself to a primary

[PHP] Re: move a record into a different table

2003-01-31 Thread Mr. BuNgL3
put the data into variables, erase the record and then create a new one in the new table with the variable values! "Dc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I want to delete a record from my table 1, but would like all the data for > that

[PHP] Script to export MySQL structure & data

2003-01-31 Thread Janos Rusiczki
Hello, I'm looking for a premade PHP script / class or a tutorial on how to export the structure and data of a few given MySQL tables as seen in phpMyAdmin. Any ideeas would be also appreciated. I searched the major web sites (like hotscripts.com, phpclasses.org) and this list's archive but I

[PHP] doing auto number myself to a primary key...

2003-01-31 Thread Mr. BuNgL3
$sql="SELECT TOP(id) FROM divxtemp"; $res=mysql_db_query("DB",$sql) or die (mysql_error()); $reg=mysql_fetch_array($res); $id=$reg["id"]+1; $sql="INSERT INTO divxtemp (titulo,cds,id) VALUES ('$titulotxt','$cdstxt','$id')"; mysql_db_query("DB",$sql) or die (mysql_error(

[PHP] move a record into a different table

2003-01-31 Thread DC
Hi all, I want to delete a record from my table 1, but would like all the data for that single record passed onto my (archive) table 2 at the same time Sounds easy!! Any ideas?? Thanks DC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] Installation problems

2003-01-31 Thread Jacob Bolton
I wrote earlier and got an answer to question, but I just seem to be stumped. I'm installing PHP 4.3.0 on a FreeBSD server running Apache 2.44 as a module. I've gone through all of the installation steps verbatim at the PHP site and a few of the recommended installation sites. I've done the foll

Re: [PHP] Followup on form problems

2003-01-31 Thread 1LT John W. Holmes
> Well, after much debugging, turns out it was the "isset" command that was > causing all the problems. By simply removing that, everything started > working properly. > > Thanks to everyone for their input! It will also work if you replace all of your code with , but is that a solution, either?

Re: [PHP] Followup on form problems

2003-01-31 Thread 1LT John W. Holmes
> Well, after much debugging, turns out it was the "isset" command that was > causing all the problems. By simply removing that, everything started > working properly. > > Thanks to everyone for their input! IT COMPILES! Ship it! ---John Holmes... -- PHP General Mailing List (http://www.php.n

[PHP] Followup on form problems

2003-01-31 Thread Julie Williams
Hi everyone, Well, after much debugging, turns out it was the "isset" command that was causing all the problems. By simply removing that, everything started working properly. Thanks to everyone for their input! Julie Williams -Original Message- From: John Nichel [mailto:[EMAIL PROTECTE

[PHP] Re:_[PHP]_Strange_session-problem_with_php-file_in_

2003-01-31 Thread Chris Shiflett
--- Victor <[EMAIL PROTECTED]> wrote: > I ask this function to return the value of a specifik > session, that is, if the user is logged in the value > is at least 10. ... > this means, that if the user is not logged in, a > copyright © sign will appear over the image. > > And this fails… Don't k

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Philip Olson
On Fri, 31 Jan 2003, Tracy Finifter Rotton wrote: > Change the name of your checkboxes in your HTML to something like: > > name="DeleteIDs[]" > > This will make it an array, and you can access all the elements like > > $_POST['DeleteIDs'][0] > > etc. > > (This should really be in a FAQ somew

Re: [PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
Hey, thx for your speech In a matter of fact, I have 2 books about PHP and all they say about the unlink function (I use it in my upload system) is that it is suposed to force the delete of the temporary file that it is created during the upload process. So, i was never thinking that the unlink

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Tracy Finifter Rotton
Change the name of your checkboxes in your HTML to something like: name="DeleteIDs[]" This will make it an array, and you can access all the elements like $_POST['DeleteIDs'][0] etc. (This should really be in a FAQ somewhere...) -- tracy On 1/31/03 11:17 AM, "Mike Potter" <[EMAIL PROTECTED

[PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Mike Potter
Is it possible to pass an group of input boxes of the same name, then get the values of all the checked boxes or filled out textboxes? How do I get ALL the IDs passed. Right now it only passes the last ID. Do I really have to give them all unique names? For example... Jon Smith David C

Re: [PHP] Question

2003-01-31 Thread 1LT John W. Holmes
[snip] > I understand most of what is going on here except for this line: > > printf ("%s\n", htmlspecialchars ($row[$i])); > > Can someone explain to me what the %s is? www.php.net/sprintf sprintf() and printf() have the same type of syntax and all of the %s, etc, are explained on the sprintf()

[PHP] Opera form oddity

2003-01-31 Thread bill
I had a browser reporting itself as Opera 7.0 [en] fail recently in submitting a form. Specifically, it didn't forward the right value. Using this html in the form The browser sent the value "on" instead of the value "4". So, the form couldn't be processed correctly. Has anybody encountered

[PHP] Question

2003-01-31 Thread Mike Tuller
I am working from an example in a book that has the following and is not explained very well: # read results of query, then clean up while ($row = mysql_fetch_row($result)) { print ("\n"); for ($i = 0; $i < mysql_num_fields ($result); $i++) { # escape any special characters and print print

[PHP] php ISA v.s. php CGI

2003-01-31 Thread Victor
What is the difference between PHP ISAPI filter and PHP CGI (which one would be better to install on IIS 5?) -thanks, - vic __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net

Re: [PHP] Strange_session-problem_with_php-file_in_

2003-01-31 Thread Victor Spång Arthursson
fredagen den 31 januari 2003 kl 18.08 skrev Chris Shiflett: Instead of trying to tell us what the problem is, just explain what trouble you are having. We can then tell *you* what the problem is. Ok, first I have the function session_start(); function return_session_raettighet($session = n

Re: [PHP] Strange_session-problem_with_php-file_in_

2003-01-31 Thread Chris Shiflett
--- Victor <[EMAIL PROTECTED]> wrote: > ... > The problem is that since the file createjpg.php is'nt > loaded in the browser as and ordinary file, it doesnt > recognizes the session variable. When a browser requests an image, the request is identical to a request for any other resource, be it a .

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
1lt John W. Holmes wrote: You're saying you're only uploading 10K total... for all of the files. If the browser is respecting this, and you're trying to upload more than 10K, then it could not upload anything and you get your error. If it was a PHP issue, it seems like you'd get an error or w

Re: [PHP] Installing PHP on Apache 2 and FreeBSD

2003-01-31 Thread Chris Hewitt
Jacob Bolton wrote: But if I complile apache and don't include options that are needed for the software, I'll obviously break the software. So my question is, is there a way to see what options are compiled into Apache, so that if I recompiled it, I could make sure to include the current option

Re: [PHP] need some guidance

2003-01-31 Thread Seth Hopkins
Yeah, I was thinking more of the HTML way. With the help you two and some google searching I see that it will be difficult to pull out specific areas of a site. For example --- The news headlines from yahoo.com I've got a code that grabs that now. I just need to tweak it a bit to get the data t

Re: [PHP] .php extensions versus .html

2003-01-31 Thread Chris Shiflett
--- Guru Geek <[EMAIL PROTECTED]> wrote: > I was wondering, can you call a php script in the middle > of a html page? ... > Does anyone else know how to use php on a page and yet > keep the .html extension? Configure your Web server to treat .html files as PHP. This has been discussed before, so t

Re: [PHP] Introduction

2003-01-31 Thread John Nichel
Well, one of the most common problems encountered here is forms / global variables. The form on your page is using the post method, so chances are, you need to reference your variables by the global post array, ie $_POST['custemail'] $_POST['request_type'] etc. Instead of $custemail and $reque

[PHP] Strange session-problem with php-file in

2003-01-31 Thread Victor Spång Arthursson
Hi everyone! I'm having a severe session problem. I'm having a file called createjpg.php that creates a jpg-image and returns it as a picture, with the correct header. This file is included on another php-file like this: What I need the file createjpg.php to do is to check wether or not the

RE: [PHP] Introduction

2003-01-31 Thread Julie Williams
Hi John, The variables are coming from a form, located at: http://www.swedishengineering.com/newsite/requestresponse.html I don't know what version of PHP or if the global variables are on or off. I would have to ask the client who their provider is and contact them. I'm guessing you're asking

Re: [PHP] PHP - mysql_info question

2003-01-31 Thread Mark McCulligh
Does "Nope" mean to both my questions. Does MySQL create a log file of warnings? and can PHP call it? I figure even if MySQL as a log file, PHP can't call it, because the PHP function mysql_info was only add in 4.3.0 Mark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Installing PHP on Apache 2 and FreeBSD

2003-01-31 Thread Jacob Bolton
Hey all, Here's the situation. I'm on a server running FreeBSD and Apache 2. Someone else installed both. There is software that is running on this server, that I'm sure is dependent on certain options being compiled into Apache. I'm trying to install PHP on the server to make life a little eas

Re: [PHP] Introduction

2003-01-31 Thread Marek Kilimajer
Take a look at http://www.php.net/manual/en/security.registerglobals.php Basicly you should use $_REQUEST['custemail'] ... Julie Williams wrote: Hi Jason, Sorry, I'm very new to this. Since my code is not huge, I have included it below. I removed some of the text so that it is less bulky. I

[PHP] How can I... force some HTML tags for all links to jpg files.

2003-01-31 Thread Al
I've got a folder with about 100 jpg files and a menu which a link to each one. Works fine but looks crude. Obviously, the image shows as a default on a white background, located in the upper left. I'd like to spiffy up the appearance with a background color and centering the image. [e.g. wit

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
On Friday 31 January 2003 22:33, 1LT John W. Holmes wrote: > > >>Ok now I am able to send the request. I set the post_max_size into 50M > > >>and now when the request is sent the whole apache goes down giving: > > >> "The document containd no data" everytime I send a request. I tried > > >> also 10

Re: [PHP] Introduction

2003-01-31 Thread John Nichel
Julie, What version of PHP? Where is $custemail coming from, form on another page/same page, database? Global variables on or off in your php.ini? Julie Williams wrote: Hi Jason, Sorry, I'm very new to this. Since my code is not huge, I have included it below. I removed some of the text so

RE: [PHP] Introduction

2003-01-31 Thread Julie Williams
Hi Jason, Sorry, I'm very new to this. Since my code is not huge, I have included it below. I removed some of the text so that it is less bulky. I hope everything is clear. Thanks for your help!  "; $body .= ""; $body .= "Part #Part NamePriceShippingAvailability"; IF

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
The upload form: (There are ofcourse many of of the first three inputs.) I assume here should be And the php part: $number_of_files = count($_FILES['userfile']); $number_of_files will be 5 if any number of files is uploaded, cause you count $_FILES['userfile']['size'], $_FILE

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> You're saying you're only uploading 10K total... for all of the files. If the browser is respecting this, and you're trying to upload more than 10K, then it could not upload anything and you get your error. If it was a PHP issue, it seems like you'd get an error or warning from PHP, not from t

[PHP] Global "structures" (newbie)

2003-01-31 Thread Karina S
Hi, I'm a beginner in PHP and I want to access some variable all of my php sites. I want to order them in an array, class,... Eg.: User.Name User.Phone General.Info Camera.Type Camera.Class ... What is the most secure and "beautiful" solution for that in PHP? Can I add an array into the $_SESSIO

Re: [PHP] Delete files via PHP

2003-01-31 Thread Øyvind Vestavik
Read the manual first. If you can't find it, search the net (google is a great place to start). If you still can't find it, _then_ ask on the list. I had no idea how to do this, but it took me 30 sec to find out, and I'm a newbie. http://no.php.net/manual/en/function.unlink.php vennlig hilsen Ø

[PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
Hi guys, I made a upload file's script and it works fine. No, I wanna create a page where it will display the directory content and will let me delete any file standing there. Is there any way to use php for that? Where can I get info about it? BTW, I have PHP/MySQL working on a Linux system T

[PHP] another problem with 4.3.0 : imagecreatefromjpeg undefined

2003-01-31 Thread Robert Mena
Hello again, another problem with 4.3.0. I have gd support but after the upgrade my scripts started complaing : Fatal error: Call to undefined function: imagecreatefromjpeg() My ./configure (the same used for ages). './configure' '--with-apxs' '--with-ttf' '--with-xml' '--with-gd' '--with-ftp'

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
Marek Kilimajer wrote: Show us the code Antti wrote: 1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also

[PHP] How to enter username and Password from PHP script?

2003-01-31 Thread Ananth Kesari
Hi, I am working on porting PHP onto NetWare. I am testing the various features on NetWare. In one such testing I need to be able to enter username and password from a PHP script which is read off into PHP through an API which can be passed to my code for usage. How can I do it? Also, how is this

Re: [PHP] Problems with 4.3.0 cli and paths

2003-01-31 Thread Marek Kilimajer
Generally yes, since 4.3 cli does not change the working directory Robert Mena wrote: Hi, I have upgraded my server with the 4.3.0 version. The cli was upgraded also and all my scripts started to crash. I ususally put a #!/husr/local/bin/php -q in all scripts that need to be executed from the

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
Show us the code Antti wrote: 1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. W

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. What the h**l is this? Do you have

[PHP] Problems with 4.3.0 cli and paths

2003-01-31 Thread Robert Mena
Hi, I have upgraded my server with the 4.3.0 version. The cli was upgraded also and all my scripts started to crash. I ususally put a #!/husr/local/bin/php -q in all scripts that need to be executed from the crontab. All the sudden the scripts ended with error messages such as Warning: main(../

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> >>Ok now I am able to send the request. I set the post_max_size into 50M > >>and now when the request is sent the whole apache goes down giving: "The > >>document containd no data" everytime I send a request. I tried also 10M > >>but same happens. What the h**l is this? > > > > > > Do you have th

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
1lt John W. Holmes wrote: Ok now I am able to send the request. I set the post_max_size into 50M and now when the request is sent the whole apache goes down giving: "The document containd no data" everytime I send a request. I tried also 10M but same happens. What the h**l is this? Do you have

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> Ok now I am able to send the request. I set the post_max_size into 50M > and now when the request is sent the whole apache goes down giving: "The > document containd no data" everytime I send a request. I tried also 10M > but same happens. What the h**l is this? Do you have this line in your for

Re: [PHP] mysq_connect()

2003-01-31 Thread Chris Hewitt
Cesar Rodriguez wrote: -snip-- The message I get is: "Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php" Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its pla

RE: [PHP] checkboxes and php...

2003-01-31 Thread Matt Schroebel
> -Original Message- > From: Mr. BuNgL3 [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 8:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] checkboxes and php... > > > Hi... > can you give me some lights in this subject? How checkboxes > work with php? > Or where i can find som

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
Marek Kilimajer wrote: check max_post_size in php.ini Antti wrote: When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is t

[PHP] checkboxes and php...

2003-01-31 Thread Mr. BuNgL3
Hi... can you give me some lights in this subject? How checkboxes work with php? Or where i can find some info about this? Or both :) Ex: if i want to erase from db all data with the checkbox active... thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Introduction

2003-01-31 Thread Jason Wong
On Saturday 01 February 2003 00:47, Julie Williams wrote: > Basically, all the script does (or should do) is build an e-mail to a > client based on a set of variables defined by the user, using an HTML form. > It is also supposed to warn the user with a "print" message whenever a > variable is mi

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
On Friday 31 January 2003 21:47, Antti wrote: > Justin French wrote: > > Firstly, try uploading two SMALL files (say, no more than 1k each), just > > to check if it's an issue with *two files*, or an issue with *file size*, > > *script time outs* (maximum execution time) or something else. > > > >

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Marek Kilimajer
check max_post_size in php.ini Antti wrote: When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is the problem. antti -

Re: [PHP] + in filenames

2003-01-31 Thread ed
On Fri, 31 Jan 2003, Marek Kilimajer wrote: > I use this: > $name=strtr( $name, > " ?*#$%^:+=<>/\"", > "__"); > I'm hoping that double quote was a typo?? Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newsletter using PHP and MySQL

2003-01-31 Thread Steve Vernon
Hiya, I have nearly finished a project I am working on, and completely forgot about having a newsletter service! Basically its a website, and on the registration page people opt in or out of the newsletter, and this is a field in the database. So either once a week, or randomly I want to

RE: [PHP] Introduction

2003-01-31 Thread Julie Williams
Thanks for the welcome! And naturally, I need help. :-) I am just learning PHP, although I have taken programming classes in C and am a little familiar with writing small scripts. My husband wrote a simple PHP script for a client of ours, which I have the pleasure of fine-tuning, the idea being

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Antti
Justin French wrote: Firstly, try uploading two SMALL files (say, no more than 1k each), just to check if it's an issue with *two files*, or an issue with *file size*, *script time outs* (maximum execution time) or something else. Start ruling them out, one at a time. Justin on 01/02/03 12:03

Re: [PHP] Making a file manager with PHP?

2003-01-31 Thread Marek Kilimajer
Search www.hotscripts.com, I'm sure you will find something Max Tappenden wrote: Clear DayHello there. Basically I'm trying to make a file manager with PHP. Here's what I need to do Ok I have artists and coders working for my site No FTP I want them to be able to upload/download files from me as

[PHP] HTTP || FTP Upload? Wich one?

2003-01-31 Thread Evan
Hi to all! I'm working at a simple script that let me upload files in a Intranet. The problem is that these files are videos, so really big (in the order of Gbytes). I think that HTTP upload doesn't fit to solve this problem so I thought about FTP. Can you tell me what do you think about this? What

Re: [PHP] + in filenames

2003-01-31 Thread Marek Kilimajer
I use this: $name=strtr( $name, " ?*#$%^:+=<>/\"", "__"); Victor wrote: I DO want preserve the filenames, and the pluses come from the user (beta testers that deliberately try to hack the script) . all I want to do is make sure the the script doeasnt breack when a user uploads a f

Re: [PHP] Exclusion in Regex not working

2003-01-31 Thread Justin French
Can I make a suggestion? I tend to look at the issue of user input the other way around... rather than excluding things I don't think I want, I choose in allow things I *DO* want... so instead of saying a username shouldn't contain !@#$%^&*()_+-=<>?":';, I say it should contain a-zA-Z0-9_-. This

Re: [PHP] Exclusion in Regex not working

2003-01-31 Thread Chris Hayes
At 14:11 31-1-2003, you wrote: So I'm using ereg(pattern, input) to see if the pattern matches or not. SO for exclusion I build the following pattern [^$] and pass it to ereg above. So if the input includes a $ the ereg should return false and the processing shouldn't take place. Well the thin

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Justin French
Firstly, try uploading two SMALL files (say, no more than 1k each), just to check if it's an issue with *two files*, or an issue with *file size*, *script time outs* (maximum execution time) or something else. Start ruling them out, one at a time. Justin on 01/02/03 12:03 AM, Antti ([EMAIL PROT

[PHP] Exclusion in Regex not working

2003-01-31 Thread SLanger
Hello Everyone This might be slightly offtopic since I'm not sure its php related but I'm working on a script where some inputdata is taken for further processing. For validation purposes I want to make sure certain chars are not part of the input. Basically stuff like $ * :; etc... So I'm

Re: [PHP] reading attachmentsl

2003-01-31 Thread Chris Hayes
At 11:11 31-1-2003, you wrote: hi all I'm writing a mail client and I got problem with attachments. I have no idea how to read and save attachments. Mayby someone already did something like that a can help me with some advice or giving me link to some resourses. Maybe it helps to see how an

[PHP] Unable to upload multiple files

2003-01-31 Thread Antti
When I push the submit button it starts to send the request to my server and uploads a file, but if I upload more than one at a time it doesn't even start to upload them. My upload max should be like 50M in php.ini. What is the problem. antti -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Send commands to a shell program

2003-01-31 Thread Marek Kilimajer
popen might help you, but if you want to control programs from a browser, you will encounter one problem - once your script is finished, your program is closed too. Antti wrote: I want to for example give commands to mpg321 when it is executed with the -R option (remote control mode). Is this

[PHP] RE: iCal parser and importing iCal to database

2003-01-31 Thread Jerry Artman
Just drop on over to http://phpicalendar.sourceforge.net/nuke/ and I think you'll find what you are looking for. Jerry Artman Budget and Reimbursement [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >