Re: [PHP] getaddrinfo failed: No address associated with hostname

2002-11-28 Thread Tony Earnshaw
tor, 2002-11-28 kl. 05:22 skrev Godzilla: Warning: php_network_getaddresses: getaddrinfo failed: No address associated with hostname Your DNS doesn't work any more? Best, Tony -- Tony Earnshaw When all's said and done ... there's nothing left to say or do. e-post: [EMAIL

Re: [PHP] dynamic arraynames

2002-11-28 Thread Hugh Danaher
Floyd, I thought about this some and started noodling out a solution for you, but have a few questions before I go any farther on this. 1. The part about users inputting their own column headers is relatively straight forward. Something like this should work: ?php if (!isset($start_button))

Re: [PHP] Password Script

2002-11-28 Thread Vicky
A 'guessing'/knowledge game ^_^ Basically I put a picture of a dog or cat up and they try to guess the breeds. If they get it right then they go to a page where they can download their prize! Vicky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 28 Nov 2002 11:26:02 -0000 Issue 1731

2002-11-28 Thread php-general-digest-help
php-general Digest 28 Nov 2002 11:26:02 - Issue 1731 Topics (messages 126374 through 126397): session problems again 126374 by: Jason Romero 126378 by: Rich Gray Re: [PHP-DEV] Parse search string a la Google (Regular expression?) 126375 by: Ernest E Vogelsinger Re:

[PHP] rewrite urls with preg_replace

2002-11-28 Thread Dieter Koch
Hi to all the PHP-Fans out there, i have a syntax-problem with the folowing preg_replace command: $returnString = preg_replace(/(href=\)(.+?)(\)/is, preg_quote(\\1.ebLinkEncode(.\\2.).\\3), $returnString); i'm trying to call my own function within a preg_replace function and it won't work. any

Re: [PHP] controlling ownership on file uploads ...

2002-11-28 Thread Marek Kilimajer
Besides what was said before, you don't even need to delete it, it will be deleted when your script is done. If you want to keep it, you have to move it elsewhere. Kenn Murrah wrote: Greetings. I've written a simple form to allow my clients to upload files to me, and it works fine EXCEPT that

Re: [PHP] Bad File Mode?

2002-11-28 Thread Marek Kilimajer
You can stat (get filesize, modification time, permissions) only local files - download it first and then get its filesize if you need it. Steve Keller wrote: I'm still trying to get a file posted to another server, but I seem to have run across an odd snag, and I was hoping someone can point

Re: [PHP] **** Converting dynamic webpages into static HTML pages

2002-11-28 Thread Marek Kilimajer
Easy and intuitive are all the programs that allow you to download the whole website http://download.com.com/3150-2071-0.html?tag=dir Ron Stagg wrote: I have an interesting challenge. I have built an online product catalog that is driven entirely by the contents of the product database

Re: [PHP] Bad File Mode?

2002-11-28 Thread Ernest E Vogelsinger
At 21:05 27.11.2002, Steve Keller spoke out and said: [snip] I'm still trying to get a file posted to another server, but I seem to have run across an odd snag, and I was hoping someone can point out where I've gone wrong. Here's the code: ?

Re: [PHP] printing screen without the print dialog

2002-11-28 Thread Marek Kilimajer
No, this is not possible - security restrictions Duky Yuen wrote: I am having this problem, I want to print something directly to my printer without having that print dialog. What to do know? Is this possible? Duky -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Bizarreness with htmlentities() and other things

2002-11-28 Thread James Coates
Hello! I'm currently doing some work that requires a mySQL database of actor names. For all my actors, I have three columns; first_name, last_name and between_name. Because between_name can be written in many ways (Peter van Wibble or Fred d'Angelo), and the French have a habit of writing

Re: [PHP] session problems again

2002-11-28 Thread Marek Kilimajer
Check your session files (usually in /tmp) if they are what they are supposed to be Jason Romero wrote: --when using session registered variables --i can only get them to save as session variables for one page --then on the next page they are gone --far as i can tell the variables are not

