[PHP] Apache Segmentation fault.

2001-08-30 Thread Bill Koch
I am getting Apache errors everytime that I try and run a Java class I get a segmentation error. Here is the error from my log [Thu Aug 30 08:35:33 2001] [notice] child pid x exit signal Segmentation fault (11) I am running RH 7.1(2.4.2) Apache 1.3.19 with mod_ssl and OpenSSL, PHP is

Re: [PHP] Regular Expression Problem and PHP 4 (urgent) --- continued

2001-08-30 Thread Ross Nielsen
Andrey, Thanks for the time that you put into this! After some tweaking (for my scripts) I got this working nicely, and learned a thing or two about PREG also. Ross Nielsen [EMAIL PROTECTED] Andrey Hristov [EMAIL PROTECTED] wrote in message

[PHP] Simple Char Swapping in String crashes Webserver

2001-08-30 Thread Jens Kisters
Hey there i just managed something that i never accomplished beforei kill a httpd process from PHP, i run the following code ? $slen=strlen($enc); for ($i=0;$i$slen;$i=$i+2) { $swap=$enc[$i]; $enc[$i]=$enc[$i+1]; $enc[$i+1]=$swap; } ? $enc is a string and has an even length This

Re: [PHP] FORMAT return?

2001-08-30 Thread Andrey Hristov
Try number_format() Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: Glyndower [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 3:58 PM Subject: [PHP] FORMAT return? If i have a feild in a database that

[PHP] Databases, arrays and woes

2001-08-30 Thread Kath
I have a MySQL table which stores information like this: | Type | Place Name | Place Abbrv | and lets say I have data in the table like: Example #1: | Office | Bill's Office | bo | | Store | Millcreek Supply | mcs | | Office | Harry's Office | ho | | Store | Sam's Discount Taxidermy | sdt | |

[PHP] Re: Vairable is not showing up in the print string

2001-08-30 Thread _lallous
maybe register_globals was turned off in your php.ini ? Girish P [EMAIL PROTECTED] wrote in message 00cb01c13151$d2333d90$[EMAIL PROTECTED]">news:00cb01c13151$d2333d90$[EMAIL PROTECTED]... Hi, I am passing a value from one php page(FirstB.php ) to another php page (Sql.php) with in a link.

[PHP] use php Convert between(foxpro) `.dbf' files and MySQL

2001-08-30 Thread yang
use php Convert between(foxpro) `.dbf' files and MySQL thk -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Associative arrays (names and strings)

2001-08-30 Thread _lallous
Thanks again! Andrey Hristov [EMAIL PROTECTED] wrote in message 030201c1314e$0cc2aee0$0b01a8c0@ANDreY">news:030201c1314e$0cc2aee0$0b01a8c0@ANDreY... The return value of mysql_fetch_array is something strange. You receive into the array data copied to times. 0 is no alias to 'name' for example.

[PHP] September PHP meeting - SouthEast Michigan Php User Group (SEMPUG)

2001-08-30 Thread Michael Kimsal
EARLY REMINDER: Our next meeting is NOT tonight (as some people have asked) but *next* Thursday evening (first Thursday in September - September 6, 2001). Address 125 N Huron #400 Ypsilanti, MI 48197 2 blocks north of Michigan Ave in downtown Ypsi. As usual, we'll see you all between 7 and 8

[PHP] mail() not supported

2001-08-30 Thread cyrille mortreux
Hi. Troubles with PhpNuke and mail(): When an user register, no mail i sent to him, but a message warning; mail() is not supported in this php build. I got postfix working fine, php.ini all right with sendmail_path=/usr/sbin/sendmail -t -i Any idea ??? -- PHP General Mailing List

[PHP] Re: Databases, arrays and woes

2001-08-30 Thread Hugh Bothwell
Kath [EMAIL PROTECTED] wrote in message 015301c13156$2c273500$[EMAIL PROTECTED]">news:015301c13156$2c273500$[EMAIL PROTECTED]... I have a MySQL table which stores information like this: | Type | Place Name | Place Abbrv | and lets say I have data in the table like: Example #1: | Office |

[PHP] Random number

2001-08-30 Thread Rosen
Hi, I'm using PHP code from manual: srand( (double) microtime() * 100); // Get random User ID $uid=rand(); but it dowsn't work ! Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] PHP with Access?

