[PHP] php chat

2001-07-09 Thread Jack
Hi all is there anyone know where can I get a good php chat programme? Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

[PHP] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga
Hi All, a for statment like below has been worked lowe php versions: for ( $idx = "01"; $idx <= 12; $idx++ ) { echo " $idx\n"; } like 01, 02, 03, 04, ... 12 but same statment on 4.0.6 version, it writes 01, 2, 3, 4, ... 12 what is the different between verisons? or how can I solve

[PHP] for() problem on php-4.0.6

2001-07-09 Thread Mesut Tunga
Hi All, a for statment like below has been worked lowe php versions: for ( $idx = "01"; $idx <= 12; $idx++ ) { echo " $idx\n"; } like 01, 02, 03, 04, ... 12 but same statment on 4.0.6 version, it writes 01, 2, 3, 4, ... 12 what is the different between verisons? or how can I solve

[PHP] how to use class

2001-07-09 Thread Jack
Hi all I am new to php class, basically never use class before. Now I try to use a credit card class from Zend, the class name is credit_card.pkg. How do I create the object for this type of class and how do I call the functions from this class to use? Jack [EMAIL PROTECTED] "Love your enemies,

[PHP] php-4.0.6 ./configure - -with - sybase

2001-07-09 Thread nelo manuel
Hi all, since long time ago i've been trying to configure php-4.0.6 with sybase when i try ./configure --with-sybase=/sybase/directory it compiles OK! but when i write the initial function to sybase_connect() i get an error message"fatal error, undeclared function" :( is there any other trouble

[PHP] how do I include a class into my php page

2001-07-09 Thread Jack
Exactly what the title said, I have a class file, name credit_card.pkg, how do I include that into another php page? The same way we do with normal include file? Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

[PHP] Re: how do i remove the first 3 characters from a variable?

2001-07-09 Thread elias
substr($variable, 0, 3); "Doron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 10x > > -- 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 admin

[PHP] Re: for() problem on php-4.0.6

2001-07-09 Thread Tomas
Why don't you use an integer? For and strings don't like each other very much... $idx\n"; } ?> Bye! 8-) Espeleta Tomas -- 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 administr

Re: [PHP] for() problem on php-4.0.6

2001-07-09 Thread Pavel Jartsev
Mesut Tunga wrote: > > Hi All, > > a for statment like below has been worked lowe php versions: > > for ( $idx = "01"; $idx <= 12; $idx++ ) > { >echo " $idx\n"; > } > > like 01, 02, 03, 04, ... 12 > > but same statment on 4.0.6 version, it writes > > 01, 2, 3, 4, ... 12 > > what

[PHP] Always global variables

2001-07-09 Thread Uri Even-Chen
To PHP-general group, Is there a way to define specific variables as "always global", without needing to define them as global at each function separately? For example, these variables are always global on my scripts, so I have to include this line in each function: // Global Variables.

[PHP] ODBC & images

2001-07-09 Thread Hilbert Mostert
Hya all, I have a problem with the odbc drivers for PHP, I use a DBMaker database and when i try to load a binary field in the database PHP echoes the field when i use a SELECT query, but I only want the data with odbc_result or something because it creates some highly annoying problems.

[PHP] Income on the Net!

2001-07-09 Thread Noel Hadfield
Here is an opportunity that you can take up FREE. If you join as an affiliate, we'll teach you how to build a profitable business on the Internet, using our system to create an income stream and earn income globally, 24 hours a day. Don't let this opportunity slip past you - our organization i

[PHP] PHP 4.0.6 diferent handling of comments.

2001-07-09 Thread Guille -bisho-
In previous versions I could comment in this way: #<%=$txt%> And now only consider # as the comment. I think this is the proper way of working, But maybe other people could have problems with this change ??? -- \|||/Guillermo Pérez Pérez < o o > - [EMAIL PROTECTED]

Re: [PHP] webmail

2001-07-09 Thread Max Pyziur
On Mon, 9 Jul 2001, Adrian D'Costa wrote: > Hi, > > I am trying to write a web-based email client for my site (or are there > any samples) using php4 and POP3. > > I have a book on professional PHP but that sample uses IMAP which is not > installed on my system. > > Could anyone tell me where I

[PHP] Help with a variable

2001-07-09 Thread James Bartlett
Hi, Is there some way that I can check to see if a variable is present? e.g. if (variable is not present) { set variable to 0; } else { some code that uses variable; } Thanks for any advice. James