Re: [PHP] editing .htaccess / .htpasswrd

2002-11-28 Thread Mika Tuupola
On Wed, 20 Nov 2002, Oliver Witt wrote: I'm looking for a script that enables users of password demanding web sites to change their password, in other words a script, that can write into the .htpsswrd file. Answering to an old mail in here but noticed you didn't get any

Re: [PHP] editing .htaccess / .htpasswrd

2002-11-28 Thread James Coates
At 15:46 28/11/2002 +0200, Mika Tuupola wrote: into the .htpsswrd file. Answering to an old mail in here but noticed you didn't get any replies yet. You should check File_HtAccess and File_Passwd packages at PEAR: I quite like class.htpasswd -

[PHP] String function

2002-11-28 Thread Shaun
Hi, Please can someone tell me how i can tell if a string contains a full stop? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] String function

2002-11-28 Thread Marco Tabini
You can use strstr: if (strstr ($str, '.')) echo 'Full stop'; else echo 'No full stop'; Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers On Thu, 2002-11-28 at 08:49, Shaun wrote: Hi,

RE: [PHP] Bizarreness with htmlentities() and other things

2002-11-28 Thread Rich Gray
Hi James There is a bug in PHP for the capitalisation problem http://bugs.php.net/bug.php?id=14655 If you check the link then a workaround was posted by someone. HTH Rich -Original Message- From: James Coates [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 13:11 To: [EMAIL PROTECTED]

RE: [PHP] Bizarreness with htmlentities() and other things

2002-11-28 Thread James Coates
At 14:07 28/11/2002 +, Rich Gray wrote: There is a bug in PHP for the capitalisation problem Sounds like an internal Microsoft memo. :-) http://bugs.php.net/bug.php?id=14655 If you check the link then a workaround was posted by someone. Cool. If I've got that right, it'll be fine on

Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-28 Thread -[ Rene Brehmer ]-
Hi Ernest E Vogelsinger, On Sat, 23 Nov 2002 17:07:50 +0100, you wrote about Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work??? something that looked like this: At 16:50 23.11.2002, -[ Rene Brehmer ]- said: [snip]

Re: [PHP] echo'ing array contents through reference variable

2002-11-28 Thread -[ Rene Brehmer ]-
Hi Tularis, Thanks ... it totally did the trick ... if only I've had the time to actually look at this before now ;-) ... thx Rene On Sat, 23 Nov 2002 19:20:02 +0100, you wrote about Re: [PHP] echo'ing array contents through reference variable something that looked like this: echo

[PHP] mysql, php, checkbox

2002-11-28 Thread Adrian Partenie
Hello, I'm displaying the content of a mysql table with autoincrement index. I want to be able to select the each row from the table using the check boxes. In order to do that, i want to assign to each checkbox the name=index of selected row. I assign to the checkboxes the value of selected

RE: [PHP] mysql, php, checkbox

2002-11-28 Thread John W. Holmes
I'm displaying the content of a mysql table with autoincrement index. I want to be able to select the each row from the table using the check boxes. In order to do that, i want to assign to each checkbox the name=index of selected row. I assign to the checkboxes the value of selected id, but

[PHP] Re: rewrite urls with preg_replace

2002-11-28 Thread liljim
Hi Dieter, You need to use the 'e' modifier as well as 'is' in your pattern. Have a look in the manual, here: http://www.php.net/manual/en/pcre.pattern.modifiers.php If this modifier is set, preg_replace() does normal substitution of backreferences in the replacement string, evaluates it as PHP

RE: [PHP] rewrite urls with preg_replace

2002-11-28 Thread John W. Holmes
Hi to all the PHP-Fans out there, i have a syntax-problem with the folowing preg_replace command: $returnString = preg_replace(/(href=\)(.+?)(\)/is, preg_quote(\\1.ebLinkEncode(.\\2.).\\3), $returnString); i'm trying to call my own function within a preg_replace function and it won't

