[PHP] Parsing out numbers from a string

2001-12-30 Thread John Weez
Hi all I have a small program which captures the output of a webpage and puts the data in to a string variable. I then use teh strip tags function of php to clean it up a bit. then i want to use regular expressions to extract all the numbers from the page ..they are like this usually

[PHP] index.php

2001-12-30 Thread Caleb Carvalho
Hi all, all the sudden my apache 1.3.22 is not showing my index.php page php-4.0.6, i have added the addtype .php inside httpd.conf not only that, i have also noticed that the ?php phpinfo(); ? is not working also, this is not displaying the test page, I am using netscape as a browser, do you

RE: [PHP] index.php

2001-12-30 Thread scott
well... a good first step is to think about what has changed with your configuration. did you turn on any output handlers/buffering? Compile a new version? Modify apache in any way? -Original Message- From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 30, 2001

Re: [PHP] index.php

2001-12-30 Thread Rambo Amadeus
you can make .htacces file and put DirectoryIndex /index.php That will work - Original Message - From: Caleb Carvalho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30. prosinac 2001 10:40 Subject: [PHP] index.php Hi all, all the sudden my apache 1.3.22 is not showing my index.php

[PHP] Re: index.php

2001-12-30 Thread Daniel Urstöger
I am not sure if this is the problem. but why don´t just do something like this: DirectoryIndex index.html index.php index.cgi Search the httpd.conf, there is surely already for the index.html ! ;) Ehm, yeah, and this is one is ordered in priority from the left to right .. Hope it helps ! Cya

[PHP] Re: array in email