2001-08-30 Thread Jeff Lewis
I am using mySQL with all of my stuff but a friend who started writing some files for our online baseball league was using Access as his database. We tried running it on my server but it returns an error that says undefined function odbc_connect. Now my questions, can I get this to work on a

[PHP] Re: Databases, arrays and woes

2001-08-30 Thread _lallous
made that for ya, pre ? $lines = | Office | ZZBill's Office | bo | | Office | Bill's Office | bo | | Store | Millcreek Supply | mcs | | Office | Harry's Office | ho | | Store | Sam's Discount Taxidermy | sdt | | Shipping | East Coast Distribution Facility | ecdf |; $lines = split(\n, $lines);

[PHP] Uploading large files

2001-08-30 Thread Ulrich Hacke
Hi, i have a form for uploading files to a server. It looks like this: form action=upload.php method=post enctype=multipart/form-data input type=file name=name input type=submit value=Go /form Whenever I choose a file bigger than about 4 or 5 MB i get an internal server error. I changed the

[PHP] include_path directive

2001-08-30 Thread Gary
Our host has set-up a php .ini file in our cgi-bin. We were having trouble writing and reading from flat files. I have never set the include_path directive from a cgi-bin before. Can someone tell how to set the path? I know it has to be diffrent from the way I am used to. TIA Gary -- PHP

[PHP] Re: Random number

2001-08-30 Thread Hugh Bothwell
Rosen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm using PHP code from manual: srand( (double) microtime() * 100); // Get random User ID $uid=rand(); but it dowsn't work ! ... I would make sure that microtime() is doing what you think it is;

Re: [PHP] The future of PHP

2001-08-30 Thread Egan
On Thu, 30 Aug 2001 02:52:33 -0500, Richard Lynch [EMAIL PROTECTED] wrote: Which dot-bomb had a business plan, with a revenue model, which did *NOT* involve going into heavy debt and blowing huge piles of VC money for several years in a market-share grab on the Internet, where the barrier to

[PHP] PHP and SOCKETS

2001-08-30 Thread Dariusz Malinowski
Hi there, I need use sockets in my code, but PHP doesn't see function named 'socket'. Does any one have any expirience with PHP sockets ? Maybe name has changed ? Please, answer in private e-mail. TIA, Dariusz Malinowski -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP and SOCKETS

2001-08-30 Thread Jason Brooke
Hi there, I need use sockets in my code, but PHP doesn't see function named 'socket'. Does any one have any expirience with PHP sockets ? Maybe name has changed ? Did you --enable-sockets in your ./configure line ? jason -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Delete Files on Server with PHP

2001-08-30 Thread Jason Brooke
How can I send a command to remove it from the server within PHP? Thanks, Paul You go to the online manual, browse to the Filesystem Functions section and look up a function that removes files http://www.php.net/manual/en/ref.filesystem.php jason -- PHP General Mailing List

[PHP] adding functionality to join

2001-08-30 Thread Jack Dempsey
Would anyone find this useful? join(' glue ',$array,0,5) instead of this join(' glue ',array_slice($array,0,5)) Its not the extra typing i mind, it just seems that the parameters go well with the join function.. Any thoughts? Jack -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Delete Files on Server with PHP

2001-08-30 Thread Paul Cohen
Thanks Jason, I was using a hard copy manual and couldn't find it in the file functions. Paul -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 10:27 AM To: Paul Cohen; [EMAIL PROTECTED] Subject: Re: [PHP] Delete Files on Server with PHP

[PHP] [PHP406]:No HTTP_POST_FILES on WinNT?

2001-08-30 Thread Michael . Thanry
Whatever I do (phpinfo(), echo $HTTP_POST_FILES['userfile']['type']) to display the array $HTTP_POST_FILES , I get nothing. My HTML form seems to be correct according to the previous messages in the mailing-list. phpinfo() displays infos about http_post_vars and I get the proper variables

Re: [PHP] Strange Form Error

2001-08-30 Thread PHP List
On Thu, 30 Aug 2001 02:25, PHP List wrote: Hi, Can anyone tell me why php is behaving like this? If I use enctype=multipart/form-data, it seems the first form field is not passed to php. ex: form method=post action=products.asp enctype=multipart/form-data input type=hidden

[PHP] If statement within a variable?

2001-08-30 Thread Brandon Orther
Hello, Is there a way to put an if statement in a variable? For example: $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To The Coffee House.; Thank you, Brandon Orther