Re: [PHP] Password Script

2002-11-28 Thread Bobby Patel
If you have access to a database on your server then you can do the following: - user logs in to site (user enters unique username and password) - once in they will be displayed with the 3-6 Questions - after they answer the questions they hit submit which sends it to a PHP script - the PHP script

[PHP] 2D Array

2002-11-28 Thread Khalid El-Kary
hi, which is faster; filling two array elements with two values, or making a two dimensional array to handle the two values in one element ... which is better for Memory usage as well ? (considering that both of them serve well in my situation) thanx in advance Regards, Khalid Al-Kary

Re: [PHP] dynamic arraynames

2002-11-28 Thread Floyd Baker
The user's choice is made from a drop down list of available items, prior to running the routine itself. The choices are predetermined and kept in a personal table to be called by the routine. This part is finished to the point of putting the needed column names at the top of the input columns

[PHP] Multidimensional array

2002-11-28 Thread Mako Shark
(Thanks to all who've replied about the streaming audio. Haven't had a chance to respond or anything yet.) Here is a problem I'm having similar to somethnig someone just posted, but not quite the same. I'm not too experienced with the intricacies and complications of arrays, but I have a

[PHP] Hello ! How to write a programme in PHP which executes a routine at a given time ?

2002-11-28 Thread Jonathan
Dear all , Hello ! I am a student and going to write a suit of programme . The producers as follow producer 1. User A add an new appointment A ( open Winamp at 2:30 on computer B) through IE in his local computer A . producer 2. Computer A send the message to server A through http . The

RE: [PHP] Hello ! How to write a programme in PHP which executes a routine at a given time ?

2002-11-28 Thread Jon Haworth
Hi Jonathan, Do you mind to tell me how to make a PHP programme to execute a centian routine at a given time ? Thank you ! PHP doesn't have anything built in that'll do this for you (at least, nothing that I'm aware of). The best solution is to call your script from your OS's scheduler -

[PHP] Detecting email bounces sent by the mail function?

2002-11-28 Thread Ade Smith
Hello Is it possible to detect with PHP whether an email sent using the PHP 'mail' function has bounced back or has not been delivered? I currently all ready check the email address using the 'ereg' function before the mail function is called, but this only checks the format is valid beforehand.

[PHP] Multidimensional arrays (more and more...)

2002-11-28 Thread Mako Shark
Wow. This goes way beyond simply printing multidimensional arrays. Here's some sample data: $issue[][number] = number; $issue[][headline] = headling; $issue[][writers] = writers; $issue[][list] = list; $issue[][senttosubscribers] = 0; $issue[][month] = 05; $issue[][year] = 2003;

Re: [PHP] Multidimensional arrays (more and more...)

2002-11-28 Thread Marek Kilimajer
if [$number] is unique, use it as the key: // $issue[][number] = number; -- removed $issue[$number][headline] = headling; $issue[$number][writers] = writers; $issue[$number][list] = list; $issue[$number][senttosubscribers] = 0; $issue[$number][month] = 05; $issue[$number][year] = 2003;

[PHP] File handling

2002-11-28 Thread Jeff
Quick one, how do i read a file for a key word, say TEXt, and the delete the rest of the remaining file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-28 Thread DL Neil
Hello Ade, Is it possible to detect with PHP whether an email sent using the PHP 'mail' function has bounced back or has not been delivered? I currently all ready check the email address using the 'ereg' function before the mail function is called, but this only checks the format is valid

[PHP] Re: Multidimensional arrays (more and more...)

2002-11-28 Thread Mako Shark
Thanks to Paul and Marek for some ksort() advice. I'll try that out as soon as I can count() these buggers. A little more info on my count()ing. I have $issue[0][number] to $issue[x][number] just like any other multidimensional array (we'll call them m-arrays for simplicity). If I try to

Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-28 Thread Marek Kilimajer
Added to this: you won't receive the immediately, so you are not able to tell the user that sending the mail has failed. DL Neil wrote: Hello Ade, Is it possible to detect with PHP whether an email sent using the PHP 'mail' function has bounced back or has not been delivered? I currently

