[PHP] working HEADER in PHP

2001-11-16 Thread mahboobeh khossrojerdi
Hi, I used header("content-type:text/html;charset='windows-1256'"); and header("content-language:'fa'"); for showing my Farsi messages, in PHP, on browser but these could not work. Please help me! Thanks. __ Do You Yahoo!? Find the one for you a

[PHP] Proven linux install for freetype 2/tiff?

2001-11-16 Thread Joelmon2001
What is needed to use gd to full capacity to create/modify images? I figured freetype and tiff support? Can I simply untar them ./configure make make install for that software, like freetype? I asked the list, and checked the site. No help I don't want to install gd/php and find out "Sorry, y

Re: [PHP] Question on variable variables

2001-11-16 Thread Christopher William Wesley
You sure can. You can use variable variables wherever you can use regular variables. They're really no different than regular variables, except you have to keep track of what the variable will be named while coding :) ~Chris /"\

[PHP] 민원빨리닷컴 입니다

2001-11-16 Thread 민원빨리닷컴
http://minwon82.com php-general´Ô ¾È³çÇϽʴϱî? ¹Î¿ø»¡¸®´åÄÄ ¿¡¼­ ÀÎ»ç µå¸³´Ï´Ù. À̰÷¿¡¼­´Â µî±âºÎµîº», ÅäÁö´ëÀå, Á¹¾÷Áõ¸í¼­, ¼ºÀûÁõ¸í¼­, °æ·ÂÁõ¸í¼­, µî °¢Á¾ ¹Î¿ø 34Á¾À» ¹Ù»Ú½Å Çö´ëÀεéÀ» ´ë½ÅÇÏ¿© ¹ß±Þ´ëÇà ¼­ºñ½º Çϰí ÀÖ½À´Ï´Ù. ½ÅûÀ» ÇϽøé ÀÔ±Ý È®ÀÎÈÄ 2½Ã°£ À̳»¿¡ ÆÑ½º³ª À̸ÞÀÏÀ» ÀÌ¿ë ¿­¶÷

[PHP] Re: wunderground and php

2001-11-16 Thread Fred
Try doing a Google search: http://www.google.com/search?q=weather+php+script There are plenty of PHP weather scripts already out there. Find one that does most of what you want and change it to fit your needs. Scott Atkins <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PR

[PHP] Re: alzheimers and confused

2001-11-16 Thread Fred
AND seems correct to me. If you want to generate an error when the file is not a jpeg file then the file name must not contain jpg AND must not contain jpeg. If either jpg OR jpeg is present then no error should occur. Be careful when using the !not operator with logical condition operators, the

[PHP] wunderground and php

2001-11-16 Thread Scott Atkins
I would like to use something like the weather script that came with my linux on my webserver. However, I do not know where to start with sockets and such. The actual linux script takes too long to run and output. Any help would be great Scott -- PHP General Mailing List (http://www.php.n

[PHP] mirrors?

2001-11-16 Thread Jack Dempsey
has anyone tried selecting a mirror php site from the drop down at the bottom-right? i just tried brazil and bulgaria and it seems to be broken in general... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] A problem with my PHP installation

2001-11-16 Thread Good Fella
Hiya All, I am running Windows XP Professional and am currently experiencing a problem with PHP. I have installed Internet Information Services 5.1, and followed my usual set-up of PHP under IIS. I have managed to do this perfectly fine on Windows 2000, but have noticed that on Windows XP, the

[PHP] Basic problem

2001-11-16 Thread Sanj
sorry if this is an "idiot" question. But I have several links in my site to php pages on other sites, why is it that I can not call a particular page up, since it seems to recalculate the URL eg http://XX.XX.XXX.XXX/html/early/cs_early_02_types6.php does this in athe address bar http://XX.XX.X