[PHP] JOIN

2001-08-30 Thread Jeremy Morano
Sorry everone but I 'm having a hard time with joins How do I add this clause: users.uid = selection.user_uid from table selection to this query: $sql = SELECT users.uid, users.username FROM users LEFT JOIN picks ON users.uid = picks.user_id WHERE picks.user_id IS NULL Thank You. --

Re: [PHP] Quick TXT document stuff

2001-08-30 Thread Franklin van Velthuizen
Kyle Smith wrote: ok i have this code to do whats below, but its not working Try to use file(), which will return an array. So that would be: $lines = file(filename); for($i=0; $i2; $i++) { print($lines[$i]); } /franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] [PHP406]:No HTTP_POST_FILES on WinNT?

2001-08-30 Thread Franklin van Velthuizen
[EMAIL PROTECTED] wrote: Whatever I do (phpinfo(), echo $HTTP_POST_FILES['userfile']['type']) to display the array $HTTP_POST_FILES , I get nothing. Did you include enctype=multipart/form-data in your form tag? /franklin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] If statement within a variable?

2001-08-30 Thread Andrey Hristov
$var=Hello.(($var==1)? Mr. Bean:New Comer).To somewhere; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 6:59 PM Subject: [PHP]

RE: [PHP] php and Interbase