[PHP] Any banner system?

2001-07-09 Thread José León Serna
Hello: I would like to know if there's a PHP Banner system with the following features: -Allow insert the banners anywhere -Advanced statistics page -Limit on banner impressions/clicks -Allow users (my customers) to see their banners statistics -Run on MySQL Best Regards.

RE: [PHP] Help with a variable

2001-07-09 Thread Adrian Ciutureanu
http://php.net/isset > -Original Message- > From: James Bartlett [mailto:[EMAIL PROTECTED]] > Sent: 9 iulie 2001 14:44 > To: [EMAIL PROTECTED] > Subject: [PHP] Help with a variable > > > Hi, > > Is there some way that I can check to see if a variable is present? > > e.g. > > if (vari

Re: [PHP] webmail

2001-07-09 Thread kath
Original message: > > I am trying to write a web-based email client for my site (or are there > > any samples) using php4 and POP3. Reply: > The one which I use which matches your requirements (non-PHP, perl-module > driven) is NS WebMail, He just said he was using PHP4, not Perl :) - k -

[PHP] exec system passthru

2001-07-09 Thread Plamen Slavov
Sorry if question was asked, but i did not find any information I use Apache/1.3.20 Win32 PHP/4.0.5 on a Windows ME I can run commands built in command.com like dir or cd, using system() or passthru(), but whenever i try to use external command, like pkunzip or gzip, the web server hangs and i

Re: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-09 Thread Tom Carter
Thanks for the offer... trouble was I took over a poorly designed project which had to be expanded v quickly I agree entirely .. syntax is key.. ended up restructuring the code from scratch... quicker then trying to hack the old. > PHP will roll over and die if you leave a ';' off the en

Re: [PHP] Help with a variable

2001-07-09 Thread Adrian Murphy
isset() function - Original Message - From: "James Bartlett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 12:43 PM Subject: [PHP] Help with a variable Hi, Is there some way that I can check to see if a variable is present? e.g. if (variable is not present)

Re: [PHP] custom tag support

2001-07-09 Thread dc
I was simply looking for a way to easily develop re-usable components. I know that functions can be used in php, however, the custom tag (xml type) syntax is more clean and easy to view. I may try using xml with functions to get what I desire. I don't think custom tags will go away with functions

[PHP] mysql, interbase, etc

2001-07-09 Thread kachaloo
Hi, Which db supports trigers and stored procedures and is also free ? I thought mysql supports it but to my dismay it does not it will support it in the near future Please help as I need to find one out soon. wht abt interbase is it anygood ? Regards, Vishal -- PHP General Mailing Lis

RE: [PHP] mysql, interbase, etc

2001-07-09 Thread Adrian Ciutureanu
http://www.PostgreSQL.org > -Original Message- > From: kachaloo [mailto:[EMAIL PROTECTED]] > Sent: 9 iulie 2001 16:58 > To: [EMAIL PROTECTED] > Subject: [PHP] mysql, interbase, etc > > > Hi, > Which db supports trigers and stored procedures and is > also free ? I > thought mysql

[PHP] max_execution_time & header

2001-07-09 Thread Peter Schumacher
I'm trying to backup a huge amount of data comming from a MySQL database. It seems that my script times out before it is done. I'm unable to persuade my ISP to raise the max_execution_time and thought of using redirects instead (header). I've written a script that backs up 500 rows and then redi

[PHP] Domain question

2001-07-09 Thread ReDucTor
Hey, What are some domain places that allow mass whois??? for like a few hundred domains at once...? - Jame "ReDucTor" Mitchell

Re: [PHP] max_execution_time & header

2001-07-09 Thread mike cullerton
on 7/9/01 8:17 AM, Peter Schumacher at [EMAIL PROTECTED] wrote: > I still run into the max_execution_time!!! I thought it would be reset as I > redirect to another page. within your script ini_set("max_execution_time", $some_bunch_of_seconds); -- mike cullerton -- PHP General Mailing List

RE: [PHP] PHP security FAQ

2001-07-09 Thread David Price
Setting the open_basedir in the Apache conf file for each virtual host should do the trick. At least on my server, with "php_admin_value open_basedir /home/david" set under the section for my domain I can't see any files outside my home directory. With safe_mode turned on, I think that even pre

Re: [PHP] session variable name into form