Re: [PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
Yes trying to get this to work: $curline = preg_replace("//","$$1",$curline); So for the current line I am looking for something like I want to replace that with the contents of $copyright. Can variable variables be used in regular expressions? Jeff - Original Message - From: "Christ

Re: [PHP] Question on variable variables

2001-11-16 Thread Christopher William Wesley
On Fri, 16 Nov 2001, Jeff Lewis wrote: > What I need to do, however, is append a variable portion to a constant prefix. So I >have a set of variables that are named $MYdog, $MYcat etc. and I need to do > > $a = "dog" > ${"MY$a"} being the same as $MYdog > > Can this be done, and if so - how? I

[PHP] Apache 2.0.28

2001-11-16 Thread Jobarr
I need a build of PHP that can be used as a module with Apache 2.0.28 beta. Anyone know where I could find one? thanks -Jobarr -- 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 adm

[PHP] Question on variable variables

2001-11-16 Thread Jeff Lewis
I've a question regarding variable variable I was hoping someone could help me with: All the examples in the manual have the entire variable name being variable e.g. $a = "hello" and $$a being the same as $hello What I need to do, however, is append a variable portion to a constant prefix. So

[PHP] alzheimers and confused

2001-11-16 Thread jtjohnston
OK kids, I'm not 19 ... my old brain gets tired easily and my wife is complaining that I stay up too late PHPing :) Putting the rest aside, why does AND work and not OR. OR was what I meant? I meant ... if the string doesn't contain .jpg or the string doesn't contain .jpeg ... > ERROR! John http

Re: [PHP] Auto Thumbnail?

2001-11-16 Thread Brian Clark
Hi Cosmin, @ 8:05:05 PM on 11/16/2001, cosmin laslau wrote: > Hmm, seem to have run into something rather strange. First off, I > ran the phpinfo command, and, lo and behold... > http://www.flat-6.net/f6/analyze.php I'd delete that when you're done (or just rename it to a totally random (Ie. 1s

Re: [PHP] Auto Thumbnail?

2001-11-16 Thread Brian Clark
Hi Cosmin, @ 7:30:04 PM on 11/16/2001, cosmin laslau wrote: > Thanks for the replies. I'm guessing this is the GD library that I > would need... http://www.boutell.com/gd/ That would be the one.. > Now to find out if it's built into my PHP or not. Anyone know how to > 'test' for it? Sure, s

Re: [PHP] Equivilant of exit;

2001-11-16 Thread Jeff Lewis
Oh geez, do I ever feel dumb...I can NOT believe I overlooked that in the manual :( My apologies to the list. Jeff - Original Message - From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug." <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 6:41 PM Subject: Re: [PHP] Equivila

Re: [PHP] Auto Thumbnail?

2001-11-16 Thread Brian Clark
Hi Cosmin, @ 6:16:57 PM on 11/16/2001, cosmin laslau wrote: > I've got a website which will alllow users to upload photos (jpegs) and, > once approved, they'll be up for display. To do that, I need an > auto-thumbnail script, preferrably for on-the-fly thumb generation. > Any ideas? Also, wha

Re: [PHP] Equivilant of exit;

2001-11-16 Thread Brian Clark
Hi Jeff, @ 6:26:28 PM on 11/16/2001, Jeff Lewis wrote: > Is there an equivilant to Perls exit function? I am calling a fatal error > function in PHP and I want it to end the script, just want to end the whole > program if this is called. Maybe I'm missing something, but.. :-) PHP has exit() an

Re: [PHP] building a php based subscription site (not a porn site)

2001-11-16 Thread richard phynga
:-) done it many times It is ALWAYS preferable to have the user choose the username FIRST, then pay. That way they have taken posession of a 'good' so to speak, for which they must pay. If they pay BEFORE they choose, they may be unable to find a username they want, and then they want their

Re: [PHP] HELP ME!!!!

2001-11-16 Thread Brian Clark
Hi P. Roescher, @ 12:52:36 PM on 11/16/2001, P. Roescher wrote: > value="ON"> You probably want something like: That may not work, if not: Then: while(list(,$player) = each($players)) { list($name,$status) = explode('::',$player); /* Optionally: print "$name is $status"

[PHP] os x server and php version > 4.0b2

2001-11-16 Thread Jack Dempsey
I've been meaning to upgrade and finally feel like I have to bite the bullet. However, I can't find much information on OS X Server and a version of php more recent than 4.0b2 which is what I'm currently running. Can anyone provide some links or their configure line? thanks, Jack -- PHP Genera

Re: [PHP] Auto Thumbnail?

2001-11-16 Thread Jim Lucas
well, if you are on a *nix based system, you could use ImageMagic. and have it generate the thumbnails for you. as for a script, well, you would have to write that. Jim - Original Message - From: "cosmin laslau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001

[PHP] Equivilant of exit;

2001-11-16 Thread Jeff Lewis
Is there an equivilant to Perls exit function? I am calling a fatal error function in PHP and I want it to end the script, just want to end the whole program if this is called. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] Auto Thumbnail?

2001-11-16 Thread cosmin laslau
I've got a website which will alllow users to upload photos (jpegs) and, once approved, they'll be up for display. To do that, I need an auto-thumbnail script, preferrably for on-the-fly thumb generation. Any ideas? Also, what kind of libraries would I need. Thanks. The site is http://www.flat

[PHP] building a php based subscription site (not a porn site)

2001-11-16 Thread Vincent Stoessel
I am helping a client make a transition from a ad revenue based site to a membership based one and I was wondering if there was some commonly used mechanism for php based membership sites. I have made membership sites before but they were free. How does one : 1. Have a person register a username

Re: [PHP] switch() for links like ?id=index problem

2001-11-16 Thread Matt McClanahan
On Fri, Nov 16, 2001 at 06:22:19AM -0600, Ann Jamison wrote: > my code looks something like this: > > switch($id) { > case "home": include("home.php"); > break; > } > so links can be something like www.url.com?id=home > I have also tried to use require instead of include > > When the desitred l

Re: [PHP] eregi_replace probs

2001-11-16 Thread phantom
oh duh, why is it always the simplest reason. :) fixed it and it runs good now. thank you sir! Jim Lucas wrote: > sorry didn't notice the & in the args > you'll want this instead. > > > function scan_string(&$str) { > > $forbid = array ("coke", "tylenol", "ford"); > > $swap = array ("

Re: [PHP] eregi_replace probs

2001-11-16 Thread Jim Lucas
sorry didn't notice the & in the args you'll want this instead. > function scan_string(&$str) { > $forbid = array ("coke", "tylenol", "ford"); > $swap = array ("pepsi", "advil", "chevrolet"); > for ($i = 0; $i < count ($forbid); $i++) { > $str = eregi_replace($forbid[$i],$swa

Re: [PHP] eregi_replace probs

2001-11-16 Thread Jim Lucas
eregi_replace isn't your problem this funciton "RETURNS" the new string. > function scan_string(&$str) { > $forbid = array ("coke", "tylenol", "ford"); > $swap = array ("pepsi", "advil", "chevrolet"); > for ($i = 0; $i < count ($forbid); $i++) { > $NEW_STRING = eregi_replace(

[PHP] Re: SQL question. how relevent are the search results ?

2001-11-16 Thread Chris Lee
ok. im answering my own question here. answer is "this sucks". I wrote some nasty ruff code just to get the job done. but it invoves alot of sql queries and alot o recursion. $f_val) { unset($query); foreach($keyword as $k_pos => $k_val) if ($k_val) $query[] = "$f_val LIKE '%$k_

[PHP] eregi_replace probs

2001-11-16 Thread phantom
function scan_string(&$str) { $forbid = array ("coke", "tylenol", "ford"); $swap = array ("pepsi", "advil", "chevrolet"); for ($i = 0; $i < count ($forbid); $i++) { eregi_replace($forbid[$i],$swap[$i],$str); } } I run this script, and I know the array's load up and the fo

Re: [PHP] I have pulled all my hair out - imap_sort still not working - please help!

2001-11-16 Thread richard phynga
Thanks for the thought Alex, alas, unlike other languages, PHP handles ANY scalar value in a switch statement, including variables So now I an really stumped !! I am gonna try a whole series of 'ifs' though and deal with the ugliness of it ! thanks again for your post, regards richard --

[PHP] RE: webmaster@php.net dude

2001-11-16 Thread Andrew Chase
I'm cheap too. That's why I use a free editor that does support line numbers, like ConTEXT (http://www.fixedsys.com/context/) or EMACS. It's been a long time since I had debugged anything in PERL, but it seems to me that knowing exactly which line the problem is occurring on is a lot more helpfu

RE: [PHP] php switch() problem

2001-11-16 Thread Kees Hoekzema
hey use exit; instead of break; break breaks the "switch" statement and continues with the code below, exit exits the script (en doesnt execute any code below the switch statement) Kees > -Original Message- > From: Ann Jamison [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 200

[PHP] Install php+Apache on win98

2001-11-16 Thread Worapoj Kiatsuksri
I config PHP4.0.6 for Apache 1.3.12 on Win32 : in apache configuation file: ScriptAlias /php/ "C:/PHP/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" then I test with phpinfo.php file in htdocs directory. : phpinfo.php : when I type: http://localhost/php

[PHP] php switch() problem

2001-11-16 Thread Ann Jamison
I'm using switches to make liunks like www.link.com?go=home code : switch($go) { case "home":include ("home.php"); break; } etc, also tried require stead of include. what i get is the requested liunk loaded on top of the index.php page on the same page, check it out @ www.ribec.airann.com what

RE: [PHP] Php Array

2001-11-16 Thread Boget, Chris
> How can I send the values inside the array into a function > for calculation? function addValues( $arrayVar ) { $reteval = 0; foreach( $arrayVar as $element ) { $retval += $element; } return $retval; } $myArray = array( 1, 2, 3, 4, 4 ); echo addValues( $myArray ); Chris

[PHP] Php Array

2001-11-16 Thread Wee Chua
Hi all, How can I send the values inside the array into a function for calculation? Thank you, Calvin -- 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

Re: [PHP] Re: Example code for multiple uploads? (Using PHP 4.0.6)

2001-11-16 Thread Nate Carlson
On Fri, 16 Nov 2001, George Whiffen wrote: > Multi loads are fine for me in 4.0.3 at least, but I don't use arrays, > each upload has a different name (I gave up on form arrays at IE 3!). > Have you tried giving them unique names? I was hoping to avoid that. :) I'll give it a shot, though. Than

[PHP] Re: random images fom db

2001-11-16 Thread Joe Van Meer
Got it...if anyone's interested the code is below :) /connect to db $connectionToDBid = odbc_connect("codesnipits", "joecode", "joecode"); // sql statement $sqlb = "SELECT imagepath FROM IMAGES"; / run the query and dump into $numberofrecords variable $row = odbc_do($connectionToDBid, $sqlb);

[PHP] switch() for links like ?id=index problem

2001-11-16 Thread Ann Jamison
my code looks something like this: switch($id) { case "home": include("home.php"); break; } so links can be something like www.url.com?id=home I have also tried to use require instead of include When the desitred link is clicked, the page loads the new link, but also includes my index page taked

Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab
Jimmy Elab wrote: > When your not positioned straigth at your keyboard a ';' may occasionally turn into an 'l'... -- 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 administrato

[PHP] SQL question. how relevent are the search results ?

2001-11-16 Thread Chris Lee
if I give the user a search and he enters 'cat dog' I am going to want to find all the results that have the word 'cat' or 'dog' in them, but I want all the results that have 'cat' and 'dog' at the beginning of the results because these would be more relevent. now how I see it is this, it aint pre

Re: [PHP] Parse POST-Data myself

2001-11-16 Thread jimmy elab
Andrew Forgue wrote: > > By putting brackets after the variable name [] in a form element > > > > BLAAACH!!! Please add an index variable, as fields that you don't need wil NOT be posted, so when you have several fields for one single dataset, you might end up with the wrong set of indexes.

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry, couple post-Post changes.. The initial query should have been: $sql = "SELECT Image,Width,Height FROM Images WHERE ID='$ID'"; The an echo of the UPDATE sql now looks like this: UPDATE Images SET Thumbnail=' Warning: Supplied argument is not a valid Image resource in /home/mike/wtoa

[PHP] Re: Loading a dll

2001-11-16 Thread Daniel Berwig
It doesn't load the dll, when specifying the path (relative path neither absolute path). Any solution? Daniel Berwig "Henrik Hansen" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Daniel Berwig) wrote: > > > The problem is that the

RE: [PHP] quick friday query

2001-11-16 Thread Brian Paulson
Casper, My guess would be that the folder that you are trying to write the file to doesn't have the correct permissions to allow the webserver to write to it. Try that and let me know if it works! Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] http://www.chieftain.com -Origin

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Hello, Jtjohnston wrote: > See these. Reduire.phps probably has what you want. > http://www.collegesherbrooke.qc.ca/si/php/exemples/photos/reduire.phps This is what I was looking for I think.. But it still gives me an error.. This one actually got inserted right into the database: Warning

[PHP] random images fom db

2001-11-16 Thread Joe Van Meer
Hi there. I have s a php page that randomly grabs an image's path from a db field and displays it on my php page. My problem is that sometimes when I refresh the image won't display. So I guess you can say I'm getting intermittent images...sometimes it displays and sometimes not. I've checked all

RE: [PHP] quick friday query

2001-11-16 Thread caspar kennerdale
ahh write permission the folder- duh- not thinkingtoday thank alot -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: 16 November 2001 18:14 To: Caspar Kennerdale; Php-General Subject: Re: [PHP] quick friday query check under what user Apache is running ( most

[PHP] Re: Loading a dll

2001-11-16 Thread Henrik Hansen
[EMAIL PROTECTED] (Daniel Berwig) wrote: > The problem is that the php tries to load the dll from the extension_dir. Is > there a way to make it load from anywhere else? try to supply a path in dl(). -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] Re: Array From DB sQLServer

2001-11-16 Thread Joe Van Meer
got it :) thx for looking "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. I have a table called IMAGES and I would like to retrieve all > image_ids and dump into an array. I'm new to php so any help would greatly > be appreciated. I sta

[PHP] Re: Loading a dll

2001-11-16 Thread Daniel Berwig
The problem is that the php tries to load the dll from the extension_dir. Is there a way to make it load from anywhere else? "Henrik Hansen" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Daniel Berwig) wrote: > > > Does anyone know if

[PHP] Re: Loading a dll

2001-11-16 Thread Henrik Hansen
[EMAIL PROTECTED] (Daniel Berwig) wrote: > Does anyone know if it is possible to load a dll at runtime that is not in > the extensions_dir configured in the php.ini? And if it is possible, how can > I do it? if anything dl() does it. -- Henrik Hansen -- PHP General Mailing List (http://ww

Re: [PHP] quick friday query

2001-11-16 Thread R'twick Niceorgaw
check under what user Apache is running ( mostly nobody ). You have to give write permission on the directory where you want the files to be to that user. For security reasons, just don't give write access on your document_root, instead create a directory outside ( or within) your document_root a

Re: [PHP] quick friday query

2001-11-16 Thread James Green
On Fri, 2001-11-16 at 17:49, Caspar Kennerdale wrote: > I am writing files to my server using > > $fp = fopen("myfile.txt", "w"); > > this all works. However in the php manual it says that by using the "w" > switch that php will create the file if it doesn exist > > However this does not seem t

[PHP] HELP ME!!!!

2001-11-16 Thread P. Roescher
The script I have: value="ON"> The Problem I have: How can i read all checkboxes?!? Please respond with a source

[PHP] Re: PHP versus all other languages

2001-11-16 Thread George Whiffen
Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I might not

[PHP] quick friday query

2001-11-16 Thread Caspar Kennerdale
I am writing files to my server using $fp = fopen("myfile.txt", "w"); this all works. However in the php manual it says that by using the "w" switch that php will create the file if it doesn exist However this does not seem to work I can only write to a file that already exists and has CHMOD 7

[PHP] Multiviews and GET requests no longer working?

2001-11-16 Thread James Green
Hi all, So a few weeks back on my Debian Sid box I had everything running nicely, PHP4, Apache 1.3, and had it such that Multiviews were turned on, and I could call /foo?id=1 and the file foo.php would register the variable id as having a value of 1. I dist-upgraded last weekend (now PHP-4.1.0-R

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Sorry if I wasn't very clear abou tthis.. I don't need to echo the contents to be viewed on the web.. I'm already doing that here: http://www.wtoaction.org/caravan2001/ It's a matter of saving it to a file on the disk (from the database) so I can manipulate it with djpeg, pnmscale, cjpeg Th

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread Mike Gifford
Hi George, George Whiffen wrote: > I'm confused. Is your problem serving up the images in your database to the web or >writing them out > to files on the server? Sorry for the confusion.. It was in writing out the database images to files on the server. This is where my problem lies.. >

Re: [PHP] Re: PHP versus all other languages

2001-11-16 Thread Manuel Lemos
Hello, Chris Bailey wrote: > > PEAR is another db abstraction layer, and potentially will be integrated > into PHP. I use it for all my DB access (in PHP) now. In fact, I'd say > it's more powerful and easier than using the mysql_ methods for example. PEAR is essencially a Perl DBI clone, so

[PHP] Array From DB sQLServer

2001-11-16 Thread Joe Van Meer
Hi there. I have a table called IMAGES and I would like to retrieve all image_ids and dump into an array. I'm new to php so any help would greatly be appreciated. I started my code below, but am unsure what to do next :( Thx Joe:) 'connect to db $connectionToDBid = odbc_connect("codesnipits", "j

Re: [PHP] Regular expressions?

2001-11-16 Thread Papp Gyozo
[^>]*)>.*'.$quoted.'(?>[^<]*)!Ui', $source, $matches); ?> good point to start: http://www.php.net/manual/en/ref.pcre.php - Original Message - From: "Martin Thoma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 8:30 AM Subject: [PHP] Regular expre

Re: [PHP] custom errors

2001-11-16 Thread Papp Gyozo
> > I know how to make an error message when the connection is lost with the > database, with the @ and the OR DIE in the connection with the database. > > > Is there also a way to display a custom error message when this error is > displaid? i wrote a more or less simple class to wrap

[PHP] Loading a dll

2001-11-16 Thread Daniel Berwig
Does anyone know if it is possible to load a dll at runtime that is not in the extensions_dir configured in the php.ini? And if it is possible, how can I do it? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Re: apache+php overloading when user clicks many times on the same link

2001-11-16 Thread George Whiffen
Peter Frlicka wrote: > > Hello. > > What does apache + php do if the user refreshes a page 10 times in a while > before the scripts finishes? do all 10 .php scripts finish or do the first 9 > get aborted? how can i solve the problem that when someone clicks a lot on a > link (always the same lin

RE: [PHP] Re: PHP versus all other languages

2001-11-16 Thread Chris Bailey
PEAR is another db abstraction layer, and potentially will be integrated into PHP. I use it for all my DB access (in PHP) now. In fact, I'd say it's more powerful and easier than using the mysql_ methods for example. PEAR uses the standard factory design pattern to determine which DB it's talkin

[PHP] Re: Example code for multiple uploads? (Using PHP 4.0.6)

2001-11-16 Thread George Whiffen
Nate Carlson wrote: > > I'm trying to create a form that supports multiple uploads (of up to 4 > files), but does not require each of them. I've tried all the code > examples in the PHP documentation, and they don't appear to work with PHP > 4.0.6. Basically, I get the file names returned in the

[PHP] Re: PHP versus all other languages

2001-11-16 Thread Manuel Lemos
Hello, Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I mi

RE: [PHP] timing

2001-11-16 Thread Caspar Kennerdale
unfortunaelty its not in php- but director -Original Message- From: Matthew Luchak [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 16:03 To: Php-General Subject: RE: [PHP] timing If the other application is written in PHP you can use "flock". Ma

RE: [PHP] timing

2001-11-16 Thread Matthew Luchak
If the other application is written in PHP you can use "flock". Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 11:00 AM To: Php-General Subject:

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-16 Thread Henrik Hudson
Thanks. It actually turned out that I wanted to do just: $HTTP_POST_VARS[\\1] in the regex (ie: removing the quotes entirely inside the array) and it works just fine. Thanks for the info however. On Friday 16 November 2001 09:37, George Whiffen wrote: > Henrik, > > I think your problem is jsi

[PHP] timing

2001-11-16 Thread Caspar Kennerdale
I have a script that when is executed parses and html file and writes the contents to a text file. I need to then read this text file from another apllication Is there a way of timing this operation, so that my other app does not try to access the file before being written? -- PHP General

RE: [PHP] Parse POST-Data myself

2001-11-16 Thread Andrew Forgue
On Fri, 2001-11-16 at 10:19, Matthew Luchak wrote: > > If you know the setup of the form beforehand it is relatively easy to do > something like : > > $string="$myfield1[0] $myfield2[0] $myfield1[1] $myfield2[1] etc..." > > However I remember one of my stupid mistakes awhile ago was mistakenly

[PHP] Re: Image Upload, renaming question

2001-11-16 Thread George Whiffen
Joe, One approach that works for me is to have a separate IMAGE table with an automatically generated primary key image_id (auto_increment with MySQL). I don't use this store the image, but just to give me the unique name for the image file. I also use the IMAGE table to store away the origi

[PHP] Recursive call of index.php/test=2

2001-11-16 Thread Francis Grignon
When we open this url : http://localhost/index.php/test=2 Yep index.php/test=2 not index.php?test=2 Apache open the page index.php one time for every broke link he find in the index.php page. Example : Simple PHP test page Simple PHP test page Images are broke because the pa

Re: [PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-16 Thread Jeff Bearer
Thanks for pointing me to phpinfo(), the field for the ./configure command is my old one, I guess I'll go back and start from scratch, must of forgot a step. On Thu, 2001-11-15 at 21:06, Johan Holst Nielsen wrote: > > I know it's probabally overkill but in the configure messages, it says > > y

[PHP] Example code for multiple uploads? (Using PHP 4.0.6)

2001-11-16 Thread Nate Carlson
I'm trying to create a form that supports multiple uploads (of up to 4 files), but does not require each of them. I've tried all the code examples in the PHP documentation, and they don't appear to work with PHP 4.0.6. Basically, I get the file names returned in the arrays, but the array that shou

[PHP] Re: Info on another page

2001-11-16 Thread _lallous
you can fopen() remote files! $fp = fopen("www.site.com/infodir/exchange.txt","r"); $rates = fread($fp, ...); fclose($fp); "Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Lets say I want to get the current exchangerate from anot

[PHP] Different include paths for different virtualhosts?

2001-11-16 Thread David Otton
Hi - my sysadmin tells me that PHP is compiled in, rather than loaded as an Apache module. I need to use php_value include_path ".:/www/includes/foo" to get different include paths for different sites. How do I accomplish this? The manual says "When using PHP as an Apache module, you

[PHP] Re: Need help with reading values from a form

2001-11-16 Thread _lallous
name the checkbox as: ' name='selectedplayers'> where ID is used to identify this current field! then read in the posted page as: "P. Roescher" <[EMAIL PROTECTED]> wrote in message 01c16eab$65226360$015a@cc48693a">news:01c16eab$65226360$015a@cc48693a... > The script I have: >

[PHP] Re: Parse POST-Data myself

2001-11-16 Thread _lallous
take the query string as is: $QUERY_STRING in this case: $qstring = "myfield1=&myfield2=aaaccc&myfield1="; and then pass it on as is again to whoever you want! or you can parse it like: $qstrings = split('&', $qstring); then split each pair: $pairN = split('=', $qstrings[$i]); et

RE: [PHP] Parse POST-Data myself

2001-11-16 Thread Matthew Luchak
If you know the setup of the form beforehand it is relatively easy to do something like : $string="$myfield1[0] $myfield2[0] $myfield1[1] $myfield2[1] etc..." However I remember one of my stupid mistakes awhile ago was mistakenly giving two form fields the same name. My result was that the se

[PHP] Database design/relationship basics book

2001-11-16 Thread Dan McCullough
Does anyone have some recommendations for database books. This is something that I want to get better versed in as I have gotten along by visualizing the database and its relationship for small projects, but I think I need a better base and more knowledge. Recommendations can before both MySQ

[PHP] Parse POST-Data myself

2001-11-16 Thread Stefan
Hi I have following problem: I get a form with some fields having the same name. PHP solves this problem by appending [] to the form-field-names which causes the creation of arrays. My problem now is, that I have to pass those variables further to another script (not PHP) in exactly that order

Re: [PHP] Sending mail without using mail()

2001-11-16 Thread R'twick Niceorgaw
grab a copy of phpmailer .. it does exactly what you want - Original Message - From: "Jaime Iniesta Aleman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 4:01 AM Subject: [PHP] Sending mail without using mail() > > > Ok, where can I find a tutorial about

[PHP] Re: server side games question

2001-11-16 Thread Brinkman, Theodore
Sorry for sending this message through the list, but I'm getting mail errors when I try to send it directly. - - - - - Sorry it took so long. The generation scripts aren't very fleshed out, and neither is the display format, but it's a good solid example of the basic example. Every main unit

RE: [PHP] Session problem

2001-11-16 Thread Daniel Alsén
Nope. That is just the problem. session_destroy() only destroys the data inside the session. Not the id. But i actually solved it now. I am using the same algorithm as php itself to create a new id everytime the page is loaded: session_id( md5( uniqid( "", 1 ) ) ); session_start(); - Dani

[PHP] Re: HTTP_POST_VARS and eval?

2001-11-16 Thread George Whiffen
Henrik, I think your problem is jsimply that you are not getting variable substitution of $HTTP_GET_VARS["whatever"] inside double quotes. print "whatever is $HTTP_GET_VARS["whatever"]"; is not safe. You need print "whatever is {$HTTP_GET_VARS["whatever"]}"; or, (IMHO better), print '

Re: [PHP] Re: problem with xgettext and php with javascript file

2001-11-16 Thread Rasmus Lerdorf
Note that you don't need to use xgettext to use gettext. It is simply a time-saver that generates a template .po file for you. You can easily create this text file yourself. -Rasmus On Fri, 16 Nov 2001, Pavel Novak wrote: > so I know where is the problem: > > "> > > gettext is seeking thr

[PHP] Re: JPG Images from database to filename.jpg

2001-11-16 Thread George Whiffen
I'm confused. Is your problem serving up the images in your database to the web or writing them out to files on the server? If it's serving images, I would expect you to have: select myimage from db Header("Content-type: image/jpeg"); echo $myrow[myimage]; exit(); etc. If it's writing from t

[PHP] Need help with reading values from a form

2001-11-16 Thread P. Roescher
The script I have: value="ON"> The Problem I have: How can i read all checkboxes?!?

[PHP] Re: problem with xgettext and php with javascript file

2001-11-16 Thread Pavel Novak
so I know where is the problem: "> gettext is seeking through all of strings in the file, it thinks that one string is: "" And it doesn't work even with this: value="" or this: value='' Does anybody know how I can do it to be good? -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Session problem

2001-11-16 Thread Daniel Alsén
Hi, i am writing a simple postcard-script. I use php 4 sessions and stores the data in MySql with the sessionid as a unique id for the card. The problem is - i can´t send more than one card with the same id. I can´t find any way to get a new session id without closing the browser. In the manual

[PHP] Re: strpos

2001-11-16 Thread George Whiffen
I always get strpos wrong. So typically in this case I would do something like: list($file,$ext) = explode('.',$yourimage); if ($ext != 'jpg' or $ext != 'jpeg') { error... } (More properly we should make sure jpg or jpeg are at the very end of the filename i.e. you probably don't like myfi

[PHP] Info on another page

2001-11-16 Thread MindHunter
Hi, Lets say I want to get the current exchangerate from another page on the web and use it in calculations on my own page. How do I retrieve info from another site once someone access my page? Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

  1   2   >