Re: [PHP] Re: Program execution stops at exec()

2002-05-25 Thread Michael Virnstein
Must have overwritten this, but very good to know that. Thanx. Michael Analysis Solutions [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, May 24, 2002 at 06:30:50PM +0200, Michael Virnstein wrote: i think the exec in your php waits for the

Re: [PHP] Is this doable?

2002-05-25 Thread Sandman
In article 002e01c20370$4ebee8f0$b402a8c0@mango, [EMAIL PROTECTED] (John Holmes) wrote: Can PHP do that? Of course. Can it do it that easily right out of the box. No. Just like the RXML backend is already written that parses accessed per=day / into the appropriate number, the backend would

Re: [PHP] How is SESSION_ID passed?

2002-05-25 Thread Miguel Cruz
On Fri, 24 May 2002, Alex Shi wrote: I have created several web sites using php. In all these sites session id is passed via cookie. However I noticed that some times it was passed by url. I am thinking that to pass session id by url will be safer than by cookie. You are thinking

Re: [PHP] Fwd: Popup window from form on php page

2002-05-25 Thread Miguel Cruz
On Fri, 24 May 2002, David Bourne wrote: The code (in Page1.php): form action=javascript: OpenWindow('Page2.php?a1=? echo $a1; ?a2=? echo $a2; ?a3=? echo $a3; ?a4=? echo $a4; ?', 'Answers','toolbar=no,resizable=yes,scrollbars=yes,dependent=yes,status=0,

[PHP] Session question

2002-05-25 Thread Christian Ista
Hello, I'm a newbie in PHP, I use a lot ColdFusion (at work). With ColdFusion, it's very easy to create and use session variable. I do something like that : cfset session.myvariable = hello and this variable can be use everywhere. Could you tell me how that's work in PHP. I saw in help file

[PHP] PHP script

2002-05-25 Thread r
Hi Guys, I need a PHP script that will allow me to upload/download chmod files etc on a remote server... I know there are loads of these scripts out there but being a newbie to PHP I really dont know which one is good... can you recomend any? coming from Java I love PHP so would appreciate if

Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!

2002-05-25 Thread r
I would really like to call you scum but I think the scumy people of this world would object. This aint a auction or any type of selling market, try greatdomains.com or some such service, I'll bet your little ding a ling that what ever you have on your site can be made in a few days by over 80%

[PHP] PHP script

2002-05-25 Thread r
Hi Guys, I need a PHP script that will allow me to upload/download chmod files etc on a remote server... I know there are loads of these scripts out there but being a newbie to PHP I really dont know which one is good... can you recomend any? coming from Java I love PHP so would appreciate

Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!

2002-05-25 Thread Liam MacKenzie
Amen - Original Message - From: r [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 8:36 PM Subject: Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!! I would really like to call you scum but I think the scumy people of this world would object. This aint

[PHP] unexpected T_IF

2002-05-25 Thread Zac Hillier
Hmm, can anyone explain why I'm getting this error? Parse error: parse error, unexpected T_IF in /usr/local/htdocs/san.loc/upload-img.php on line 34 Code reads: 11:#--if form submitted then process file upload 12:if($HTTP_POST_VARS['ttl']) { 13: 14: #--check if there is already a picture

[PHP] Re: unexpected T_IF

2002-05-25 Thread Michael Virnstein
you can look here: http://www.php.net/manual/en/tokens.php to see what T_IF means. 31: $FulflNme = $DOCUMENT_ROOT . $flNme you forgot the ; at the end of the line. Michael Zac Hillier [EMAIL PROTECTED] schrieb im Newsbeitrag

[PHP] please help!!

2002-05-25 Thread Jolly Ng
Hi Hi, php + apache + win2000 or php + IIS + win2000 I don't know why my setting do not allow me to POST or GET variable which submit in html form Please help!!! Jolly

RE: [PHP] Is this doable?

2002-05-25 Thread John Holmes
Smarty is the only one that I really remember, as far as template engines. http://www.phpinsider.com/php/code/Smarty/ There are others, like FastTemplate. Do a search on Google or SourceForge and you'll come up with a couple dozen. What they do is separate the code from presentation. Instead

[PHP] displaying an image with header(... does not work

2002-05-25 Thread andy
Hi there, I am pulling out an image out of a mysql blob field. The image is there, I can see it in mysqlfront. So I pull it out of the db store it into a variable and then do a: header(Content-type: image/pjpeg); echo $picture; I do get a white screen and the browser is loading forever. I

RE: [PHP] Session question

2002-05-25 Thread John Holmes
Just be sure you call session_start() on any page you want to access session variables. Then you can set a variable by doing $_SESSION[myvariable] = hello; and then you can use $_SESSION[myvariable] anywhere you want. This assumes the latest version of PHP. The procedure is similar on older

Re: [PHP] Session question

2002-05-25 Thread Christian Ista
Just be sure you call session_start() on any page you want to access session variables. I have to call this function on each page I use session variable or juste once ? This assumes the latest version of PHP. The procedure is similar on older versions, you just have to use

[PHP] Re: displaying an image with header(... does not work

2002-05-25 Thread Jens Lehmann
Hi there, I am pulling out an image out of a mysql blob field. The image is there, I can see it in mysqlfront. So I pull it out of the db store it into a variable and then do a: header(Content-type: image/pjpeg); echo $picture; I do get a white screen and the browser is loading

Re: [PHP] Session question

2002-05-25 Thread Jens Lehmann
Just be sure you call session_start() on any page you want to access session variables. I have to call this function on each page I use session variable or juste once ? The statement is pretty clear. You've to call it once on each page you want to access session variables. This

[PHP] Re: displaying an image with header(... does not work

2002-05-25 Thread andy
sound pretty funny... but I opened the browser to test it again, and it worked without problems :-) No clue why. Anyway.. thank you Andy Jens Lehmann [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I am pulling out an image out of a mysql

[PHP] Switch() ?????

2002-05-25 Thread Vincent Kruger
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? -- PHP General Mailing List

[PHP] Server push?

2002-05-25 Thread Leif K-Brooks
Does php support server push? I am trying to make a real-time chat. Would server push be the best way, and if so, how would I do it? Thanks for any help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP script

2002-05-25 Thread SP
I'm not an expert but that doesn't sound like it's possible. I mean if you could upload files and chmod them on a remote server you would have some serious security issues. The only thing I can think of is you could upload files to your remote datebase. -Original Message- From: r

[PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Vincent Kruger
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? -- PHP General Mailing List

[PHP] Re: Switch() ?????

2002-05-25 Thread Jens Lehmann
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? Don't write break; in case 1. Jens

[PHP] Re: Function Switch($pid) - NEED HELP

2002-05-25 Thread Jens Lehmann
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? Please don't post the same question

RE: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Jonathan Rosenberg
-Original Message- From: Vincent Kruger [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 25, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Function Switch($pid) - NEED HELP I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now

[PHP] Storing img into db does not work with imagecreatefromjpeg?

2002-05-25 Thread andy
Hi there, I would like to save images into a blob column. Works good if I use the tmp file php has created after submitting the form. But if I do some gd stuff like changing some colors with inside the image and then save this immage, it does not work. I used to save the image to a file with:

Re: [PHP] PHP script

2002-05-25 Thread r
Hey there, Guess you too are a newbie, anyway, have been doing what you think is impossible for years using perl and servlets without any problems, And I know its possible with PHP too, since its possible i'm pretty sure someone has used it in some app already or is going too, the php community

RE: [PHP] PHP script

2002-05-25 Thread SP
Okay how about in your upload form, try putting in the whole url instead of upload.php. I don't know if that would work. You would have to have the upload.php script on the remote server. form ENCTYPE=multipart/form-data method=POST action=http://www.remoteserver.com/upload.php;

Re: [PHP] please help!!

2002-05-25 Thread Olexandr Vynnychenko
Hello Jolly, Saturday, May 25, 2002, 9:13:02 AM, you wrote: JN Hi Hi, JN php + apache + win2000 JN or JN php + IIS + win2000 JN I don't know why my setting do not allow me to POST or GET variable which submit in html form JN Please help!!! JN Jolly Let us read your html and php code. I've

Re: [PHP] please help!!

2002-05-25 Thread 1LT John W. Holmes
Saturday, May 25, 2002, 9:13:02 AM, you wrote: JN Hi Hi, JN php + apache + win2000 JN or JN php + IIS + win2000 JN I don't know why my setting do not allow me to POST or GET variable which submit in html form JN Please help!!! JN Jolly Turn on register_globals or use the $_GET[],

[PHP] hosting

2002-05-25 Thread hassan
hi anybody know of a hosting service that can be setup in a few minutes and i mean a few minutes that's all i got Thank ___ Hassan El Forkani Founder And Mantainer of : http://WarmAfrica.com EveryOne's Africa Freelance Internet Consultant / Web

Re: [PHP] hosting

2002-05-25 Thread 1LT John W. Holmes
anybody know of a hosting service that can be setup in a few minutes and i mean a few minutes that's all i got I know of a great one...umm, just give me a few minutes to remember the name. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Can't get Apache and PHP to run together -each seems to work OK WinME

2002-05-25 Thread Adrian Greeman
I am not an advanced user but not incapable. Please bear with me for any amateurishness. I am trying to get PHP to work with Apache. I have a Windows ME PC, 2Mhz and 512 of RAM. I want it only to learn PHP and then test out a few things, using MySQL too. I downloaded Apache version 1.3.24 and

Re: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Rasmus Lerdorf
Just don't do the break in case 1 if you want to fall through to case 2. On Sat, 25 May 2002, Vincent Kruger wrote: I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to

Re: [PHP] hosting

2002-05-25 Thread hassan
OK let me explain, this is an emergency situation i need php 4.XXX with --enable-wddx plus allow remote fopen (the app reads remote xml files) perl binary installed access to one directory outside the web root (to store includes and classes library) mysql database disk space something like 50

Re: [PHP] SegFaults with PHP4.2.1 and Apache 2.0.36

2002-05-25 Thread Rasmus Lerdorf
The fact that some applications crash with Apache2+PHP is not strange at all. There are likely a number of 3rd-party libraries which can currently be linked into PHP that are not threadsafe and/or re-entrant. It will take a while before we identify these libraries and try to come up with some

Re: [PHP] gmtime?

2002-05-25 Thread Jens Lehmann
I don't know what gmtime() is supposed to do. But is gmmktime() similar? http://www.php.net/manual/en/function.gmmktime.php -Kevin Sorry, my first answer was incorrect. gmmktime() does not do what I want. Do you have any other suggestion why we need/don't need gmtime()? Jens -- PHP

[PHP] Re: Can't get Apache and PHP to run together -each seems to work OK WinME

2002-05-25 Thread Jens Lehmann
Maybe Apache and PHP have problems with the 2MHz-CPU. :-) I can only guess what may be the problem: 1. You didn't write phpinfo.php correctly. 2. phpinfo.php is in the wrong directory. I suggest this because if the apache-site comes up correctly and phpinfo.php does not it _might_ be a

[PHP] Newbie Questionabout variables

2002-05-25 Thread Al
I hope this posting is not a duplicate. I originally posted it yesterday, but it doesn't show on the newsgroup for me. Apparently you can set a variable as part of a URL statement. For example: www.company.com/index.php?admin=password. Where password might be a simple variable to test as a

[PHP] Posting problem with Mozilla

2002-05-25 Thread Al
Anyone have a clue why I can't post messages with Mozilla [RC2]? Goes through all the motions as if the message is sent. Shows in my sent folder and the terminal icon indicates the message is sent. Works fine for all other newsgroup servers. I'm posting this with IE6. -- PHP General

[PHP] Socks Scripting

2002-05-25 Thread chris reeper
Hi, Is there any good info out there on how to connect to socks servers via php. Trying to redo the backend of my site to access a mysql database thats on the other side of socks5 server. ? -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP script

2002-05-25 Thread Chris Hewitt
Ryan, I may be missing something as I have not been monitoring this thread, but why not use ftp? It allows the file transfer and chmod. Perhaps its not available on the server that you need it to be, but its the normal way of putting web pages onto a server. HTH Chris SP wrote: I'm not an

[PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-25 Thread Victor Spång Arthursson
Hello! I know it's possible to use arrays in combination with forms, but I need some advice about where to find some information/tutorial concerning how to use arrays together with multi-select-tags... Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Newbie Questionabout variables

2002-05-25 Thread Alex Shi
Not sure what your question is In the case password is not a variable but the value of the variable, while admin is the name of the variable. Variables passed by url is obtained by GET method, and in your script all vairables passed by GET method can be accessed directly. So, in following

[PHP] Re: PHP script

2002-05-25 Thread Alex Shi
For file uploading: http://www.php.net/manual/en/features.file-upload.php For chmod: http://www.php.net/manual/en/function.chmod.php For the third question: php has no restriction where php scripts have to be put in. so just put the script where you want to upload file. Hope these can help.

Re: [PHP] PHP script

2002-05-25 Thread r
Hey, thanks for writing, The script will be on the remote server, but how do i access the cgi-bin directory when it is below the host root... eg: /home/cgi-bin/mysite.com/upload.php how will upload.php add/modify /cgi-bin/? -Ryan A. - Original Message - From: SP [EMAIL PROTECTED] To:

[PHP] Adding Sessions Secretly....

2002-05-25 Thread Vincent Kruger
Adding data to session is the easy part! Now i want to be clever and sneeky by adding data to the session with out actually leaving the page that i am currently on. Sort of like www.audiogalaxy.com when you click the satelite icon to download an mp3. -- PHP General Mailing List

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-25 Thread Miguel Cruz
On Sat, 25 May 2002, Victor Spång Arthursson wrote: I know it's possible to use arrays in combination with forms, but I need some advice about where to find some information/tutorial concerning how to use arrays together with multi-select-tags... Have a play with this little program - it

Re: [PHP] Adding Sessions Secretly....

2002-05-25 Thread Miguel Cruz
On Sat, 25 May 2002, Vincent Kruger wrote: Adding data to session is the easy part! Now i want to be clever and sneeky by adding data to the session with out actually leaving the page that i am currently on. Sort of like www.audiogalaxy.com when you click the satelite icon to download an

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-25 Thread Miguel Cruz
Oops. I actually tried running it (cleverly waiting until after I posted it to the list) and I see that there are some warnings in the event that nothing has been selected (due to in_array operating on an undefined variable). Don't worry about them. Or change that last foreach clause to look

php-general Digest 25 May 2002 19:08:02 -0000 Issue 1366

2002-05-25 Thread php-general-digest-help
php-general Digest 25 May 2002 19:08:02 - Issue 1366 Topics (messages 99205 through 99254): Re: Is this doable? 99205 by: Sandman 99216 by: John Holmes Re: How is SESSION_ID passed? 99206 by: Miguel Cruz Re: Popup window from form on php page 99207 by:

[PHP] 4.2.1 Vars

2002-05-25 Thread Kurth Bemis (List Monkey)
After moving to php 4.2.1 my scripts that use xxx.php?blah=4 fail to work. I know that i need to turn register_globals on in my config, however I know that there are security problems with this. So bascially I need to know how to make 500+ scripts work without editing a bunch of files to

[PHP] Re: Newbie Questionabout variables

2002-05-25 Thread Al
I got it now, thanks a lot. For some reason Mozilla won't let me post to the newsgroup. I've used your answer, and another one, and have already made a simple php script to test the variable and echo passed or failed I'm modifying a php application and the admin file is named index.php [yes

[PHP] pconnect

2002-05-25 Thread Boaz Yahav
Hi When working with pconnect. Can it be that each http process of apache will have more than one sql connection open at a time? I'm working with pconnect and seeing about double the number of established sql connections than the established http processes. any ideas? Sincerely

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread Jeff Lewis
For now you can add this to the top of your scripts: $types_to_register = array('GET','POST','COOKIE','SESSION','SERVER'); foreach ($types_to_register as $type) { $arr = @${'HTTP_' . $type . '_VARS'}; if (@count($arr) 0) { extract($arr, EXTR_OVERWRITE); } } Somebody else

Re: [PHP] PHP script

2002-05-25 Thread Paul Roberts
how about using the FTP functions that php has, look it up in the man, i haven't used it. Paul Roberts [EMAIL PROTECTED] - Original Message - From: Chris Hewitt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 3:33 PM Subject: Re: [PHP] PHP

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread 1LT John W. Holmes
Do you know what the security problems are? Do you realise that having register_globals on or off isn't the security problem, it's how you write your code? If you're not going to change any of your code, just turn on register_globals. Changing your code to _POST or _GET and doing nothing else

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread Kurth Bemis (List Monkey)
At 04:00 PM 5/25/2002 -0400, 1LT John W. Holmes wrote: Actually - i don't understand what the docs at PHP are talking about. care to enlighten me? ~kurth Do you know what the security problems are? Do you realise that having register_globals on or off isn't the security problem, it's how you

[PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread Dani
Hi, I want to upload image file into a folder in webserver using HTML form. What function do I use fo this purpose? Thank you, Dani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread 1LT John W. Holmes
Sure. The idea you have to understand is that nothing from the user can be trusted. When you are expecting a number and they enter a letter, it may mess things up and you have to be prepared for that. With register_globals OFF in your php.ini file, all of the user input is present in the _GET,

Re: [PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
Try the RTFM() function. It will do exactly what you want. http://www.php.net/manual/en/features.file-upload.php ---John Homes... - Original Message - From: Dani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 6:57 PM Subject: [PHP] NewBie-UPLOADING IMAGE Hi,

Re: [PHP] unexpected T_IF

2002-05-25 Thread Steve Buehler
put a ; at the end of line 31 and see if it still gives you the error. Steve At 10:33 AM 5/25/2002 +0100, you wrote: Hmm, can anyone explain why I'm getting this error? Parse error: parse error, unexpected T_IF in /usr/local/htdocs/san.loc/upload-img.php on line 34 Code reads: 11:#--if form

Re: [PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread Kevin Stone
This is a rather broad question you're asking. I would suggest starting at the online documentation on www.php.net. Handeling file uploads: http://www.php.net/manual/en/features.file-upload.php Post back here if you have any trouble understanding any of this stuff. -Kevin - Original

[PHP] UPLOADING IMAGE

2002-05-25 Thread Dani
What's wrong with my code? ?php if($file) { print(file name :$file_nameP\n); if (copy($file,http://sarjito/img/;)) { print(file uploaded); } unlink($file); } ? Any advise is welcome. Thanks, Dani -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
Give a destination file name, not just the directory. You don't have to unlink($file), it's done automatically when the script ends. ---John Holmes... - Original Message - From: Dani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 7:58 PM Subject: [PHP] UPLOADING

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread Dani
I have tried to use the filename but it's still not working. here is the whole code I've got: ** First file called 'upload.php' html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 form name=form1

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
HOW IS IT NOT WORKING? Are you getting an error? Is your hard drive being erased? Do you get little electrical shocks from the wires tied into your braces when you hit enter and upload a file over 10k that has blue and yellow within it but not part of the border Info, man...provide it.

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread Dani
Thanks for replying Sorry about not providing the info well... when I hit submit button, it goes to the 'uploadfile.php' page, but it doesn't print anything at all. I check in my folder and the file is not copied either. thanks, Dani 1LT John W. Holmes wrote: HOW IS IT NOT WORKING? Are

Re: [PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread Neil Highley
MWAHAHAHAHAH! [EMAIL PROTECTED] --- Life must be lived as play. - Plato (427 - 347 BC) - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Dani [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, May 25, 2002 9:20 PM

[PHP] Incompatibility with file-input items

2002-05-25 Thread Felix Natter
hi, in a php-script someone else wrote I found 'input type=file name=photo[] accept=image/jpeg': echo tr\n; echo td width=\130\ height=\30\/td\n; echo td width=\370\ height=\30\input type=\file\ name=\photo[]\ accept=\image/jpeg\/td\n; echo /tr\n; echo tr\n; echo

[PHP] bulletin board question...

2002-05-25 Thread Anthony Ritter
To all, On a bulletin board (non-usenet) within a website, is it possible to change the color or size of the type - or add a link from a word that the user has posted? For example, John Doe posts: Man, it's hot out here today! Where John changes the default font color - which is black - of the

RE: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread David Freeman
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? In the specific case

Re: [PHP] bulletin board question...

2002-05-25 Thread Richard Baskett
Well with phpBB2 you can use html if the administrator allows it, if not you can use phpBB tags. Things like: Man, it's [color=red]hot[/color] out here [url=http://www.weather.com]today[/url]! All boards are different though so you'll need to read your documentation on that board to figure out

[PHP] Extract ZIP archives

2002-05-25 Thread Kevin Stone
Hello Nurse! (and php gurus).. I'm building an online file exchange that will allow users to share custom 3D files for a game that I'm involved in. I'd like to offer my users the oportunity to upload multiple files at once by allowing them to ZIP them all together and upload just the one

[PHP] Include (Newbie question)

2002-05-25 Thread r
Hey, I have just being going through the manual (windows version) and am a bit confused about include, If I want the scope to affect the whole page I do this right: (example page) html body ?php include blah.php ? some html ?php use some functions to call blah.php ? is this correct? and my

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread Liam MacKenzie
http://www.zend.com/zend/spotlight/uploading.php Who's server are you trying this on mate? Yours or mine? - Original Message - From: Dani [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, May 26, 2002 10:38 AM Subject: Re: [PHP] UPLOADING

Re: [PHP] Include (Newbie question)

2002-05-25 Thread Kevin Stone
No, not exactly. The idea behind the include() function in PHP is to append and execute code to the currently running script. This is great for organizing your code into more easier to manage chunks. PHP will attempt to parse and execute the included file as a PHP file regardless of the file

RE: [PHP] Include (Newbie question)

2002-05-25 Thread John Holmes
Also note that if you want PHP in your included()'d file, you have to put ? and ? around the PHP. When you include() a file, PHP starts off reading it in HTML mode. Include() just takes the included file and sticks it into the original file. The variable scope in an included file is the same as

RE: [PHP] bulletin board question...

2002-05-25 Thread John Holmes
Any number of ways you can do it. You can have the user enter in valid HTML and just display it as such. Or you can use a markup language like most BB. Something like [b] for bold, [color=red] text [/color] to change colors, etc. PHP then looks through the post and replaces those tags with the

RE: [PHP] bulletin board question...

2002-05-25 Thread SP
You can make up your own tags by just adding more things to be parsed. EXAMPLE: $text = Look at [b]this[/b] website ...; echo $text; custom_tags($text); echo $text; function custom_tags($text) { /* converts special tags into the html counterpart * [b]text[/b] - bold text * [i]text[/i] -

[PHP] inspirational

2002-05-25 Thread jtjohnston
I want to detect the url my .php lies in. This is over kill and BS: $myurlvar = http://.$SERVER_NAME.parse($SCRIPT_NAME); How do I get http://foo.com/dir1/dir2/dir3/;. There seems to be nothing in phpinfo() that will give me a full url to play with. Flame me if you will, but I browsed TFM