2001-07-09 Thread PHP
This works for me... echo ' '; - Original Message - From: "Andrew Austin" <[EMAIL PROTECTED]> To: "Php Lists (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 12:25 AM Subject: [PHP] session variable name into form I have a session variable called auth_user and want to put the

[PHP] Download function for php

2001-07-09 Thread Mark Lo
Hi, Is there any php download function for php. I am asking is the one like downloading the file from the server when people click the link. Like downloading php sources tar file. Thank you Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Re: how do I include a class into my php page

2001-07-09 Thread Chris Lee
yes of course, you know your own anser :) some_class.egn index.php -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 021b01c108b1$ec596640$[EMAIL PROTECTED]">news:021b01c108b1$ec596640$[EMAIL PROTECTED]... Exactly what the title said, I have a class file, name

[PHP] Re: how to use class

2001-07-09 Thread Chris Lee
include_once('some_class.egn'); $some_class = new some_class; $some_class->some_function(); -- Chris Lee [EMAIL PROTECTED] "Jack" <[EMAIL PROTECTED]> wrote in message 020801c108af$36dc70c0$[EMAIL PROTECTED]">news:020801c108af$36dc70c0$[EMAIL PROTECTED]... Hi all I am new to php class, ba

Re: [PHP] Download function for php

2001-07-09 Thread Mark Charette
To download a file from the server needs no special magic - just a link to the file. Mark C. - Original Message - From: "Mark Lo" <[EMAIL PROTECTED]> To: "php general" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 9:36 AM Subject: [PHP] Download function for php > Hi, > > Is the

[PHP] Re: Download function for php

2001-07-09 Thread Chris Lee
why do you need a function for this ? why dont you just make a link to the file ? some_src as long as some_src.tgz is in the web root this will work. and if the file is not in the web root, then why are you downloading something from the web not int the web root ? make a symbolic link from the

[PHP] Re: Domain question

2001-07-09 Thread Chris Lee
not exactly a php question. but to answer your question .. I have no answer. -- Chris Lee [EMAIL PROTECTED] "Reductor" <[EMAIL PROTECTED]> wrote in message 005d01c10881$a8517a80$0200a8c0@ReDucTor">news:005d01c10881$a8517a80$0200a8c0@ReDucTor... Hey, What are some domain places that allo

RE: [PHP] webmail

2001-07-09 Thread Mark Roedel
> -Original Message- > From: Adrian D'Costa [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 12:34 AM > To: php general list > Subject: [PHP] webmail > > > I am trying to write a web-based email client for my site (or > are there any samples) using php4 and POP3. There are a fe

[PHP] Re: Sorting an assoiative Array

2001-07-09 Thread Chris Lee
I used similar and just put it into a function function array_max($array) { asort($array); return current($array); } this just gives me the first element of the array. -- Chris Lee [EMAIL PROTECTED] "Patrick Meisel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

[PHP] Storing serialized classes in database

2001-07-09 Thread Michael Champagne
We are writing a series of applications which will store a user 'profile' between sessions as a serialized object in our Oracle database. We're storing data like the output format a user prefers file downloads in and things like that. If have to add certain things to this class, I'm assuming the

[PHP] xml and php question

2001-07-09 Thread Conor McTernan
Hey all I'm not so sure if this is the correct place to ask this question, but I'm hoping some of you will be able to give me some feedback. I am currently toying around with php and mysql developing a website for myself, the current one is partly php powered, but I am trying to move it over to a

[PHP] Re: Download function for php

2001-07-09 Thread George Whiffen
Mark Lo wrote: > > Hi, > > Is there any php download function for php. I am asking is the one like > downloading the file from the server when people click the link. Like > downloading php sources tar file. > > Thank you > > Mark No download function that I know of, but it isn't hard to

RE: [PHP] Storing serialized classes in database