2001-12-30 Thread Jordan
Thanks George...that did the trick...sometimes I want to smack myself for not seeing the obvious. Thanks for the help. -Jordan George Nicolae [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... the mail function looks like : mail($to,$subject,$body) (in a

php-general Digest 30 Dec 2001 17:22:27 -0000 Issue 1082

2001-12-30 Thread php-general-digest-help
php-general Digest 30 Dec 2001 17:22:27 - Issue 1082 Topics (messages 79043 through 79065): Re: could not create new mailbox: Permission denied 79043 by: Brian Clark Quiz script 79044 by: Indera 79046 by: Bogdan Stancescu Re: Which is which?? 79045 by:

Re: [PHP] Session troubles

2001-12-30 Thread Sean LeBlanc
On 12-29 22:27, David Jackson wrote: Sean -- Does you standard (non session) seem to work ok? Such as: ?php // basic echo of var from form echo We've just echoed var from form\n; echo p$stuff/p; echo h2$more_stuff/h2; echo h3$still_more_stuff/h3; ? Yes, this works fine. I should have

[PHP] how long will REGISTERED GLOBALS be around?

2001-12-30 Thread PHP freak
About PHP 4.1 What I can't tell from the PHP announcement is how long they plan to keep register_globals around. In ONE place it says something like We have no plans to discontinue register_globals, but in another place it says it might be discontinued or devalued soon. It'd be a REAL drag

[PHP] Deleting files?

2001-12-30 Thread Matt Moreton
Hey guys. Any insight into this problem im experiencing would be much appriciated... I installed some software on my web space a while back, I ran a script and it extracted some files from a tar ball I had uploaded. This was all designed to make the package easy to install and set up. The

[PHP] Including images from Internet

2001-12-30 Thread Gaylen Fraley
Obviously, including an image from another page can be accomplished with an HTML tag. However, it seems that there are some inherent issues with doing this. How do you keep someone from linking a hi-res image and causing your browser to take forever to return, if you're on a dial-up? Is there

Re: [PHP] Including images from Internet

2001-12-30 Thread Bogdan Stancescu
If you're really serious about implementing this, it can be done using socket functions and basically creating a crippled browser's functions to only retrieve files. If you want to go on in this direction, I'm able to help -- just let me know what details you need. Bogdan Gaylen Fraley wrote:

[PHP] graphics libraries on windows

2001-12-30 Thread Arvydas V.
Has anybody succesfully installed all graphic libraries on windows platform ? Maybe you can sent me some links for step by step installation or help any way ? Thnx

[PHP] Bit shifting conversion (Delphi - PHP)

2001-12-30 Thread Stefan Pettersson
Hello all, I'm trying to convert a function done in Delphi (pascal) to PHP. This function is part of simple text encryption/decryption method. However, I have a really hard time to make this work in PHP. This is the Delphi code: Function RotateBits(C: Char; Bits: Integer): Char; var SI :

[PHP] mysql_fetch_array

2001-12-30 Thread Greg Sidelinger
Ok I have use mysql_fetch_array to dump the results of a select query with a join in it. if my tables contain a column with the same name how can I distinguish from them. I'm used to table_name.value method in other languages but when I tried $row['table_name.value'] I don't get any values. can

[PHP] Need some Linux/Apache help

2001-12-30 Thread Todd Cary
Coming from a Windows background, I am having difficulty understanding rpm's, compiling, and making packages. My hope is that someone will have the patience to take me through the steps, since the HowTo's are out of date and do not address my current Red Hat 7.2 environment. With Red Hat 7.2

Re: [PHP] mysql_fetch_array

2001-12-30 Thread Bogdan Stancescu
If everything else fails, you should consider using mysql_fetch_row() instead. Bogdan Greg Sidelinger wrote: Ok I have use mysql_fetch_array to dump the results of a select query with a join in it. if my tables contain a column with the same name how can I distinguish from them. -- PHP

Re: [PHP] Bit shifting conversion (Delphi - PHP)

2001-12-30 Thread Bogdan Stancescu
Why do you need word specifically? I personally had a hard time with PHP in the beginning exactly because I migrated from the Turbo Pascal/Dephi environment. Just learn how to deal with the new environment: use larger data types and shift right the byte in order to create a word and use logical

Re: [PHP] mysql_fetch_array

2001-12-30 Thread Mehmet Kamil ERISEN
Hi, In your SQL, you can say select t1.col colt1, t2.col colt2 from table1 t1, table2 t2 where t1.something = t2.samething In other words, you can name your columns differently in your select clause. I Bogdan Stancescu [EMAIL PROTECTED] wrote: If everything else fails, you should consider

Re: [PHP] Including images from Internet

2001-12-30 Thread Bogdan Stancescu
Gaylen wrote: Check the validity of the link. This is inherent to the process -- no need to worry - you just have to include some error fallback code in the process. Check the size. If less than a particular size, then PHP will resize/resample it and display a stndard Avatar sized icon.

[PHP] PHP GuestBook - KISGB (Keep It Simple Guestbook) Version 3.0 Released

2001-12-30 Thread Gaylen Fraley
I have released version 3.0 of my KISGB. KISGB is a PHP guestbook program that does not require sessions, cookies, or an rdbms. Can be Public or Private through HTTP Authentication. Automated install script, fully customizable, clean, and fast. Separate multiple logging capabilty for tracking

[PHP] MySQL problem

2001-12-30 Thread Good Fella
Hello, I am extremely new to MySQL and have never managed to get working smoothly with PHP before. I am trying really hard to understand how to work it, and am almost there. I have a problem which I do not know how to resolve and was wondering if anybody could help me. I have no idea what is

Re: [PHP] Need some Linux/Apache help

2001-12-30 Thread Brian Clark
* Todd Cary ([EMAIL PROTECTED]) [Dec 30. 2001 19:22]: I did tar -xzvf /usr/src/redhat/SOURCES/php-4.0.6pl1.tar.gz which created a directory /tmp/php-4.0.6. I cd'd into that directory and did a ./configure --with-interbase=/opt/interbase --with-apache=/usr/include/apache Are you sure the

Re: [PHP] MySQL problem

2001-12-30 Thread David Jackson
Here's the example from the PHP manual: The tutorial here are very helpfull: http://www.melonfire.com/community/columns/trog/ -- David ?php // Connecting, selecting database $link = mysql_connect(mysql_host, mysql_login, mysql_password) or die(Could not connect); print Connected

Re: [PHP] MySQL problem

2001-12-30 Thread GoodFella
Hiya, Thanks for the quick reply. I used the PHP manual example and it connects to the database successfully but cannot select the database. I'm not sure why this is? I've looked hard at it and I cannot see where I have gone wrong. Thanks. GF. - Original Message - From: David

Re: [PHP] Parsing out numbers from a string

2001-12-30 Thread Brian Clark
* John Weez ([EMAIL PROTECTED]) [Dec 30. 2001 03:23]: I have a small program which captures the output of a webpage and puts the data in to a string variable. I then use teh strip tags function of php to clean it up a bit. then i want to use regular expressions to extract all the numbers

[PHP] How to convert integers representations of a date to a date format variable

2001-12-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I would like to convert integers like the day, month and year to a date representation to store it in a session variable. There's a form where the user posts day, month and year. So then I run checkdate($month,$day,$year) and make sure the date is valid. So, let's say I have 12

Re: [PHP] how long will REGISTERED GLOBALS be around?

2001-12-30 Thread Brian Clark
* PHP freak ([EMAIL PROTECTED]) [Dec 30. 2001 15:01]: [...] In ONE place it says something like We have no plans to discontinue register_globals, but in another place it says it might be discontinued or devalued soon. I take it as being depreciated and as something we're all going to have

Re: [PHP] How to convert integers representations of a date to a date format variable

2001-12-30 Thread Brian Clark
* Carlos Fernando Scheidecker Antunes ([EMAIL PROTECTED]) [Dec 30. 2001 21:11]: So, let's say I have 12 for month, 30 for day and 2001 as year. Do I have to create a timestamp? How to create a TimeStamp? strtotime() can convert it into a unix timestamp. I need to store it as 30/12/2001

Re: [PHP] MySQL problem

2001-12-30 Thread Brian Clark
* GoodFella ([EMAIL PROTECTED]) [Dec 30. 2001 21:10]: Thanks for the quick reply. I used the PHP manual example and it connects to the database successfully but cannot select the database. So you are using this line: mysql_select_db(booktest); Correct? What does the server say in

Re: [PHP] MySQL problem

2001-12-30 Thread David Jackson
I almost forgot add a or mysql_error() for each line like this: ?php // database connect script $dbhostname = localhost; $dbuser = db_user_name; $dbpasswd = db_password; $dbname= db_name; $link = mysql_connect($dbhostname, $dbuser, $dbpasswd) echo mysql_error(); mysql_select_db($dbname)

Re: [PHP] how long will REGISTERED GLOBALS be around?

2001-12-30 Thread PHP freak
For what it's worth - casting my vote - I would vote that the PHP/Zend people keep REGISTER_GLOBALS as an option for one main reason: NEWBIES! Think of how nice it is for the total newbies to be able to have this first tutorial: ?php print Hello $myname; ? form action=?php print $PHP_SELF; ?

Re: [PHP] how long will REGISTERED GLOBALS be around?

2001-12-30 Thread Brian Clark
* PHP freak ([EMAIL PROTECTED]) [Dec 30. 2001 21:45]: Think of how many PHP-CURIOUS people it'd turn off if you could ONLY do it with $_REQUEST[myname] Hell, I have to admit, that is pretty darn ugly. -- Brian Clark | Avoiding the general public since 1805! Fingerprint: 07CE FA37 8DF6 A109

Re: [PHP] MySQL problem

2001-12-30 Thread GoodFella
Thanks so much guys, It was my user permissions all along. Funnily enough the book gives you guidelines on how to set them up, and sets up a fair few... but for some reason they selected the wrong user to use. Thanks very much for your help David and Brian- much appreciated. Yours, GF

[PHP] php4 and PHPLib

2001-12-30 Thread Gerard Samuel
I came across an application sourcewell and it requires PHPLib. My server has php4 on it. I never played with php3 before (dont know if I want to), and I didn't see anything in its docs about php4 Is it possible to run this thing on a box with php4?? Thanks -- PHP General Mailing List

[PHP] good php sites

2001-12-30 Thread Dennis Gearon
other than putting the 'next question' link too far from the question selection zone, this is a cool php site. http://verticalmove.bpnetworks.com/module.php?jobID=68689modNum=13 -- - Look lovingly upon the present, for it holds the