Re: [PHP] header() + link..

2001-08-30 Thread
From: Ashwin Kutty <[EMAIL PROTECTED]> Date: Thu, Aug 30, 2001 at 10:51:20PM -0300 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] header() + link.. > > Hi, > > Is there a simple way to hide the redirect url when using the header > function? I would like for the script url or even the form url

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

2001-08-30 Thread _lallous
I'm not sure how the DBF format is, but I think you can export the Fox's .dbf to comma-seperated-values no? If yes, you can easily then put them back into MySql. "Yang" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > use php Convert between(foxpro) `.dbf' file

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread speedboy
> I'm sure http://www.php.net exists. :) No, what my sentence meant was you're trying to do some operations on a mis-typed file descripter? $fp = fopen... fputs($fp2... ^- There should be no 2. Possibly something like that? > > > > with fopen(). Everytime I try to use fopen, I get s

Re: [PHP] Refreshing php.ini without restart...

2001-08-30 Thread B. van Ouwerkerk
>i just moved my PHP project from my local PC to the online webserver and I >will need to do a few adjustments to the server. since the server is used by >all the employees in the company, there is no chance I can reboot it without >prior notice... my question: is there any way I can refresh the

[PHP] Re: Print out the form When click Submit?

2001-08-30 Thread Raphael Pirker
if there were, webmasters could take control over your printer using their website. what a horrible thought! you can start a "request for print" however, simply by adding : this will open a print window... Hope that helps, Raphael -- PHP General Mailing Li

[PHP] Refreshing php.ini without restart...

2001-08-30 Thread Raphael Pirker
Hi, i just moved my PHP project from my local PC to the online webserver and I will need to do a few adjustments to the server. since the server is used by all the employees in the company, there is no chance I can reboot it without prior notice... my question: is there any way I can refresh the

[PHP] Print out the form When click Submit?

2001-08-30 Thread Jack
Dear all I'm trying to write a user input form which when the user click the submit button, two task of php will proceed. 1. The data user input into the form will be insert into Mysql. (Which i had done so already!) 2. The form will regenerate a new page which for the user to print out to get a

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread Paul Procacci
Any help debugging the below would help greatly :) ok, I ran strace and tried this via a command line: bash-2.05$ strace ./tmp.php A snippet from tmp.php looks like this: # #!/usr/local/bin/php -q http://www.php.net/";, "r"); exit; ###

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread Paul Procacci
I'm sure http://www.php.net exists. :) Speedboy wrote: > > > with fopen(). Everytime I try to use fopen, I get some weird error > > > messages. If I do fopen("http://www.php.net";, "r") - I get this error > > > message: Undefined error: > > > If I try doing > > > fopen("http://www.somehost.co

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread speedboy
> > with fopen(). Everytime I try to use fopen, I get some weird error > > messages. If I do fopen("http://www.php.net";, "r") - I get this error > > message: Undefined error: > > If I try doing > > fopen("http://www.somehost.com/~myname/somefile.php?var=value";, "r") - I > > get this message:

Re: [PHP] access to the apache environment from the c-client builtinto PHP 4.0.x

2001-08-30 Thread Rasmus Lerdorf
Just do a putenv() from PHP? On Fri, 31 Aug 2001, Liam Hoekenga wrote: > we're trying to get a krb4 c-client working with php built as an apache > server module (either dso or static). > > we've hit a wall in that, c-client itself seems to have access to the > environment in which apache was sta

[PHP] access to the apache environment from the c-client built into PHP4.0.x

2001-08-30 Thread Liam Hoekenga
we're trying to get a krb4 c-client working with php built as an apache server module (either dso or static). we've hit a wall in that, c-client itself seems to have access to the environment in which apache was started, but not the apache environment. ie... we threw this into c-client: { e

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread Rasmus Lerdorf
Well, try it from the command line and strace it and see which errno the socket open call is giving you (you said you weren't a newbie). -Rasmus On Fri, 31 Aug 2001, Paul Procacci wrote: > Hey all, > I've been using php for a long time and never have I had a problem > with fopen(). Everyti

[PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread Paul Procacci
Hey all, I've been using php for a long time and never have I had a problem with fopen(). Everytime I try to use fopen, I get some weird error messages. If I do fopen("http://www.php.net";, "r") - I get this error message: Undefined error: If I try doing fopen("http://www.somehost.com/~mynam

Re: [PHP] sql query with join and same column twice...

2001-08-30 Thread ERISEN, Mehmet Kamil
Please try select dest.dest_name, air.name as airport1, air2.name as airport2 from destination, airport air, airport air2 where dest.airport_dep_id_id=air.airport_id and dest.airport_arr_id=air2.airport_id; you can use the same table as manu times as you like in sql. I

[PHP] sql query with join and same column twice...

2001-08-30 Thread Web Manager
Hello, Here are 2 tables: airport - airport_id name code city_id destination --- destination_id dest_name airport_dep_id // using airport.airport_id (departure) airport_arr_id // using airport.airport_id has well (arrival) I have 2 columns in the second table that uses the

Re: [PHP] About PHP & Oracle

2001-08-30 Thread Joel Ricker
> Dear all, > Now i have an Oracle database. I have created a table contains 43 rows for example. I use PHP to contact with my oracle. I want to write a script access my Oracle for display data into table. Each time display 9 rows. So I dont't know how to program such as "Page 1 2 3 4 Next".Can an

RE: [PHP] Re: line by line

2001-08-30 Thread Navid Yar
Thanks Hugh, that makes a lot of sense. I shall look for further details about these functions and learn more about them. Thanks again for your input. Sincerely, Navid Yar -Original Message- From: Hugh Danaher [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 5:23 PM To: Navid Y

RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-30 Thread Jason Murray
> function menu( $theurl) > { > //global $u ; > $u = $SCRIPT_FILENAME; > echo $u; > echo $theurl; > } > ?> > > Hello there !!! > > Variable scope. You need a "global $SCRIPT_FILENAME;" at the top of the function. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-30 Thread Jack Dempsey
you have to use $GLOBALS["SCRIPT_FILENAME"] jack "Arcadius A." wrote: > Hello ! > Why this script prints an empty string(it prints nothing) as the value of > the variable "u" ? > This happens even if $REQUEST_URI or PHP_SELF is used instead of > SCRIPT_FILENAME . > Thanks... > > function m

[PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-30 Thread Arcadius A.
Hello ! Why this script prints an empty string(it prints nothing) as the value of the variable "u" ? This happens even if $REQUEST_URI or PHP_SELF is used instead of SCRIPT_FILENAME . Thanks... Hello there !!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] About PHP & Oracle

2001-08-30 Thread Duy B
Dear all, Now i have an Oracle database. I have created a table contains 43 rows for example. I use PHP to contact with my oracle. I want to write a script access my Oracle for display data into table. Each time display 9 rows. So I dont't know how to program such as "Page 1 2 3 4 Next".Can any

[PHP] <-- to check airfares

2001-08-30 Thread Kevin Keeler
has anyone seen a script that checks a travel site (such as travelovity or expedia or even yahoo) and sucks out the relevant prices for certina destinations? If not, I'm thinking I could do it, but I was just wondering if anyone had an opinion on which site would be the simplest and "cleanest" to

[PHP] Re: imagecreatefromgif

2001-08-30 Thread Chris
OK, NOW I FEEL STUPID!!! Upon trying the suggestion I notice a missing semicolon. Thanks, Chris -- 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 PR

[PHP] header() + link..

2001-08-30 Thread Ashwin Kutty
Hi, Is there a simple way to hide the redirect url when using the header function? I would like for the script url or even the form url to remain, but not the redirected url.. Besides printing the page in the script itself, would there be any other way? Any help is appreciated.. thanks.. --

Re: [PHP] The future of PHP

2001-08-30 Thread Zeev Suraski
At 01:40 31-08-01, Manuel Lemos wrote: >Whoever hears you may even believe that Microsoft products and >supporting sites are successful because they don't have flaws. Sorry, >but honestely this sounds like an excuse for not doing it. Microsoft chooses which sites it links from microsoft.com *very

Re: [PHP] imagecreatefromgif

2001-08-30 Thread David Robley
On Fri, 31 Aug 2001 05:56, Chris wrote: > 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 do

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

2001-08-30 Thread Dave Freeman
On 30 Aug 01, at 13:40, Mike Gifford wrote: > 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. I've got one that I downloaded from freshme

RE: [PHP] The future of PHP

2001-08-30 Thread Cristopher Daniluk
Manuel, This thread is long since dead. Your points are respectfully taken by all of us, but I for one believe you are missing a fundamental point. That in mind, I've prepared a list of ubiquitous tools in use today. These tools are not backed by big marketing budgets or Microsoft or anything of

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

2001-08-30 Thread James Potts
Manuel, Thanx again for your help. I will check it out this evening. Sounds like you're a busy man. ;-) Keep up the good work. James Potts "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > James Potts wrote: > > > > Manuel, > > > > Thanx for

[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]

[PHP] Re: A Separate Process?

2001-08-30 Thread James Potts
Jordan, Following (at the end of this post) is the code for a Unix daemon (daemon.c). It is setup to run on both System V and BSD. I am not familar with Linux. In any case, you link in the object built from this code with your main C program. After you've setup your environment in your main m

[PHP] Re: Winning Confirmation ..

2001-08-30 Thread Cathy4342
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://wintrip.yes8.com Confirmation Number#Lh340 Please confirm your entry within 24 hours

Re: [PHP] The future of PHP

2001-08-30 Thread Manuel Lemos
Hello Zeev, Zeev Suraski wrote: > > 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 tha

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

2001-08-30 Thread Manuel Lemos
James Potts wrote: > > Manuel, > > Thanx for the excellent overview of metabase. I will give it a test drive. > A couple further questions, if you have time: > > Do you execute meta commands like you do with the other db interface > functions, e.g., odbc_connect(), odbc_select(), etc., or are

[PHP] Re: mail() not supported

2001-08-30 Thread Yasuo Ohgaki
Cyrille Mortreux wrote: > 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 ??? >

Re: [PHP] Re: line by line

2001-08-30 Thread Hugh Danaher
That I know, calling fgets() 3 times would put the file pointer at the start of the 4th. line. However, fread() "won't let you decide the position from which the acquisition begins.." according to my help book. Perhaps the filepointer is in the right spot, perhaps not. fread() requires an fseak

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

2001-08-30 Thread James Potts
Manuel, Thanx for the excellent overview of metabase. I will give it a test drive. A couple further questions, if you have time: Do you execute meta commands like you do with the other db interface functions, e.g., odbc_connect(), odbc_select(), etc., or are you able to encapsulate SQL between

Re: [PHP] File read Parser error

2001-08-30 Thread John Meyer
At 11:53 PM 8/30/01 +0200, you wrote: >Gary wrote: >>Can someone tell me why I am getting an error for the second line below. >>It works locally but not live. >> >$filename = "www/name/test/free.txt" >>$toread = fopen($filename, 'r'); >>$conte

[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 . ");";

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. > > $filename = "www/name/test/free.txt" >$toread = fopen($filename, 'r'); >$contents = fread($toread, filesize($filename)

[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 PROTECTED]

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. >> >> >$filename = "www/name/test/free.txt" >> >

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 > > $fp = fopen("meh.txt","r"); >for($i=0;$i<2;$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 t

[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: ht

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. > > $filename = "www/name/test/free.txt" ^ semi-colon ? > $tore

[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 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-

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

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 b

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 http://php.net/f

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 "Hea

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 be

[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 ar

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 functio

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] 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

[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] 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 h

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 r

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] 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]

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

[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 MainDo

[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: [EMAI

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

2001-08-30 Thread
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 fully upload

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 tha

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

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 cate

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 lin

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] 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 pho

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 >post

[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 app

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

[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 postin

[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 wor

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 m

[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] 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] 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]

[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 d

[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

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 <3B8A1D6A.4295.2947D@lo

[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]

[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 displa

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] 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 administrator

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread
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. You're welcome... and eh... for

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. "* R&Ze:" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > From: Paul McGee <[EMAIL PROTECTED]> > Date: Thu, Aug 30, 2001 at 12:13:21PM -0400 > Message-ID: <[EMAIL P

Re: [PHP] Header() function and redirect

2001-08-30 Thread
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 it into PDF

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread
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 problem is

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] 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] 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] 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

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 fo

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

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 ho

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

Re: [PHP] Header() function and redirect

2001-08-30 Thread
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 short PHP p

  1   2   3   >