2001-08-30 Thread V
i do -Mensaje original- De: Edney Marcel Imme [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 29 de agosto de 2001 22:19 Para: [EMAIL PROTECTED] Asunto: [PHP] php and Interbase HI. Anyone use php with Interbase here? Tks. Edney Marcel Imme ICQ: 109374340 -- PHP General Mailing

Re: [PHP] If statement within a variable?

2001-08-30 Thread Jack Dempsey
$var = $var2==1 ? 'Hello Mr. Bean' : 'Hello New Comer'; be careful of your if statements and only using one equals.. jack Brandon Orther wrote: Hello, Is there a way to put an if statement in a variable? For example: $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To

Re: [PHP] If statement within a variable?

2001-08-30 Thread * RzE:
Original message From: Brandon Orther [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 08:59:44AM -0700 Message-ID: 006301c1316c$c9395010$0a00a8c0@webintel Subject: [PHP] If statement within a variable? Hello, Is there a way to put an if statement in a variable? For example: $var =

[PHP] FW: correction to JOIN

2001-08-30 Thread Jeremy Morano
-Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 PM To: [EMAIL PROTECTED] Subject: JOIN Sorry everone but I 'm having a hard time with joins How do I add this clause: users.uid selection.user_uid from table selection to

Re: [PHP] If statement within a variable?

2001-08-30 Thread Franklin van Velthuizen
Brandon Orther wrote: Hello, Is there a way to put an if statement in a variable? For example: $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To The Coffee House.; $var = Hello .($var2==1 ? Mr. Bean : New Comer); /franklin -- PHP General Mailing List

[PHP] Header() function and redirect

2001-08-30 Thread Zhu George-CZZ010
I am using Apache and PHP. I encountered a redirect problem in PHP, and traced it down, so, I generated a very short PHP page as following: ?php sleep(30); $goto =

Re: [PHP] If statement within a variable?

2001-08-30 Thread * RzE:
Original message From: * RzE: [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 06:05:57PM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] If statement within a variable? This is it: $var = Hello.($var2 = 1 ? Mr. Bean : New Comer).To The Coffee House.; /Original message Reply Oops...

[PHP] Date formatting in PHP 3.0

2001-08-30 Thread Paul McGee
I'm looping through a MSQL db pulling out the dates where I would like to display the date and then the day of the week. The problem is that every date returns the same day of the week, Wed. I checked the documentation and it doesn't say anything about the expression only being executed once

[PHP] headers...

2001-08-30 Thread Nic Skitt
Hi all, I am constantly getting Headers already sent errors. What I dont understand is why when I read something that could have come from a cookie or session does that right out to headers. eg: if (!$HTTP_COOKIE_VARS[TrackID]){ } The header error refers to this line as having first sent

Re: [PHP] Header() function and redirect

2001-08-30 Thread * RzE:
Original message From: Zhu George-CZZ010 [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 11:10:19AM -0500 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Header() function and redirect I am using Apache and PHP. I encountered a redirect problem in PHP, and traced it down, so, I generated a very

Re: [PHP] headers...

2001-08-30 Thread Franklin van Velthuizen
Nic Skitt wrote: Hi all, I am constantly getting Headers already sent errors. What I dont understand is why when I read something that could have come from a cookie or session does that right out to headers. eg: if (!$HTTP_COOKIE_VARS[TrackID]){ } The header error refers to this line as

Re: Re: [PHP] script preprocessor?

2001-08-30 Thread Christian Reiniger
On Wednesday 29 August 2001 20:15, [EMAIL PROTECTED] wrote: I do not need a cmd-line utility but something I can use _in_ a PHP4 script without the need to apply changes to the interpreter or weird system interfaces. Something similiar to the #define preprocessing instructions of cc (or

Re: [PHP] headers...

2001-08-30 Thread Nic Skitt
I cant see any. Again this seems to be a difference between my dev server and the live server. The live server doesnt compain. Any more ideas? NIc Franklin Van Velthuizen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Nic Skitt wrote: Hi all, I am

Re: [PHP] fgets

2001-08-30 Thread Christian Reiniger
On Wednesday 29 August 2001 23:45, Christopher William Wesley wrote: On Wed, 29 Aug 2001, Joseph Bannon wrote: I want to use fgets to get an image off the server and then print it. Kinda like if you call the script picture.php, an image will appear. How do I do I do this, with fopen()

Re: [PHP] If statement within a variable?

2001-08-30 Thread Alexander Skwar
So sprach »Brandon Orther« am 2001-08-30 um 08:59:44 -0700 : $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. $var = Hello . (($var2 = 1)?(Mr. Bean):(New Comer)); But why do you assign 1 to $var2? To circumvent these kind of problems, I always write: $var = Hello . ((1 ==

RE: [PHP] Header() function and redirect

2001-08-30 Thread Zhu George-CZZ010
But I have to wait for the application to finish. The idea is: the application will take the file, and convert it into PDF file (it takes more than 30 seconds generally), then display the generated PDF file. I am just wondering if I can use Header() to redirect to a general php page, then in

Re: [PHP] The future of PHP

2001-08-30 Thread Zeev Suraski
Manuel, I started answering your letter point by point, but stopped, as it wouldn't have gotten us anywhere. I'm sorry if sharing my (IMHO very realistic) estimate of the PHP world seemed like an insult to you or anybody else. Not everything that is done in the PHP world is of good quality.

Re: [PHP] headers...

2001-08-30 Thread Simon Robson
At 17:18 30/08/01 +0100, Nic Skitt wrote: I cant see any. Again this seems to be a difference between my dev server and the live server. The live server doesnt compain. That's the best way round, at least :-) Have you also checked any included/required files for extra lines (after the final

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread * RzE:
Original message From: Paul McGee [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 12:13:21PM -0400 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Date formatting in PHP 3.0 I'm looping through a MSQL db pulling out the dates where I would like to display the date and then the day of the week. The

Re: [PHP] Header() function and redirect

2001-08-30 Thread * RzE:
Original message From: Zhu George-CZZ010 [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 11:27:41AM -0500 Message-ID: [EMAIL PROTECTED] Subject: RE: [PHP] Header() function and redirect But I have to wait for the application to finish. The idea is: the application will take the file, and convert

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread Paul McGee
Thanks, I knew it was something stupid! However, the $dy = date (D, $row[0]) doesn't work. * RZe: [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Original message From: Paul McGee [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 12:13:21PM -0400 Message-ID:

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread * RzE:
Original message From: Paul McGee [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 12:45:49PM -0400 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] Date formatting in PHP 3.0 Thanks, I knew it was something stupid! However, the $dy = date (D, $row[0]) doesn't work. /Original message Reply

[PHP] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon
What exactly does fpassthru do? Does it download it to my server and then shoot it to the browser?? Joseph -- 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] php and Interbase

2001-08-30 Thread Todd Cary
Yes! I use it as my routine DB. Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- 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 administrators, e-mail: [EMAIL PROTECTED]

[PHP] How to Return a Real Filename?

2001-08-30 Thread Henrik Hudson
Morning List- I have a script which gets passed a fileID and using that fileID it queries a SQL database and grabs an actual filename and then does a fopen, fpassthru, etc I added the header info (application/octet-stream) so it actually downloads the file right away, instead of just

[PHP] determining the pixel width of a string

2001-08-30 Thread John Meyer
Is there anyway to determine the pixel width of a string? -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: how to sort search results by relevance? thanks

2001-08-30 Thread BRACK
Oh yeah! I just had old MySQL manual but I have upgraded MySQL and this function is working in my version, just was not described in docs Okay, thank you for help, I managed to do it. On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote: In article

[PHP] Grabbing all files and adding to select boxes...

2001-08-30 Thread Jeff Lewis
I want to open a particular directory that stores images and I want the images to be added to drop down box, was wondering if someone could help me with some code for that. I want to set it up this way so that people can just upload images there and they would be available on each load of the

[PHP] How to do Add More/expanding forms?

2001-08-30 Thread Chris Bailey
I have a page that is for a little recipe database app. On the page where you enter your recipe, there is a set of form fields for ingredients - one line per ingredient, and a couple of fields per (e.g. amount, measurement, ingredient). I'd like to have say 5-10 ingredient lines in the form by

[PHP] kdevelop?

2001-08-30 Thread Daniel Adams
Is there like a syntax hilighting plugin for kdevelop or something? - Dan -- -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] How to do Add More/expanding forms?

2001-08-30 Thread Jack Dempsey
Try looking for javascript solutions. Give them the default 5 and a javascript function that prints out another input variable and dynamically names it. Then you can just normally post at the end. i don't think the javascript is difficult either, and i'm sure you could find a script for it. check

[PHP] imagecreatefromgif

2001-08-30 Thread Chris
The version of php that I use states that Gif Support is enabled. And in fact I am able to create and display gif images. However when it comes to creating an image from a file the imagecreatefromgif function doesn't seem to work. I'll qualify doesn't work to mean a broken image icon is displayed

Re: [PHP] fpassthru (was: fgets)

2001-08-30 Thread Christopher William Wesley
On Thu, 30 Aug 2001, Joseph Bannon wrote: What exactly does fpassthru do? Does it download it to my server and then shoot it to the browser?? (http://php.net/fpassthru) For the file pointer on which it operates, it reads the file pointer until EOF and sends the data to STDOUT. It is very

[PHP] Whacky WGET issue...

2001-08-30 Thread Sondra Russell
Hello everyone! Crazy question: I've created a little script that reads in .txt files and, with the help of phplib templates, matches them up with a collection of templates and spits out the beautiful html page. In order to avoid sending variables through the URL I've stolen this bizarre

[PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
Hello, I'd like to find a good web calendar which will allow the general public to enter suggested events into a web calendar. I would want these suggested events to be moderated so that they can be verified. Does anyone know of a package that would allow this type of moderated public

Re: [PHP] Add Slashes - Server Adds Them Automatically - Advice Requested!

2001-08-30 Thread Mike Gifford
Hmm.. Forms always produced slashed data than I wouldn't have gotten a MySQL error on the ' in O'Neil.. But perhaps it is something on my server.. Andrey Hristov wrote: I think that always from a form the script gets slashed data. Andrey Hristov IcyGEN Corporation http://www.icygen.com

[PHP] file upload size, before upload complete

2001-08-30 Thread christopher johnson
Can anyone think of a way to determine the file size of what the user is uploading before it has been fully uploaded? I know because of security restrictions javascript can't do this, but is it possible in php? I'm trying to make an upload progress bar, it doesn't have to be exact, but a close

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Rasmus Lerdorf
I'd like to find a good web calendar which will allow the general public to enter suggested events into a web calendar. I would want these suggested events to be moderated so that they can be verified. Does anyone know of a package that would allow this type of moderated public posting?

RE: [PHP] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon
The thing I want to avoid is using my server's bandwidth. Each member gets a profile and can have a photo referenced from their homepage. I use to allow people to upload photos, but I'm getting close to using my 60GB bandwith limit. The people that have photos on geocities couldn't reference a

RE: [PHP] file upload size, before upload complete

2001-08-30 Thread Joseph Bannon
Yes, I use to do this with my site. # The original name of the file on the client machine. $filename = $HTTP_POST_FILES['file']['name']; # The mime type of the file, if the browser provided this information. An example would be image/gif. $filetype = $HTTP_POST_FILES['file']['type']; # The

Re: [PHP] Headers already sent....

2001-08-30 Thread Don Read
On 30-Aug-2001 Nic Skitt wrote: Thanks Andrey but that still hasnt fixed it. The full error I am getting is: Cannot add header information - headers already sent by (output started at c:\apache\apache\htdocs\client-secure.php:11) in c:\apache\apache\htdocs\client-secure.php on line 18

RE: [PHP] Locale Month Name

2001-08-30 Thread Don Read
On 30-Aug-2001 Veniamin Goldin wrote: Hello ! Please help me, How to get Month name according to server's locale setings ? I tryed to use: setlocale(LC_ALL, LT); $month = strftime(%B, mktime(0,0,0,$m,1,$y)); But I get message: Warning: Passing locale category name as string

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
Rasmus Lerdorf wrote: Well, the one on php.net is very simple, but it meets those basic requirements. http://www.php.net/cal.php This looks like it would probably work! You can grab the source for it out of cvs. See http://cvs.php.net I couldn't get it from here, but I think I was able to

RE: [PHP] fpassthru (was: fgets)

2001-08-30 Thread Christopher William Wesley
On Thu, 30 Aug 2001, Joseph Bannon wrote: The thing I want to avoid is using my server's bandwidth. Each member gets a profile and can have a photo referenced from their homepage. I use to allow people to upload photos, but I'm getting close to using my 60GB bandwith limit. The people that

Re: [PHP] file upload size, before upload complete

2001-08-30 Thread * RzE:
Original message From: christopher johnson [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 12:47:00PM -0500 Message-ID: [EMAIL PROTECTED] Subject: [PHP] file upload size, before upload complete Can anyone think of a way to determine the file size of what the user is uploading before it has been

[PHP] begginer needs help

2001-08-30 Thread Nikola Veber
I have been doing some amateur web-design by now, but I decided to learn something like php. I was wondering if there is a way to test php code without a server(on local computer). Thanx in advance Nikola Veber -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Directing A Parked Domain To A Sub Directory

2001-08-30 Thread Jeff Gannaway
I've got a website, we'll call it MainDomain.com. I created a specialty site in a sub-directory. We'll call the sub-directory Widgets. I want a different domain to point to that sub directory. We'll call the new domain WidgetWorld.com My webhost will allow me to park WidgetWorld.com at

RE: [PHP] Directing A Parked Domain To A Sub Directory

2001-08-30 Thread Boget, Chris
How can I use PHP to detect if the visitor wanted MainDomain.com (and display MainDomain/index.php) or WidgetWorld.com (and then display MainDomain/Widgets/index.php). I *believe* what you are looking for is $HTTP_HOST. Chris

RE: [PHP] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon
Dang it! -lol Any ideas how to get around my problem? J -- 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 administrators, e-mail: [EMAIL PROTECTED]

FYI: Re: [PHP] How to Return a Real Filename?

2001-08-30 Thread Henrik Hudson
FYI: Since this may be a problem for others, I did figure it out sort of. If my script is called: filereturn.php I pass this in my HREF: A HREF=filereturn.php/filename.exe?fileID= I don't know if this is a hack or whatever, but Netscape (NIX and Windoze) and IE on Mac will now save the

Re: [PHP] How to Return a Real Filename?

2001-08-30 Thread Franklin van Velthuizen
Henrik Hudson wrote: Morning List- I have a script which gets passed a fileID and using that fileID it queries a SQL database and grabs an actual filename and then does a fopen, fpassthru, etc I added the header info (application/octet-stream) so it actually downloads the file right

Re: [PHP] FW: correction to JOIN

2001-08-30 Thread Sheridan Saint-Michel
-Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 PM To: [EMAIL PROTECTED] Subject: JOIN Sorry everone but I 'm having a hard time with joins Let me give you a brief explanation of how Left Join works (or at least how I

[PHP] Re: begginer needs help

2001-08-30 Thread Patrick Calkins
Sure, you should just (for Windows) download the Apache web server for windows, and get the PHP for windows off of php.net. Then you can run a 'local' server that processes your PHP code. Or do the same for a Unix machine... -- Patrick Calkins OEMSupport.Com, Inc. ** please remove the _ to reply

Re: [PHP] Database Preference? -- Manuel, Michael, Miles

2001-08-30 Thread Manuel Lemos
Hello, James wrote: Regarding a database abstraction package: does Metabase handle all standard SQL constructs (as opposed to vendor-specific SQL extensions)? The GUI applications to be ported were built with JAM, which basically provides an abstraction layer via its JPL language. JPL has

RE: [PHP] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon
What if I pass something in the header? Will that work? Joseph -Original Message- From: Christopher William Wesley [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 1:05 PM To: PHP (E-mail) Subject: RE: [PHP] fpassthru (was: fgets) On Thu, 30 Aug 2001, Joseph Bannon wrote:

Re: [PHP] Random number

2001-08-30 Thread Augusto Cesar Castoldi
Use this function, the $num argument, is the total of numbers. Ex: if $num is 5, the funtion will return 56743, is five numbers. function random($num) { srand ((double) microtime() * 100); $temp = rand().rand().rand(); $temp = substr($temp, 0, $num); return $temp; } //fim function

[PHP] imap_search?

2001-08-30 Thread shi
Hello I'm trying to use imap_search to retrieve the all the post after a given date and then put them into a mysql DB. I don't know if this is the best way to do it. $searchstr = SINCE Thu, 30 Aug 2001 12:05:49 +0200; $search = imap_search($nntp, $searchstr, SE_UID); This should give me a

Re: [PHP] begginer needs help

2001-08-30 Thread Erols
Sure, you can test PHP code without running any servers. Run PHP as follows: php.exe my_test.php - Original Message - From: Nikola Veber [EMAIL PROTECTED] To: php forum [EMAIL PROTECTED] Sent: Thursday, August 30, 2001 12:18 PM Subject: [PHP] begginer needs help I have been doing

RE: [PHP] Header() function and redirect

2001-08-30 Thread Don Read
On 30-Aug-2001 Zhu George-CZZ010 wrote: But I have to wait for the application to finish. The idea is: the application will take the file, and convert it into PDF file (it takes more than 30 seconds generally), then display the generated PDF file. I am just wondering if I can use Header()

RE: [PHP] Re: line by line

2001-08-30 Thread Navid Yar
When using fgets() 3 times, does the pointer inside the file change positions? Navid Yar -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 4:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: line by line http://php.net/fopen

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Mike Gifford
Hello Ramus, Rasmus Lerdorf wrote: Well, the one on php.net is very simple, but it meets those basic requirements. http://www.php.net/cal.php You can grab the source for it out of cvs. See http://cvs.php.net Ok.. I've got the source.. However, pulling the calendar out of php.net is a bit

RE: [PHP] determining the pixel width of a string

2001-08-30 Thread Don Read
On 30-Aug-2001 John Meyer wrote: Is there anyway to determine the pixel width of a string? $font=2; $strpx=imagefontwidth($font) * strlen($str); Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to

[PHP] File read Parser error

2001-08-30 Thread Gary
Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename));

RE: [PHP] File read Parser error

2001-08-30 Thread Don Read
On 30-Aug-2001 Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt ^ semi-colon ?

[PHP] Delete files older than X seconds.

2001-08-30 Thread Julio Nobrega Trabalhando
Hi All, Another doubt. How can I delete files older than X seconds from a given folder? At the on-line manual I could only find a contributed note about 'discover time of last modification' from a file under a folder. Any help is appreciated. -- Julio Nobrega A hora está chegando:

Re: [PHP] Quick TXT document stuff

2001-08-30 Thread Steve Edberg
At 1:31 PM -0700 8/30/01, Kyle Smith wrote: ok i have this code to do whats below, but its not working ?php $fp = fopen(meh.txt,r); for($i=0;$i2;$i++) { print $fp[$i]; } ? That's because $fp is a file POINTER, not the actual contents of the file. You might have been thinking of the file()

Re: [PHP] File read Parser error

2001-08-30 Thread Gary
geez, time to call it a day! Thanks Gary Don Read wrote: On 30-Aug-2001 Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt

[PHP] Documentation for snapshot releases?

2001-08-30 Thread Philip Hallstrom
Hi - Is it possible to get documentation for the snapshopt releases? Or something newer than 4.0.6? All pointers appreciated. Thanks! -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] File read Parser error

2001-08-30 Thread Franklin van Velthuizen
Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename));

[PHP] Is there anything in here that could be considered a parse error?

2001-08-30 Thread John Meyer
if (empty($DidSurvey[$p_surveyid])) { if (is_array($p_answers)){ foreach($p_answers as $value) { error line-- $sql = INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES( . $p_surveyid . , . $value . );;

<    1   2   3   >