2001-07-09 Thread scott [gts]
you could use a simple assoc. array for all the user's information, and store that serialized in the database rather than serialize the entire object. that way, you'd have to store less information in the DB, and wouldnt have to worry about breaking any of your code in the future (or the object b

Re: [PHP] url without a query string?

2001-07-09 Thread teo
Hi Jon! On Mon, 09 Jul 2001, Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that > uses a remote service. this service requires that thee be the exact > same refering url.

Re: [PHP] Storing serialized classes in database

2001-07-09 Thread infoz
The way we do commonly this in Dreamtime is to have a container object (essentially an associative array with a wrapper (http://www.phptemplates.org/old/classref/dot_Container.html) that allows you to get/set the profile data elements by name. That whole object is then serialized as the (single)

[PHP] Re: Help with a variable

2001-07-09 Thread George Whiffen
James Bartlett wrote: > > Hi, > > Is there some way that I can check to see if a variable is present? > > e.g. > > if (variable is not present) > { > set variable to 0; > } > else > { > some code that uses variable; > } > > Thanks for any advice. > > James isset function variable is alread

[PHP] command output

2001-07-09 Thread Ker Ruben Ramos
ey guys.. anyone know of doing something like with net.yahoo.com/cgi-bin/trace.sh?ip_here .. something that prints out every result of the traceroute command... not showing the result after command exited -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] session variable name into form

2001-07-09 Thread Aral Balkan
This might help - straight from the PHP manual: * * * If track_vars is enabled and register_globals is disabled, only members of the global associative array $HTTP_SESSION_VARS can be registered as session variables. The restored session variables will only be available in the array $HTTP_SESSION

RE: [PHP] session variable name into form

2001-07-09 Thread scott [gts]
this also works: but the way you have it currently written is perfectly OK. it seems as if the problem is with your variable not being set, rather than with your PHP code. try explicitly setting the variable a few lines above the output of the INPUT field blah blah blah PS: is the output ha

[PHP] a recent 2600 article about PHP/CGI vulnerabilities

2001-07-09 Thread scott [gts]
i just read an article in 2600 yesterday about supposed PHP/CGI vulnerabilities. anyone else catch it? personally, when i read the article, i started chuckling, becuase the supposed "vulnerability" is not with PHP or any particular language, but with shoddy "secure" programming practises (which

RE: [PHP] max_execution_time & header

2001-07-09 Thread scott [gts]
do you have shell access, and do they have the CGI version of PHP? you could always try running it from the command line if you have access > -Original Message- > From: mike cullerton [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 10:25 AM > To: [EMAIL PROTECTED] > Subject: Re:

Re: [PHP] a recent 2600 article about PHP/CGI vulnerabilities

2001-07-09 Thread Chris Anderson
/me unsubscribes : ) - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:40 AM Subject: [PHP] a recent 2600 article about PHP/CGI vulnerabilities > i just read an article in 2600 yesterday about supposed > PHP/CGI vul

Re: [PHP] RE: [PHP-WIN] php > XML output in IE: no display

2001-07-09 Thread Patrick Sibenaler
> IE does some "intelligent guessing" based on filename extension that will > override headers. If you send enough headers in the right sequence you can > get it to work right - with a weird name if you want to save it and > sometimes a double query on whether or not you want to save it. Tricki

[PHP] HTML/PHP's static state problem.

2001-07-09 Thread Alexander Deruwe
Hey all, I've run into a little problem: Take, for example, combobox A and combobox B. Suppose B's s depend on what is selected in A.. Is it possible to update B according to what is selected in A? Thanks, Alexander 'ad' Deruwe -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] FW: failure notice/unsubscibe

2001-07-09 Thread Maxim Maletsky
mail something here: [EMAIL PROTECTED] Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Robert Barrington [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 1:36 AM To: P

[PHP] php & aol

2001-07-09 Thread Steve
I have a php form which the user fills out with info like name, and email address, stores the user input in a database and then it sends a link via email to a friend. ow the form works fine as long as you are not coming from an AOL address? when the aol user fills out the form all seems to go well

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Alexander Deruwe
Hello Maxim, Basically I mean this: I load the page, it has two comboboxes ( with ). The first one contains names of countries, the second names of cities within those countries. When I select "Belgium" in the first one, I only want to see all Belgian cities. Now with JavaScript this wouldn't re

[PHP] PHP array information.

2001-07-09 Thread Chris Oxenreider
Hello: My apologies if this has been covered before, or if i have missed it on the php manual web pages. I am looking for some information on how to do a perl like array with a *sql call in PHP. Here is what I want to do: table: problem_class _rid (tinyint) description (mediumtext)

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky
Then still a JavaScript: Find a code that loads or submits the page (passing a var) when selecting/clicking on a country in the list. Then using your variable contains the country get the needed cities. That is the only way to 'emulate' JS. You could also provide an HTML text list of countries,

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris
> Basically I mean this: I load the page, it has two comboboxes > ( with ). > The first one contains names of countries, the second names > of cities within those countries. > When I select "Belgium" in the first one, I only want to see > all Belgian cities. > Now with JavaScript this wouldn't

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread infoz
If it's not prohibitive, you can pre-load all the possibilities into javascript arrays via PHP, and decide which to subset to display using javascript. I did this on a large on-line kid's encyclopedia, where the page could display different lists of links using javascript depending on where they

Re: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread PHP
As a matter of fact you can create dynamic comboboxes, but not with soley PHP. Because PHP is server-side, it has no idea what the user has selected on a form, etc. JavaScript, on the other hand, is client-side, so it keeps track of what the user is doing. I've done this very thing for

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Boget, Chris
> I've done this very thing for a leasing company. I used > PHP and MySQL to create a series of arrays in Javascript. > When the user clicked on a value in the first combobox I > used onClick to call a function which loaded information > into the second box. A definite possibility. The

RE: [PHP] HTML/PHP's static state problem.

2001-07-09 Thread Maxim Maletsky
That is why I am saying - loading two pages is cooler then do it all on one. Some people are still scratching the web on 28 and 36 K - those gonna get sick submitting your form. Plus a page view. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL

RE: [PHP] command output

2001-07-09 Thread Ben Bleything
Couldn't you just echo `traceroute $ipgoeshere`; ?? Ben -Original Message- From: Ker Ruben Ramos [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 8:18 AM To: [EMAIL PROTECTED] Subject: [PHP] command output ey guys.. anyone know of doing something like with net.yahoo.com/

[PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt
Can anyone direct me to a place where I can read up on how to use php as a shell scripting language? Thanks Kevin Ouelong Group www.ouelong.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

RE: [PHP] PHP as a shell script

2001-07-09 Thread Ben Bleything
It's simple. Find your php binary (or build one if you don't have one)... I think 'which php' will find it. Then, write a php file with '#!/path/to/php -q' at the top. Use any one of the various execution methods to run your programs. Done! I've been doing this for quite a while. I find it e

RE: [PHP] PHP array information.

2001-07-09 Thread scott [gts]
i dont quite think i understand the question, but if you want to fetch results as an array with mysql, do this: $result = mysql_query(" sql "); mysql_fetch_array($result); > -Original Message- > From: Chris Oxenreider [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 12:39

Re: RE: [PHP] webmail

2001-07-09 Thread olsonric
In addition, here's a POP3 class from the PHP Classes Repository... -- 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]somebody help me out here!

2001-07-09 Thread Chris Cocuzzo
hey- I know I've seen an article/tutorial on the zend website very recently about parsing urls. It was about being able to use urls which are search engine friendly and only use the forward slashes, and it also included the code to interpret all of that. Does anyone know of this article who can d

[PHP] Getting extensions to load in Win32

2001-07-09 Thread Michael Hall
I am having a devil of a time getting any extensions to load on my Windows machines. I have the php.ini set up as follows: [...] extension_dir = C:\PHP\extensions [...] ;extension=php_fdf.dll extension=php_gd.dll I'm trying to load the php_gd.dll, but I get the same problem with any of the exte

RE: [PHP] Getting extensions to load in Win32

2001-07-09 Thread Hoover, Josh
Michael, First, try running php.exe from the command line. When you do that, it will probably give you a message about not being able to find certain dll's it needs. I believe most, if not all, of the dlls you need are in your PHP directory under a dll directory. The best thing to do is to add

[PHP] Re: Getting extensions to load in Win32

2001-07-09 Thread Inércia Sensorial
Sometimes you have to add the dir on the php.ini, for example: ;extension=php_df.dll Becomes: extension=extensions/php_gd.dll Can't remember if it is / or \ after 'extensions' -- Julio Nobrega. Yes, I am developing another 'Portal-System' Have a look: http://sourceforge.net/pr

[PHP] PHP/Apache security question : bugtraq, suExec etc

2001-07-09 Thread Robert Mena
Hi, I follow bugtraq and recently there was a thread regarding safe_mode of php and how to "break" it. The thread was killed without a conclusion to where this is really a new threat or the same problem (scripts executed with sage uid/gid of the web server). So, I was wondering if the php-dev tea

[PHP] Name of an array???

2001-07-09 Thread Dallas K.
I need to echo the NAME of an array to the browser. when I try this all I get is "Array". when I try to : echo $$array_name; I get nothing. How can I get the NAME of an array to the browser? Thanks.

[PHP] enable_dl : manual not clear enough?

2001-07-09 Thread Robert Mena
Extension Loading Directives Hi, While reading the english version of the manual I got stucked in a part that seems a little confusing. "enable_dl boolean This directive is really only The main reason for turning dynamic loading off is security. With dynamic loading, it's possible to igno

[PHP] sorting results of opendir()

2001-07-09 Thread kmurrah
Greetings. I need to read the contents of a directory, sort it alphabetically, and display it i'm doing find on the reading and displaying, but can someone help me with the sort? $dir = opendir("."); while ($file=readdir($dir)) { if($file!= "." && $file != "..") {

RE: [PHP] Name of an array???

2001-07-09 Thread scott [gts]
you mean output the name of the variable?? what are you trying to do with that? > -Original Message- > From: Dallas K. [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 4:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Name of an array??? > Importance: High > > > I need to echo t

Re: [PHP] can I fopen an https url?

2001-07-09 Thread Jeff Orrok
Christian Reiniger wrote: > > On Saturday 07 July 2001 09:27, Jeff Orrok wrote: > > and assuming I can, will this dump the resulting page to the browser? > > > > $fp = fopen( $buildURI, "r" ); > > fpassthru( $fp ); > > fclose( $fp ); > > Why don't you just try it? *heavy sigh* OK, let me rephr

Re: [PHP] can I fopen an https url?

2001-07-09 Thread Thomas Deliduka
On 7/9/2001 2:07 PM this was written: > *heavy sigh* OK, let me rephrase my inquiry. What must I do to be able > to fopen an https url? For some reason, php tries to find it in the > path that the executing script resides in. You have to use cURL http://curl.haxx.se/ with PHP (http://www.php.

[PHP] Image thumbnail creation

2001-07-09 Thread Steph
Hi all! New to the list and new to PHP. Im trying to create Image thumbnail dynamically versus creasting them manually via my graphics program. Thanks, Steph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] Image thumbnail creation

2001-07-09 Thread Ethan Schroeder
You must have the gd library compiled into PHP for this http://www.php.net/manual/en/ref.image.php - Original Message - From: "Steph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:27 AM Subject: [PHP] Image thumbnail creation > Hi all! New to the list and

Re: [PHP] Name of an array???

2001-07-09 Thread Steve Edberg
Not quite sure what you're getting at here. As you discovered, if you have $Thing = array(5,6,7,8); and you 'echo $Thing;' you get 'Array.' However, in this case, you know the variable name already - $Thing! Are you thinking more along these lines: $ArrayName = 'Thing';

[PHP] BE A MILLIONAIRE WITHIN A YEAR!

2001-07-09 Thread biz_25
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR! Dear Friend: "Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S.Dollars expense one time" THANKS TO THE COMPUTER AGE AND THE INTERNET! === BE A MIL

Re: [PHP] Storing serialized classes in database

2001-07-09 Thread Christopher Heschong
When you serialize() an object in PHP, it only stores the properties, not the methods. This way you can change any of the methods in your class definitions, or add new properties, and when the data is unserialize()d, it will fit into the new class definition. The latest (development) version

RE: [PHP] sorting results of opendir()

2001-07-09 Thread Jeff Lewis
Why don't you add the $file to an array, then do a sort on the array? sort($array) Jeff > -Original Message- > From: kmurrah [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 2:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] sorting results of opendir() > > > Greetings. > > I need

[PHP] Re: php chat

2001-07-09 Thread Henrik Hansen
[EMAIL PROTECTED] (Jack) wrote: > 1. (*) text/plain > > Hi all > is there anyone know where can I get a good php chat programme? there are one here: http://phpwizard.net/projects/phpChat/ and one for irc here: http://phpwizard.net/projects/phpIRC/ you could also look at php's n

Re: [PHP] sorting results of opendir()

2001-07-09 Thread Steve Edberg
Here's one way: $dir = opendir('.'); unset($FileList); while ($file=readdir($dir)) { if($file!= '.' && $file != '..') { $FileList[] = $file; } } sort $FileList; reset($FileList); while(list(, $F) = each($FileList)) { echo "$F\n"; } If you're using

Re: [PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt
Is there any special switches I have to pass to the compile of php to create the php binary? Kevin - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Kevin Pratt'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:03 AM Subject: RE: [PHP] PHP as a s

[PHP] Book Database

2001-07-09 Thread Reuben D Budiardja
Hi, I'm doing project using php that will allow me to enter an ISBN number of a book, and put that book info into my database. Is there any free book database out there that I can query using ISBN, and will return me the info such as the title, author, publisher? If I can just get the title

RE: [PHP] Book Database

2001-07-09 Thread Chris Lott
The Library of Congress web site is good for that sort of thing. You can search for an ISBN and have returned a formatted MARC record/etc which is fairly easy to parse. I don't have code anymore, but I did exactly this at one time. c > -Original Message- > From: Reuben D Budiardja [mailt

[PHP] caller() function

2001-07-09 Thread scott [gts]
i cannot seem to find any function that's similar to perl's "caller()" function - to get information about the file/function that is calling the current function. for example, the test() function is called from scott.php scott.php Hello there test.php function test() { without passing in

Re: [PHP] PHP as a shell script

2001-07-09 Thread bleythbe
There are... but I'm not sure what they are. If you build PHP _without_ any options, I believe you will get the binary. Read the documentation that comes with the source. It will show you the way. Ben Quoting Kevin Pratt <[EMAIL PROTECTED]>: > Is there any special switches I have to pass to

Re: [PHP] sorting results of opendir()

2001-07-09 Thread bleythbe
Just store each $file into an array ($array[] = $file) and the sort($array). Works dandy => Ben Quoting kmurrah <[EMAIL PROTECTED]>: > Greetings. > > I need to read the contents of a directory, sort > it alphabetically, and > display it > > i'm doing find on the reading and displaying,

Re: [PHP] PHP as a shell script

2001-07-09 Thread Tyler Longren
Just don't compile it with apache or some other web server. It should create the executable then. Tyler - Original Message - From: "Kevin Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 12:01 PM Subject: [PHP] PHP as a shell script > Can anyone direct me

RE: [PHP] echo array name

2001-07-09 Thread Matthew Luchak
Not sure if this helps but how about? array("31","has 1 day holiday"), February=>array("28","is very cold")); for($i=0; $i < count($months); $i++) { while(list($key,$val)=each($months)) {echo $key.' has '.$val[0].' days, it '.$val[1].' ';} } ?>

RE: [PHP] PHP as a shell script

2001-07-09 Thread scott [gts]
dont use --with-apxs or --with-apache ./configure --my-options make make test make install that should do it. > -Original Message- > From: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 3:07 PM > To: Kevin Pratt; [EMAIL PROTECTED] > Subject: Re: [PHP] PHP as a sh

Re: [PHP] Image thumbnail creation

2001-07-09 Thread [EMAIL PROTECTED]
on 7/9/01 2:27 PM, Steph at [EMAIL PROTECTED] wrote: > Hi all! New to the list and new to PHP. Im trying to create Image thumbnail > dynamically versus creasting them manually via my graphics program. There's a nice one here: http://www.brokenchair.org/projects/snippets/ Susan -- PHP Gene

Re: [PHP] PHP as a shell script

2001-07-09 Thread Kevin Pratt
Yep all done thanks... Kevin - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 1:26 PM Subject: RE: [PHP] PHP as a shell script > dont use --with-apxs or --with-apache > > ./configure --my-options > make > make test > m

RE: [PHP]somebody help me out here!

2001-07-09 Thread Andrew Chase
There's a search engine optimization tutorial at Webmonkey: http://hotwired.lycos.com/webmonkey/01/23/index1a.html?tw=e-business It mentions doing the Amazon-style search-engine friendly URLs and links to a page about mod_rewrite for Apache: http://httpd.apache.org/docs/mod/mod_rewrite.html -

[PHP] RE: sorting results of opendir()

2001-07-09 Thread Andrew Chase
Try reading the directory contents into an array, sorting it, *then* outputting the contents of the array: $dir = opendir("."); $dirlist = array(); $index = 0; while($file = readdir($dir) && $file != "." && $file != ".."){ $dirlist[$index++] = $file; } sort($dirlist); foreach($dirlist

RE: [PHP] RE: sorting results of opendir()

2001-07-09 Thread Don Read
On 09-Jul-01 Andrew Chase wrote: > Try reading the directory contents into an array, sorting it, *then* > outputting the contents of the array: > > $dir = opendir("."); > > $dirlist = array(); > $index = 0; > while($file = readdir($dir) && $file != "." && $file != ".."){ > $dirlist[$index

  1   2   >