[PHP] Postnuke --- Meta keywords and title different for all the pages...

2002-11-28 Thread Manoj Nahar
Hi there, I would like to know has anybody being able to do this. Each page has its own meta keywords and title. I have searched lot of information about it but no luck. any help or pointer with this would be greatly appreciated. Manoj -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-28 Thread Michael Sims
On Thu, 28 Nov 2002 17:54:46 -, you wrote: Hello Is it possible to detect with PHP whether an email sent using the PHP 'mail' function has bounced back or has not been delivered? Hi, If you're using PHP on a unix/linux with sendmail you can set the envelope sender via the 5th parameter to

[PHP] Help with the PHP

2002-11-28 Thread Ted Frank
Hello, I am trying to make my free home page and my friend told me to download the php because it is for the web and i want to make a web page. so i downloaded the php with the flash plugin and i put it on my desktop and nothing showed up - i just want to make the free home page but the php

Re: [PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-28 Thread Benny Rasmussen
Works like a charm, thank you! Benny Ernest E Vogelsinger [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 23:11 27.11.2002, Ernest E Vogelsinger said: [snip] If I understand you correctly you want to isolate either

RE: [PHP] Detecting email bounces sent by the mail function?

2002-11-28 Thread scott
What would php run as on a cobalt raq4 so I don't get the x header warning Best regards -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 19:51 To: [EMAIL PROTECTED] Cc: Ade Smith Subject: Re: [PHP] Detecting email bounces sent by the mail function?

Re: [PHP] Help with the PHP

2002-11-28 Thread Hatem Ben
Welcome to the new world ;) before clicking or asking start reading what is PHP (http://www.php.net), and in what it could be usefull. then you can getting started here : http://www.php.net/manual/en/tutorial.php - Original Message - From: Ted Frank [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Multidimensional arrays (more and more...)

2002-11-28 Thread Mako Shark
if [$number] is unique, use it as the key: Yeah, I'd thought of that except there's no guarantee that it will be unique. Plus, it makes it harder to go through with a simple loop because $number really isn't guaranteed to be numeric (okay, so I have to change the name). Plus, it may not even

[PHP] RE: [PHP-DB] Help with date

2002-11-28 Thread Aaron Wolski
Well... 1 day = 60*60*24 = 86400 You figure it out from there :) Just one example. Aaron -Original Message- From: Dankshit [mailto:[EMAIL PROTECTED]] Sent: November 28, 2002 12:06 PM To: PHP; PHP1 Subject: [PHP-DB] Help with date How can i add days to a date??

Re: [PHP] Multidimensional arrays (more and more...)

2002-11-28 Thread Matt Vos
You don't need sequential numbers as your key. Take this example: /*** define some values ***/ $fruits['apple']['color']=$color; $fruits['apple']['diameter']=$x; $fruits['orange']['color']=$color; $fruits['orange']['diameter']=$x; $fruits['grape']['color']=$color; $fruits['grape']['diameter']=$x;

[PHP] session_name() - Question

2002-11-28 Thread Juerg Zgraggen
hi i have the following script: ?php session_name(MySession); session_start(); echo h1Session START/h1; $HTTP_SESSION_VARS[mctini] = parse_ini_file(mct.ini, true);; print_r($HTTP_SESSION_VARS[mctini]); ? everytime i reload the

[PHP] help with session variables

2002-11-28 Thread Thomas Goeminne
? include ('./header.php'); $query=select prodid, title FROM fatbeats_prod; $result= mysql_query($query); $names= mysql_fetch_assoc($result); $query1=select prodid, price from fatbeats_prod; $result1=mysql_query($query1); $prices= mysql_fetch_assoc($result1); while (list($key,$val) =

php-general Digest 28 Nov 2002 23:44:52 -0000 Issue 1732

2002-11-28 Thread php-general-digest-help
php-general Digest 28 Nov 2002 23:44:52 - Issue 1732 Topics (messages 126398 through 126442): rewrite urls with preg_replace 126398 by: Dieter Koch 126417 by: liljim 126418 by: John W. Holmes Re: controlling ownership on file uploads ... 126399 by: Marek

[PHP] Werid problemswith mail() command: From address on sent messages

2002-11-28 Thread C.F. Scheidecker Antunes
Hello All, I wonder if is there anyone who ever had the same problem and know how to solve it. I have a web site that does send e-mail to some users based on requests. The problem is that although I pass the right user/from address on the mail function, the message source shows From as beeing

[PHP] Suppressing X-Return-Path

2002-11-28 Thread Darren Fehrmann
Has anyone had experience with PHP or a mail server setting the X-Return-Path header on mail sent using PHP's mail() command? Our tests indicate the X-Return-Path is being set to the sendmail_from address found in php.ini. Our code definately isn't doing it, as a hello-world mail() example

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-28 Thread Axis Computers
Thanks for replying, Now I know it's possible to do it, but I still don't know how can I develop such interface, I will do it in php and mysql, but I need a little guidance with the way to do it I just can't figure out how ... Thank you Ricardo Fitzgerald - Original Message - From:

[PHP] file creation date

2002-11-28 Thread Research and Development
Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Thanks in advance. -- PHP General Mailing List

RE: [PHP] Postnuke --- Meta keywords and title different for all the pages...

2002-11-28 Thread Peter Houchin
Howdy, um what exactly do you want to do? add meta tag's to each individual page? -Original Message- From: Manoj Nahar [mailto:[EMAIL PROTECTED]] Sent: Friday, 29 November 2002 5:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Postnuke --- Meta keywords and title different for all

[PHP] Re: PHP 4.3.0RC2 released

2002-11-28 Thread Vadim Tkachenko
Archive php-4.3.0RC2.tar.gz contain directory autom4te-2.53.cache. With this directory I can't build my own extension, because buildconf can't find their. Vadim Tkachenko. Andrei Zmievski [EMAIL PROTECTED] ???/ ? ?: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The

Re: [PHP] File handling

2002-11-28 Thread Justin French
Quick one, how do i read a file for a key word, say TEXt, and the delete the rest of the remaining file? Do you mean: a) how do i make sure a word (eg foo) is in a file, and if it is, delete all contents of the file except the word foo OR b) how do i search a file for the word foo, and

