[PHP] asking about exe file

2002-04-08 Thread wong
Can php execute .exe file ( compile from BorlandC) and view result on the browser ? PLease Help Me Rizal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie Question

2002-04-08 Thread Hubert DAUL
Hi , Here's my problem : I read a data file (no sql file) which contains 8 lines, and in each line, 8 datas (ex: name1;picture1;title1;anything1;everything1;nothing1) and when i run it I see only one picture(the second data) and not all of them If someone could help me TYA Here the code :

Re: [PHP] Newbie Question

2002-04-08 Thread Miguel Cruz
$fp = fopen($filename, 'r'); while ($l = fgets($fp, 1000)) { list ($parts, $vignette, $marque, $nom, $pdfproduit, $commprod) = explode (';', $l); // now use the data print p$parts/p; // or whatever } fclose ($fp); On Mon, 8 Apr 2002, Hubert DAUL wrote: Hi , Here's my problem :

[PHP] Copying Directory

2002-04-08 Thread Hiroshi Ayukawa
Hello, I guess anyone have made the function to coppy directories, not files. I'd like to copy directory including sub directories to other place. Doesn't anyone has mades that kind of function?And please telll me. Thamks in advance. HiroshiAyukawa

[PHP] Adding a in try.jpg!

2002-04-08 Thread Thomas Edison Jr.
I have a new very intriguing problem at hand. I have the name of my Images stored in my mySQL database in one column. Now when i pick the images, they are displayed as it as. However, they are the big images, and the thumbnails of those images are stored with an a at the end of thier names.

Re: [PHP] Adding a in try.jpg!

2002-04-08 Thread Miguel Cruz
(untested) $newname = eregi_replace('\.jpg$', 'a.jpg', $oldname); No point messing up your database; just use something like the above when you're outputting the image tags for the thumbnails. miguel On Mon, 8 Apr 2002, Thomas Edison Jr. wrote: I have a new very intriguing problem at

Re: [PHP] Adding a in try.jpg!

2002-04-08 Thread Billy S Halsey
$parts = preg_split('/\./', $filename); $new_filename = $parts[0] . a.jpg; (Not tested, but _should_ work.) /bsh/ Thomas Edison Jr. wrote: I have a new very intriguing problem at hand. I have the name of my Images stored in my mySQL database in one column. Now when i pick the images,

Re: [PHP] Adding a in try.jpg!

2002-04-08 Thread Jason Wong
On Monday 08 April 2002 15:41, Thomas Edison Jr. wrote: How can i : 1. Insert a at the end of the name of the image, before the .extension through PHP. The problems are that the names are stored in the database WITH the extesion. And the extensions also vary, some are JPG and some are GIF.

[PHP] Re: Copying Directory

2002-04-08 Thread Michael Virnstein
# # # boolean copy_dirs ( string src_dir, string target_dir ) # # # copy shopdirectories into a new shop # # Function

[PHP] Re: Copying Directory

2002-04-08 Thread Michael Virnstein
there was a typo...this one should work # # # boolean copy_dirs ( string src_dir, string target_dir ) # # # copy a directory with subdirectories to a target directory

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Thomas Edison Jr.
Hi, Thanks for your relies. There are a couple of problems. Firstly, i'm picking the filename from the database, so my code is something like this : if ($myrow = mysql_fetch_array($result)) { do { echo( img src=\images\\$myrow[ilmage]\ ); } while ($myrow =

[PHP] Re: PHP from HTML

2002-04-08 Thread Matjaz Prtenjak
THANKS! That works!! Except on PHP side I have to produce javascript code without script tag, like xTest.php - SERVER1 with PHP document.write(?php echo(\This WORKS!!!\); ?); on server 2 I just have to write this inside script tag, like HTML file on SERVER2 WITHOUT PHP html body script

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Miguel Cruz
$thumbnail = eregi_replace('\.jpg$', 'a.jpg', $myrow['ilmage']); $thumbnail = eregi_replace('\.gif$', 'a.gif', $thumbnail); It's no problem to do it twice in a row; it'll pick up one or the other. miguel On Mon, 8 Apr 2002, Thomas Edison Jr. wrote: Hi, Thanks for your relies. There are

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Richard Baskett
Do the explode and implodes like that one fellow mentioned. So basically: while ($myrow = mysql_fetch_array($result)) { $img = explode('.',$myrow[ilmage]); echo img src=\images/{$img[0]}a$img[1]\br / } What this will do is take your image split the image at the '.' then echo it with the

Re: [PHP] Adding a in try.jpg! SOLVED!!

2002-04-08 Thread Thomas Edison Jr.
Hi, Thanks.. actually that problem is solved, this is what i used : $myrow[ilmage] = eregi_replace('\.jpg$', 'a.jpg', $myrow[ilmage]); $myrow[ilmage] = eregi_replace('\.gif$', 'a.gif', $myrow[ilmage]); and it's now showing the small images with the a!! Thanks AGAIN! T. Edison Jr. ---

[PHP] difficulty in solving the unknown warning

2002-04-08 Thread erich
i am a php programmer whose learning expr. is about 2 months. whatever running script of php that written by other php programmer or me, i always see the warning below shown, why this occurs? how to avoid? Warning: Undefined variable: HTTP_VIA in g:\wwwroot\phpformmail\formmail.php on line

[PHP] Sendmail 8.10.2 headers

2002-04-08 Thread Anthony Rodriguez
As you may know, headers included in the 4th argument of PHP's mail() are sent to the outgoing mail server. What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat 6.2) in order for invalid e-mails be returned to my e-mail address rather than my hosting provider's default

[PHP] sessions and passing variables

2002-04-08 Thread rarmin
Is there a way to pass variables (objects) across the different sessions. I thought of sharing one object for all users that access my web site (it's an object that does some operations with files common to all users, like reading and writing). Any ideas? Tnx in advance. Armin -- PHP

Re: [PHP] Re: Copying Directory

2002-04-08 Thread Hiroshi Ayukawa
Sorry, It didn't work.Mine too. ALL of the files inside the deeoer directory come to top of the directory. I'll go on trying . Thanks. By the way , your script looks like Python script , dont'you? Hiroshi AYukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- PHP General

Re: [PHP] Sendmail 8.10.2 headers

2002-04-08 Thread Jason Wong
On Monday 08 April 2002 15:44, Anthony Rodriguez wrote: As you may know, headers included in the 4th argument of PHP's mail() are sent to the outgoing mail server. What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat 6.2) in order for invalid e-mails be returned to my

Re: [PHP] Re: Copying Directory

2002-04-08 Thread Jason Wong
On Monday 08 April 2002 17:04, Hiroshi Ayukawa wrote: Sorry, It didn't work.Mine too. ALL of the files inside the deeoer directory come to top of the directory. I'll go on trying . Thanks. By the way , your script looks like Python script , dont'you? Probably the easiest way is to some

Re: [PHP] Emulating a browser, parse cookies with PHP

2002-04-08 Thread heinisch
At 07.04.2002 16:22, you wrote: Hi, I'm trying to make a PHP script that would go in a website and log in. The website uses cookie to authenticate with its services. I made HTTP GET requests using fsockopen and parsed the results back into a variable. However I cannot find the cookie

Re: [PHP] Re: Copying Directory

2002-04-08 Thread Hiroshi Ayukawa
Thanks, But I can try it ,cause I like PHP and I want to write a code tahat runs anyware. Actually, we use both *nix windows. I will announce if I could madde it. Regards, Hiroshi http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- PHP General Mailing List

Re: [PHP] Workaround for no cron?

2002-04-08 Thread gaouzief
hi you should try this free service http://www.webcron.org it is really great (supports authentication, stores resulting file...) and free, the site is in french though ! Regards _ Hassan El Forkani http://WarmAfrica.com EveryOne's Africa

[PHP] Re: Newbie Question

2002-04-08 Thread Michael Virnstein
try this: html head titleSolid/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 table width=384 border=1 ?php $fp = fopen (album.dat,r); while ($data = fgetcsv ($fp, 1000, ;)) { if (isset($data[0])) {

php-general Digest 8 Apr 2002 09:42:24 -0000 Issue 1274

2002-04-08 Thread php-general-digest-help
php-general Digest 8 Apr 2002 09:42:24 - Issue 1274 Topics (messages 91954 through 92015): Re: Test for one bit set? 91954 by: bvr 91955 by: Lars Torben Wilson 91956 by: Charlie Killian Disabling bars on Browser 91957 by: David Johansen 91958 by:

[PHP] $php_self doesnt work in netscape like it should!

2002-04-08 Thread Maris Kalnins
Hi guys! $php_self and $php_referrer doesnt work the same in IE and Netscape When opening a page with IE they return for example http://localhost/directroy/index.php but in Netscape Navigator - http://localhost/directory/ Why? And how to solve this problem? Thanks -- PHP General Mailing

[PHP] Expire Session Date Older than Me!

2002-04-08 Thread Anatole
I'm having trouble with the Expire date - It's being set at sometime before I was born. Any idea on how to fix this? HTTP/1.1 200 OK Date: Mon, 08 Apr 2002 10:07:31 GMT Server: Apache/1.3.22 (Unix) PHP/4.1.2 X-Powered-By: PHP/4.1.2 Set-Cookie: sess=6fc0c08e2030124a8518aa5eeff034d3; path=/

[PHP] Question

2002-04-08 Thread Roman Duriancik
How to convert or discover from IPadress country visitors on my web ? roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: some kind of library loader

2002-04-08 Thread Arpad Tamas
Hi Eric (and others who might help), Actually I haven't tried the custom error handler for function or class definiton not found errors because I read in the manual that the processing is continued after the statement where the error raised. I also thought of a little hacking in php's source,

[PHP] Transfer Session Vars to different server

2002-04-08 Thread Chris
Hi, I have two servers with Apache PHP - carrying out different tasks. However, I have got a task that requires one application to use both servers. One of the units holds a bunch of session vars - which I would like to transfer to the other unit, when scripts on this second unit are called.

[PHP] SELECT + PARSE ERROR

2002-04-08 Thread Jérome Moisy
Hy, I try to do a SELECT but when I test my code I Have a parse error. If someone can explain to me why. Code: $db = mysql_connect(newsmanga_db);$req = "SELECT * FROM dvds WHERE nomdvd='".$nom."".$i"' "; /// PARSE ERROR IN THIS LINE$res=mysql_query($req, $db);while ($ligne =

[PHP] Re: Transfer Session Vars to different server

2002-04-08 Thread Markas
If you store your session vars in database, there will be no problem with retrieving sessions vars... You even can use native php4 functions for handling sessions, storing them in DB... Look in php manual for session_set_save_handler() function, or write your completely own code for db sessions.

Re: [PHP] SELECT + PARSE ERROR

2002-04-08 Thread Chris Kwasneski
At 02:23 PM 4/8/2002 +0200, you wrote: Hy, I try to do a SELECT but when I test my code I Have a parse error. If someone can explain to me why. Code: $db = mysql_connect(newsmanga_db); $req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE ERROR IN THIS LINE Your missing a '.' after

Re: [PHP] SELECT + PARSE ERROR

2002-04-08 Thread RIVES Sergio
Hi the error appears because of the comas erroned syntaxis. why don't u try something easire as that : $varalacon = $nom..$i; (i don't know if there is a space or not...in bold) $req = SELECT * FROM dvds WHERE nomdvd='$varalacon' ; Hope it helps SR Jérome Moisy a écrit : Hy, I try to do a

Re: [PHP] SELECT + PARSE ERROR

2002-04-08 Thread Nick Winfield
On Mon, 8 Apr 2002, [iso-8859-1] Jérome Moisy wrote: Hy, I try to do a SELECT but when I test my code I Have a parse error. If someone can explain to me why. Code: $db = mysql_connect(newsmanga_db); $req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE ERROR IN THIS LINE

[PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
Php works in general (phpinfo()). The gd-lib however will not work for some reason. I tried extension=libgd.so in php.ini without any result. Anyone familiar with this problem? /M Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question

2002-04-08 Thread heinisch
At 08.04.2002 13:00, you wrote: How to convert or discover from IPadress country visitors on my web ? roman You have to make a DNSLOOKUP If you have a linux box (server setup) you can use system(nslookup -timeout=3 -retry=1 .$value) where $value is the IP-Number. This gives you the real name

Re: [PHP] SELECT + PARSE ERROR

2002-04-08 Thread heinisch
At 08.04.2002 14:23, you wrote: Hy, I try to do a SELECT but when I test my code I Have a parse error. If someone can explain to me why. Code: $db = mysql_connect(newsmanga_db); $req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE ERROR IN THIS LINE Try this : $req = SELECT * FROM

Re: [PHP] SELECT + PARSE ERROR

2002-04-08 Thread Jérome Moisy
Thanks at All -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Transfer Session Vars to different server

2002-04-08 Thread heinisch
At 08.04.2002 13:12, you wrote: Hi, I have two servers with Apache PHP - carrying out different tasks. However, I have got a task that requires one application to use both servers. One of the units holds a bunch of session vars - which I would like to transfer to the other unit, when scripts

Re: [PHP] Question

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, Roman Duriancik wrote: How to convert or discover from IPadress country visitors on my web ? You need to use the 'whois' protocol. I am sure you can find sample code snippets around. First, look up the address at whois.arin.net. Then, if delegated to one of the regional

[PHP] Re: sessions and passing variables

2002-04-08 Thread Michael Virnstein
sure. if all users should have access to this instance of your object, then you could store the serialized object in a file, everyone has access to and unserialize it if needed.But don't forget to include your object-surcecode before unserializing the object, or you'll lose your methods. If users

Re: [PHP] Problems with libgd.so under linux

2002-04-08 Thread heinisch
At 08.04.2002 14:56, you wrote: Php works in general (phpinfo()). The gd-lib however will not work for some reason. I tried extension=libgd.so in php.ini without any result. Anyone familiar with this problem? /M Green Too few arguments ;-) Did you already compiled GD ? Did you compile php with

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
$myrow[ilmage] = eregi_replace((\.[^\.]+)$, a\\1, $myrow[ilmage]); and if ilmage isn't a constant use $myrow[ilmage]. Thomas Edison Jr. [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Thanks for your relies. There are a couple of problems. Firstly,

Re: [PHP] MAC file upload

2002-04-08 Thread Erik Price
On Saturday, April 6, 2002, at 11:44 AM, Shane McBride wrote: Hello, I am able to upload and download Macintosh files but they seem to lose their MIME type or extensions. I'm not sure what it is. I'm not a Mac dude. When you download the file It loses the file association. It's for a

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
but if $myrow[ilmage] = hallo.hmm.gif; your code won't work. so better: while ($myrow = mysql_fetch_array($result)) { $img = explode('.',$myrow[ilmage]); $img[count($img) - 1] .= a; echo img src=\images/.implode('.', $img).\br /; } Richard Baskett [EMAIL PROTECTED] schrieb im

Re: [PHP] Question

2002-04-08 Thread gaouzief
this class does just that: http://phpclasses.warmafrica.com/browse.html/package/514.html 08/04/2002 13:49:44, [EMAIL PROTECTED] a écrit: At 08.04.2002 13:00, you wrote: How to convert or discover from IPadress country visitors on my web ? roman You have to make a DNSLOOKUP If you have a

[PHP] what's the best way to do redirect within PHP

2002-04-08 Thread Wo Chang
Dear All, Another simple question: What is the best way to do redirect after a php file did some processing? Any helps would be greatly appreciated! --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding a in try.jpg! Problems!

2002-04-08 Thread Michael Virnstein
typo..this one's right :) while ($myrow = mysql_fetch_array($result)) { $img = explode('.',$myrow[ilmage]); $img[count($img) - 2] .= a; echo img src=\images/.implode('.', $img).\br /; } Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL

[PHP] php and html image tag...

2002-04-08 Thread Jas
Ok here is my problem, I have a piece of code that queries the database pulls the results of a table into an array, on another file the results of that array are used with a require function and then each variable is echoed to the screen where I need it, I have a piece of javascript to open a pop

Re: [PHP] what's the best way to do redirect within PHP

2002-04-08 Thread Jason Wong
On Monday 08 April 2002 22:00, Wo Chang wrote: Dear All, Another simple question: What is the best way to do redirect after a php file did some processing? Any helps would be greatly appreciated! Use header() to set a location. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

RE: [PHP] what's the best way to do redirect within PHP

2002-04-08 Thread Patrick Lynch
This is really simple: header(Location: .php); /Patrick www.optip.com -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: 08 April 2002 15:00 To: [EMAIL PROTECTED] Subject: [PHP] what's the best way to do redirect within PHP Dear All, Another simple question:

Re: [PHP] what's the best way to do redirect within PHP

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 04:00 PM, Wo Chang a écrit : What is the best way to do redirect after a php file did some processing? Function header() ??? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Directory check

2002-04-08 Thread Hiroshi Ayukawa
Does anyone know how to check a directory exiasts? Thanks in advance, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disabling bars on Browser

2002-04-08 Thread Erik Price
Bob/pickle, I disagree -- Justin French has contributed a large number of helpful posts to this list. Just the other day, he responded to my query for advice -- http://marc.theaimsgroup.com/?l=php- generalm=101779873317529w=2 It is foolish to look the gift horse of free coding advice in the

[PHP] site map function..

2002-04-08 Thread Kelly Meeks
I'm trying to write some code that will look at a table of records, and output a 'tree' of those records, based on a parent/child relationship betweent their respective record id numbers. Anyone written anything like this they would be willing to share? I'm up against a deadline, and I'm

Re: [PHP] MAC file upload

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 03:45 PM, Erik Price a écrit : When you download the file It loses the file association. It's for a company I do work for that uses a lot of .ai and .psd files. Hi ! Have you tried with : $filesize = filesize($your_file); header(Content-type: .$your_mime_type);

[PHP] Re: php and html image tag...

2002-04-08 Thread Michael Virnstein
Please post more code. Can't help any further in the moment. Jas [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok here is my problem, I have a piece of code that queries the database pulls the results of a table into an array, on another file the results

Re: [PHP] newbie configuration question

2002-04-08 Thread Erik Price
On Friday, April 5, 2002, at 10:12 PM, Eric Kilgore wrote: I'm a newbie to Linux and Apache, not so new to php itself. I'm using Red Hat 7.2. The RPM installs apache with php, etc. as part of the standard install but --without-mysql in the configuration. I've read quit a bit on how you

[PHP] Re: Directory check

2002-04-08 Thread Michael Virnstein
file_exists will perform a check if the file, no matter if it's a directory, a regular file or a symlink. if you want to know if it is a directory use is_dir($file) or refer to the php manualHiroshi Ayukawa [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: sessions and passing variables

2002-04-08 Thread rarmin
Michael Virnstein wrote: you also have to make sure, that only one user can access the file for writing at one time, or your data gets probably screwed. The easiest way would be storing the object not in a file but in a database, so you don't have to care about locking. Tnx for the help, and

[PHP] Re: php and html image tag...

2002-04-08 Thread Jas
Nevermind I got it fixed... I forgot to include a couple of fields from my database into my array. =). If you would like to use the code I am putting it here... ?php $table = cm_dev_ads; $dbh = mysql_connect('localhost','user_name','password') or die('Could not connect to database, please try

RE: [PHP] nl2br returns BR /? normality or a bug?

2002-04-08 Thread Brinkman, Theodore
For the record br/ (which would be the 'normal' xhtml style) is unrecognized (and therefor ignored) by Netscape 4.x. However, it recognizes and properly handles br /, which I'm sure is why it is output in that format. If anybody has seen br/ misbehave, try going back and testing with br /.

Re: [PHP] Directory check

2002-04-08 Thread Rénald CASAGRAUDE
Le lundi 8 avril 2002, à 04:15 PM, Hiroshi Ayukawa a écrit : Does anyone know how to check a directory exiasts? RTFM !! try this : if (file_exists($dir) is_dir($dir)) { echo $dir.' is a directory !'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Test for one bit set?

2002-04-08 Thread Brinkman, Theodore
Try a bitwise and (I think the operator is '')... ?php $bitMask = 16; $value1 = 24; $value2 = 36; ?$value1 has bit 5 set? ?php if($bitMask $value1) { //should get here echo 'true\r\n'; } else { echo 'false\r\n'; } ?$value2 has bit 5 set? ?php if($bitMask $value1) {

RE: [PHP] MAC file upload

2002-04-08 Thread Rance Hall
Shane, Eric is absolutely right, you are losing the resource fork of your mac binaries when you upload them. (If you don't know, on a Mac, the binary file has to parts, the data, and the association with an application (or resource) that created the file. This is done so that Mac file names

[PHP] Array elements missing

2002-04-08 Thread Joshua E Minnie
Can anyone tell me why when the first element in my array would disappear with the following code: ? //remove the unwanted item from the array for($i=0;$icount($stores);$i++) { $delete=0; //checking to see if it has been requested for delete foreach($HTTP_POST_VARS as $val) {

Re: [PHP] mod_php4

2002-04-08 Thread The Doctor
Here is what I get when I try to make a DSO with apache 2.0.35 and php 4.1.2: Script started on Sun Apr 7 13:39:30 2002 doctor.nl2k.ab.ca//usr/source/php-4.1.2$ make Making all in Zend Making all in main Making all in ext Making all in zlib Making all in ftp Making all in gd Making all in

[PHP] Appending url to file name...

2002-04-08 Thread Jas
Ok this is an unusual problem, at least to a newbie like myself... I am trying to develop a user form to select an image from a directory by use of a select box that once the item is selected it will put that selection into a db field and this part I have working fine, however now I will need to

[PHP] Re: what's the best way to do redirect within PHP

2002-04-08 Thread Wo Chang
Dear All, Thanks for all the response, they all work! --Wo - Original Message - From: Wo Chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 08, 2002 10:00 AM Subject: what's the best way to do redirect within PHP Dear All, Another simple question: What is the

[PHP] Adding Querystrings to links

2002-04-08 Thread mail
Hi all! I have a problem with the querystring.I want to add to every Link on my Homepage a querystring, but i should have the possibility to change some details in the Querystring. How should i solve this problem ? Example : http://domain.com/index.php?dest=12item=2 The variables ?dest= and

Re: [PHP] Re: php and html image tag...

2002-04-08 Thread JSheble
I don't know if anybody else sent you an email about this or not, but there's a much easier way to do what you're doing in this snippet of code... $record = mysql_query(SELECT wel_area, ad01, ad02, ad03, ad04, ad05, ad06, ad01_t, ad02_t, ad03_t, ad04_t, ad05_t, ad06_t FROM $table,$dbh);

Re: [PHP] Appending url to file name...

2002-04-08 Thread Erik Price
On Monday, April 8, 2002, at 11:09 AM, Jas wrote: Ok this is an unusual problem, at least to a newbie like myself... I am trying to develop a user form to select an image from a directory by use of a select box that once the item is selected it will put that selection into a db field

[PHP] Re: Directory check

2002-04-08 Thread Maxim Maletsky
try: if(is_dir($dir)) { echo 'directory was found'; } Yoroshiku, Maxim Maletsky PHPBeginner.com Hiroshi Ayukawa writes: Does anyone know how to check a directory exiasts? Thanks in advance, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

RE: [PHP] Adding Querystrings to links

2002-04-08 Thread Rance Hall
you want to try a code line like this print a href=\yourpagehere.phtml?dest=$line[index]item=$line[index2]\LinkName/a; it will only work of course if you are in the middle of a loop that processes the results of an appropriate select statement that pulls the needed values for your dest and

[PHP] Besy way to ban a user?

2002-04-08 Thread Jeff Lewis
We've used email ban and IP ban but there are easy ways around this as you all know. I am wondering if there is anything a little more hardcore to do as far as banning goes. I had read somewhere about grabbing a MAC address or something similar from a network card. Has anyone heard of this

[PHP] SSL needed for socket communication?

2002-04-08 Thread Erik Price
My Apache server is currently not configured to use SSL, and I do not have a certificate. There is a possibility that I will be creating a script to send POST data to another company's web service, and that company requires the connection to be via SSL. The logical way for me to do this

Re: [PHP] Appending url to file name...

2002-04-08 Thread Jas
So putting it into an UPDATE statement it would be something like this right? UPDATE CONCAT $table_name SET ('http://localhost/images') ad01=\$ad01\; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
[EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 08.04.2002 14:56, you wrote: Php works in general (phpinfo()). The gd-lib however will not work for some reason. I tried extension=libgd.so in php.ini without any result. Anyone familiar with this

RE: [PHP] difficulty in solving the unknown warning

2002-04-08 Thread Rick Emery
so what does line 111 look like? we can't read your mind... -Original Message- From: erich [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: [PHP] difficulty in solving the unknown warning i am a php programmer whose learning expr. is

[PHP] Custom Error Handling

2002-04-08 Thread Adam Voigt
Is there any reason the following code should not work? I define the error function, then tell PHP to use it, then call a function which doesn't exist (test), and it will print the error on screen that that function doesn't exist, but it won't alert me, so it's obviously not entering the

Re: [PHP] SSL needed for socket communication?

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, Erik Price wrote: My Apache server is currently not configured to use SSL, and I do not have a certificate. There is a possibility that I will be creating a script to send POST data to another company's web service, and that company requires the connection to be via

Re: [PHP] Besy way to ban a user?

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, Jeff Lewis wrote: We've used email ban and IP ban but there are easy ways around this as you all know. I am wondering if there is anything a little more hardcore to do as far as banning goes. I had read somewhere about grabbing a MAC address or something similar from a

Re: [PHP] Directory check

2002-04-08 Thread Jason Wong
On Monday 08 April 2002 22:15, Hiroshi Ayukawa wrote: Does anyone know how to check a directory exiasts? Thanks in advance, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top Manual Filesystem functions -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

Re: [PHP] Appending url to file name...

2002-04-08 Thread Erik Price
On Monday, April 8, 2002, at 11:35 AM, Jas wrote: So putting it into an UPDATE statement it would be something like this right? UPDATE CONCAT $table_name SET ('http://localhost/images') ad01=\$ad01\; No, like this: The table is named test_table The column you want to add this to is

[PHP] how to check if e- mail sending did succeed?

2002-04-08 Thread andy
Hi there, I use the function mail to e-mail . This workes fine with most adresses. Unfortunatelly there is one e-mail provider (gmx.de) which does not get anny of those e-mails. Workes fine with all other services. I doubble checked it with 2 other gmx accounts. How can I find out what went

Re: [PHP] how to check if e- mail sending did succeed?

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, andy wrote: I use the function mail to e-mail . This workes fine with most adresses. Unfortunatelly there is one e-mail provider (gmx.de) which does not get anny of those e-mails. Workes fine with all other services. I doubble checked it with 2 other gmx accounts. How

Re: [PHP] Adding Querystrings to links

2002-04-08 Thread Erik Price
On Monday, April 8, 2002, at 11:12 AM, [EMAIL PROTECTED] wrote: I have a problem with the querystring.I want to add to every Link on my Homepage a querystring, but i should have the possibility to change some details in the Querystring. How should i solve this problem ? Example :

Re: [PHP] Appending url to file name...

2002-04-08 Thread Jas
Actually, I tried it a different way and I got the results I needed... this is what I did, $file_var = http://www.bignickel.net/full_ad/;; $db_name = db_name; $table_name = table_name; $connection = mysql_connect(localhost, user_name, password) or die (Could not connect to database. Please try

Re: [PHP] Appending url to file name...

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, Jas wrote: $sql = UPDATE $table_name SET ad01_t=\$file_var$files\; Is this really what you wanted? It would set ad01_t to the same thing for every single row in your table. If that is what you wanted, then I think your database design is a little weird. miguel -- PHP

RE: [PHP] Question

2002-04-08 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Rather than executing a system utility you can just use the built in PHP functions. gethostbyaddr() - resolves an IP address into a hostname gethostbyname() - resolves hostname into an IP address More information is available in the PHP manual, you can access it online at

[PHP] Re: Adding Querystrings to links

2002-04-08 Thread Jordan K. Martin
Chris, What really matters is where the variables are coming from. print (http://domain.com/index.php?dest=; . $var1 . item= . $var2 .br\n); that's how I usually do it. I'm assuming that both dest and item are variables on the referring page. Reply and let me know if this is what you're

RE: [PHP] Question

2002-04-08 Thread Miguel Cruz
How does that tell you where something is? Quick quiz, some obvious high-profile examples off the top of my head: netvigator.com ntlworld.com bigpond.net chello.com unicc.org miguel On Mon, 8 Apr 2002, SHEETS,JASON (Non-HP-Boise,ex1) wrote: Rather than executing a system

Re: [PHP] Phone number validation

2002-04-08 Thread Jim Lucas [php]
try this preg_match(/[a-zA-Z]+/i, $str); and if you want to go the other route. do this preg_match(/[^0-9\(\)\-\.\ ]+/i, $str); this will return true if it is anything other then what is listed. numbers 0-9 ( ) - . Jim Lucas - Original Message - From: Gary [EMAIL PROTECTED] To:

Re: [PHP] counter for HIGH traffic site

2002-04-08 Thread Jim Lucas [php]
as long as you are only inserting information into the mysql db on each page load, then you shouldn't have a problem. make sure you keep you indecies down to a minimum. Jim Lucas - Original Message - From: Craig Westerman [EMAIL PROTECTED] To: php-general-list [EMAIL PROTECTED] Sent:

[PHP] Object Confusion

2002-04-08 Thread Robert J. Cissell
If object of type A ($A) contains a variable $B which is an object of type B, how does a function within $B reference another variable in $A? Thanks.

[PHP] Assigning unique form names...

2002-04-08 Thread Jas
Here is what I need some information about, the script below opens a directory on the server, reads the files and places them into select boxes within a form, now I have this echoed multiple times on the page like so...? echo $file_list; ? Now I have tried to assign a form name based on the

RE: [PHP] Assigning unique form names...

2002-04-08 Thread Kevin Stone
Try select name=files[] The square brackets will allow you to capture selections from multiple lists in an indexed array, $files. Hope that does what you need. -Kevin The square brackets will allow you to capture the variable $file_name -Original Message- From: Jas [mailto:[EMAIL

[PHP] Upload alert

2002-04-08 Thread Rodolfo Silva
Hi! I need a php script to alert me (with a pop up window or something like that) when a certain web page is modified. Is it possible? Where can I find that? Tks in advance, Rodolfo Silva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >