Re: [PHP] url without a query string?

2001-07-09 Thread James Tan
heh.. y not u use the post method?? use a form.. put in the hidden form... and document.theformname.submit(); eg: form name='theform' action='.../index.php' input type='hidden' value='1' /form scriptdocument.theform.submit();/script Jon Yaggie [EMAIL PROTECTED] wrote in message

[PHP] session variable name into form

2001-07-09 Thread Andrew Austin
I have a session variable called auth_user and want to put the variable into a form field. I have tried the following and similar but am not succeeding. INPUT TYPE=HIDDEN NAME=writer VALUE=?php echo $auth_user;? how else might it be done aa -- PHP General Mailing List (http://www.php.net/)

[PHP] Insert in MySQL an PHP

2001-07-09 Thread Roman
Please advise me ! I have one problem with insert records to the mysql database. If I run insert script in mysql command line I insert all 10801 records. If I run insert script with php I insert only 10784 records. Do you know how to solve this problem. In php.ini I have max_execution_time set

RE: [PHP] Getting any possible value inside an array

2001-07-09 Thread Adrian Ciutureanu
http://php.net/array_unique -Original Message- From: Aaron Bennett [mailto:[EMAIL PROTECTED]] Sent: 8 iulie 2001 08:52 To: [EMAIL PROTECTED] Subject: [PHP] Getting any possible value inside an array Hi everyone... Does someone have a quick and dirty way of returning _any_

[PHP] webmail

2001-07-09 Thread Adrian D'Costa
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 can get some samples or how to proceed with this

[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 option value=\$idx\$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

[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 option value=\$idx\$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

[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 messagefatal error, undeclared function :( is there any other

[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

[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... ? for ($i = 0; $i 12; $i++ ) { $idx = sprintf(%02d, $i + 1); echo option value='$idx'$idx\n; } ? Bye! 8-) Espeleta Tomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

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 option value=\$idx\$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

[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

[PHP] PHP 4.0.6 diferent handling of comments.

2001-07-09 Thread Guille -bisho-
In previous versions I could comment in this way: #font color=red%=$txt%/font And now only consider #font color=red 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

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 can get

[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 (variable is not

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

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

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) { set

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

[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

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 supports

[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

[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

Re: [PHP] session variable name into form

2001-07-09 Thread PHP
This works for me... echo ' INPUT TYPE=HIDDEN NAME=writer VALUE= ' . $auth_user . ' '; - 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

[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

[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 ?php class some_class { // ... } ? index.php ?php include_once('some_class.egn'); // ... ? -- Chris Lee [EMAIL PROTECTED] Jack [EMAIL PROTECTED] wrote in message 021b01c108b1$ec596640$[EMAIL

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

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 there any php

[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 ? a href='some_src.tgz'some_src /a 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

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

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 few

[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

[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

[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

[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

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 already 0 if !isset --

[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

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

RE: [PHP] session variable name into form

2001-07-09 Thread scott [gts]
this also works: INPUT TYPE=HIDDEN NAME=writer VALUE=?= $auth_user ? 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

[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

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. Tricking it

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

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:

[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

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 (select with option). 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

[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

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

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 (select with option). 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

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)

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

[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

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

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 PM

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

[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

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

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

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

[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

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

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

[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

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 ? $directory = getcwd(); $directory = $directory./photos; $size = GetImageSize($directory/$image); // feed the name of the original image here. $width = $size[0]; $height = $size[1];

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

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 to read

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 $Fbr\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 shell

[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

[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 ? include('test.php'); ? Hello there ? test(); ? test.php

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, but can

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 to a

RE: [PHP] echo array name

2001-07-09 Thread Matthew Luchak
Not sure if this helps but how about? ? $months=array(January=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].' BR';}

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 shell

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

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 make install

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

  1   2   >