[PHP] Help with login/redirect/insert to dbase

2002-11-28 Thread Karl James
Hello guys Happy thanksgiving!!! My question is I'm Trying to apply this code to what I have done already on my site http://robouk.mchost.com/tuts/tutorial.php?tutorial=login1 my site is this. http://www.ultimatefootballleague.com http://www.ultimatefootballleague.com/ Im trying to do

RE: [PHP] file creation date

2002-11-28 Thread John W. Holmes
Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Not with PHP. ---John Holmes... -- PHP General

[PHP] IRCG/PHP and Apache 1.3

2002-11-28 Thread Sascha Schumann
Hi! For all of you who are interested in running IRCG together with Apache 1.3, I suggest you have a look at this page. URL:http://schumann.cx/ircg/ircg4.php Spoiler: IRCG 4 will run inside Apache 1.3. -- About IRCG IRCG is a revolutionary way for

[PHP] Logging out and session ids

2002-11-28 Thread Gerard Samuel
I was just going through the archive. Seems this comes up enough for me to think I have something wrong. A simplistic code flow of events... ?php session_start(); // user successfully logs in, set a session variable $_SESSION['user_id']; // when the user logs out, destroy session and redirect

[PHP] how to use mssql_connect()?

2002-11-28 Thread Kim
when i using mssql_connect() function,that's show Fatal error: Call to undefined function: mssql_connect() on php page,i don't know why that it is! php 4.2.3 sql server 2000 apache 1.3.19 windows 2000 pro php.ini had configurated ok. -- PHP General Mailing List (http://www.php.net/) To