[PHP] newbie

2003-03-11 Thread Robin
Hello Please could somebody point me in the right direction for learning about PHP? Any links would be greatfully appreciated! Thanks Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Maths on variables - please help

2003-03-11 Thread Hugh Danaher
simply: $var1=99; $var2=0; $result=$var1*$var2; multiplication by zero is ok if ($var2!=0) { //division by zero is bad != means not equal $result=$var1/$var2; } use brackets in complex equations $result=$var1*(1+$var2); hugh - Original Message - From: Adriaan Nel [EMAIL PROTECTED]

RE: [PHP] newbie[Scanned]

2003-03-11 Thread Michael Egan
Robin, There really are a huge amount of resources on the web for this. The PHP online manual itself is good for reference but for step by step guides you might want something different. I came across a fairly comprehensive guide on developing PHP based databases at:

[PHP] php/apache timeout

2003-03-11 Thread Hilmi Hilmiev
Hi, We are using Apache/PHP and using ORACLE as the database. When I submit the page with hugs database when the server side script (PHP) running I am getting an error Page not found. But on the background it is adding records to the database. Though I modified all the configuration in

Re: [PHP] newbie: contents will not output

2003-03-11 Thread Ernest E Vogelsinger
At 04:22 11.03.2003, Anthony Ritter said: [snip] I'm trying to test the following script to display the contents of the following URL but it will not output. Any advice will be greatly appreciated. Thank you. Tony Ritter

[PHP] mysql future

2003-03-11 Thread Reymond
Is mysql that have to be done..??, like CONNECT BY PRIOR ... to search hierarchy structures..??? sorry out of topic...?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] newbie

2003-03-11 Thread Awlad Hussain
http://www.phpfreaks.com http://www.phpbilder.com Best way to learn is to start writting small program like guestbook, if you get stuck just ask :) Use the PHP manual too... -awlad - Original Message - From: Robin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003

[PHP] pop top off a multi dimensional array

2003-03-11 Thread Diana Castillo
If I have a multi dimension array like this: Array ( [provider] = Array ( [0] = 3 [1] = 2 [2] = 4 [3] = 1 ) [priority] = Array ( [0] = 1 [1] = 2 [2] = 3 [3] = 4 ) how do I take off the top elements so I will only have three providers and three priorities left? If I do array_shift, it takes off all

[PHP] non-blocking sockets + newbie compile question

2003-03-11 Thread Joshua Alexander
1) socket_set_blocking()... what the devil's up with this? *I* get socket_set_blocking(): supplied resource is not a valid stream resource, which is obviously a lie, since I can connect to the server program and socket_recv and socket_send both work. I'm using PHP 4.3.1 (cgi) 2) I figured I'd

[PHP] Re: pop top off a multi dimensional array

2003-03-11 Thread Diana Castillo
I found the answer: $w = array_shift ($_SESSION[providerarray][provider]); $w = array_shift ($_SESSION[providerarray][priority]); Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I have a multi dimension array like this: Array ( [provider] = Array ( [0] = 3 [1] = 2

[PHP] Message Board Question

2003-03-11 Thread conbud
Hi, this is kind of a complex question, Im making a message board, now I dont want list, lets say, all 25 messages on the same page. I would like to have - previous 1 2 3 next - type of links and only list 5 messages per page and every time a user clicks the next, previous, or one of the page

[PHP] Parsing my big file - I'm back

2003-03-11 Thread George Pitcher
Hi all, I asked the question a couple of weeks ago and started off some kind of disagreement. I don't want to spark things off again, so if anyone wants to reply, fine - if not, fine too. The program,mers here have had a go with Perl and got halfway before other work pressures have put this on

[PHP] reversing attribute in array of objects

2003-03-11 Thread neko
I have a bit of a good one for you guys: I have an array of objects which have an attribute $level (I use $obj-get/setLevel() to access it). Now, this array consists of these objects with $level in descending order, and the same $level int can be set to multiple objects (in order), eg:

Re: [PHP] session

2003-03-11 Thread Petre Agenbag
Well, I guess it's all about the type of application you're writing and the kind of resources you have at your disposal... Making garbage collection 100% will basically cause the system to go through the steps of determining what should be disposed and what not, and that would be determined by the

Re: [PHP] Message Board Question

2003-03-11 Thread W. Enserink
maybe use mysql to retrieve only 5 records. $query=select * from table limit [1,5]; //search in the mysql manual to be sure! this limit thing you can make variable $limit_thing_max=5; $limit_thing_min=$pagenumber*$limit_thing_max; $query = select * from table limit

[PHP] php/GD/t1lib problem

2003-03-11 Thread Victor Spång Arthursson
God morning! I'm creating a jpg in al folder locally on my webserver. There is no problems with this at all. But now I'm about to make some updates and have therefore made a copy of the folder just next to the original which is called something like foldercopy. But in this identical folder

[PHP] problems during xslt transformation

2003-03-11 Thread Dominik Benninger
hi list I've got a problem during a xslt-transformation. I alway get this error: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /var/www/mdb/testxslt.php on line 11. as far as I catch the problem, one of my xml or xsl file is not well-formed. but if I

Re: [PHP] Parsing my big file - I'm back

2003-03-11 Thread Mincu Alexandru
I would like to help you bu I whant to see at least 2 records from your file ... i didn't understand the format very well.. On Tue, 2003-03-11 at 12:29, George Pitcher wrote: Hi all, I asked the question a couple of weeks ago and started off some kind of disagreement. I don't want to

RE: [PHP] md5 encrypt problem

2003-03-11 Thread John W. Holmes
Having a wee bit o' trouble with a simple md5 script: for ($x=1 ; $x 62 ; $x++) { $mypass = sports . $x; $mypass = md5($mypass); dbConnect(UPDATE user_login SET password = '$mypass' WHERE school_id = $x); } For some reason, when I attempt to login with my

Re: [PHP] php/apache timeout

2003-03-11 Thread Chris Hayes
At 18:40 11-3-03, you wrote: We are using Apache/PHP and using ORACLE as the database. When I submit the page with hugs database when the server side script (PHP) running I am getting an error Page not found. But on the background it is adding records to the database. Though I modified all the

RE: [PHP] php/apache timeout

2003-03-11 Thread M.A.Bond
HI, Yes I was having this problem, it's probably not php timing out, but your browser. To stop this move the execution of your sql. I assume you do something like this: ?php $sql = insert...; Execute SQL; ? HTML ... ... /HTML You need to move this as follows: HTML HEAD /HEAD BODY ?php

Re: [PHP] pop top off a multi dimensional array

2003-03-11 Thread Ernest E Vogelsinger
At 10:30 11.03.2003, Diana Castillo said: [snip] If I have a multi dimension array like this: Array ( [provider] = Array ( [0] = 3 [1] = 2 [2] = 4 [3] = 1 ) [priority] = Array ( [0] = 1 [1] = 2 [2] = 3 [3] = 4 ) how do I take off the top elements so I will

[PHP] A small problem

2003-03-11 Thread Alejandro
Hi all in the PHP list. I'm trying to deal with Regular Expressions, but somehow it is getting more difficult. I´m trying to do the folowing: Read a text and get all of the PHP code out of it, highlight it and then print all in nice HTML. I'm using this to get the PHP code:

Re: [PHP] A small problem

2003-03-11 Thread Justin French
Can you pick a decent subject like help with regular expressions rather than something pointless and generic like a small problem... a lot of readers will skip over generic subject lines, and you also miss out on attracting the attention of those who regexps well. Justin -- PHP General Mailing

[PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Niels Andersen
I don't mean any disrespect, but I just want to check that the basics are OK, sometimes I forget stuff like that myself: Did you click a link to go to your test page? Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] For some reason my webhost doesn't allow the HTTP_REFERER

Re: [PHP] session

2003-03-11 Thread Justin French
on 11/03/03 6:47 PM, Shaun van den Berg ([EMAIL PROTECTED]) wrote: Hi, What should the probability of your garbadge collector be ? is a 100% bad , I've never seen much more than 20% on a production server -- most at 1%. If you make it 100%, then PHP will do a garbage clean out on EVERY

[PHP] Help with ereg()

2003-03-11 Thread Alejandro
Hi all. I'm trying to deal with Regular Expressions, but somehow it is getting more difficult. I´m trying to do the folowing: Read a text and get all of the PHP code out of it, highlight it and then print all in nice HTML. I'm using this to get the PHP code: ereg(\?.*\?,$Text,$PHP_code); It

Re: [PHP] A small problem

2003-03-11 Thread Chris Hayes
At 13:56 11-3-03, you wrote: Can you pick a decent subject like help with regular expressions rather than something pointless and generic like a small problem... a lot of readers will skip over generic subject lines, and you also miss out on attracting the attention of those who regexps well. a

Re: [PHP] A small problem

2003-03-11 Thread Chris Hayes
Oo. i matched all html tags too. make that: preg_match_all(|\?[^]+\?|,$Text,$PHP_code); At 14:06 11-3-03, you wrote: At 13:56 11-3-03, you wrote: Can you pick a decent subject like help with regular expressions rather than something pointless and generic like a small problem... a lot of readers

RE: [PHP] Help with ereg()

2003-03-11 Thread Niklas Lampén
Use preg_match_all(); Something like preg_match_all(/(\(\?.*\?)/im, $Text, $Array_PHP_Code, PREG_PATTERN_ORDER); should do it. It might need some work, but you'll get it. :) Niklas -Original Message- From: Alejandro [mailto:[EMAIL PROTECTED] Sent: 11. maaliskuuta 2003 14:59 To:

[PHP] Reading files over SSL using fopen or fsockopen

2003-03-11 Thread Dan Mullen
Hi, I am trying to read the contents of a file using fopen or fsockopen over a secure SSL connection. I have a script working fine over a non-SSL connection, but it just won't work over SSL. I have tried using fsockopen with the port set to 443, (I have checked this and the file I am trying to

[PHP] ok now my sessions are *not* timing out

2003-03-11 Thread freaky deaky
before my problem was that my sessions were being terminated spontaneously. it looks like i've managed to fix that problem - so far i haven't been randomly logged off my application. the problem is, according to my php.ini settings, my session should have been terminated after 2 hours, it's

[PHP] I need some help

2003-03-11 Thread Novell
I have read many documents on how to install PHP4.3.1 on apache. I have installed PHP before but for some unknown reason I have been unsucessfull this time. When I run apachectl start on my FreeBSD server it tells that It there is an error or misspelling in line 206, which pions out to the

Re: [PHP] md5 encrypt problem

2003-03-11 Thread Noah
Exactly right, John. Sorry to clutter the forum -- it was a varchar(30)! Thanks, --Noah - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: 'CF High' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:06 AM Subject: RE: [PHP] md5 encrypt problem

[PHP] Script that writes e-mail (well, is supposed to)

2003-03-11 Thread Julie Williams
Hi everyone, I have written the list about this problem before and have yet to find a solution. After several hours of debugging and research through list archives, my husband and I had concluded that the errors were due to the version of PHP being used by the server, which was very outdated.

Re: [PHP] Script that writes e-mail (well, is supposed to)

2003-03-11 Thread Chris Hayes
I think your server is ok. Your if-else structure was a bit hard to oversee this way. I had to indent your code to see your logic. But maybe the tabs got lost in the email. I think readability would improve if you replaced - IF (isset($_POST['custemail']))

[PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
Hi All, I'm using the following code to try to download images automatically from a directory: header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg($im,'',85); imagedestroy($im); I copied this code from PHP.net. However, when I run the above code, it doesn't

Re: [PHP] newbie: contents will not output

2003-03-11 Thread Anthony Ritter
Hugh, That script works fine. Thank you. What I am trying to achieve is to pull a .jpeg from a remote URL and then resize and/or crop it after it is placed in a variable. Your script is able to open and read the original file for output. In the following script, I have the variable $contents

[PHP] displaying data base information in a website

2003-03-11 Thread David E.S.V.
Hello folks I am learning php and would like to know how to display the information I already have in a mysql database in a homepage... is there is any script, I would like to know it. thanks David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] seperate streetname from number

2003-03-11 Thread André Sannerholt
Hi everyone! I wondered how to sepearate string variables that contain streetnames and numbers: If for example $variable=Hauptstraße 15; $variable_string[0] should be Hauptstraße $variable_string[1] should be 15 So I need a function that recognizes a number and explodes the variable at that

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread James Holden
READ the manual. The snippet is correct but if you want to take advantage of the saving features of this function follow the function information at the top of the page. Jumping straight to the user snippets is a mistake as they are user contributed and may not document the whole function.

[PHP] Error message after upload with IE, not with Netscape

2003-03-11 Thread Kusel Reinhard
Hi all, I wrote a form for the upload of a file and some explaining text. The form is evaluated by a php-script upload.php (see below) and the data (text and file name) are stored in a MySQL-database on a Unix server. The script also shows a thanks-message. The login is controlled by means of

[PHP] Search all data in database

2003-03-11 Thread Mike Tuller
I am wanting to add a simple search field where you enter your search and it searches the whole database, not just one column. It would be easy for one column ( SELECT * FROM clients WHERE first_name = '$first_name';) but how do I search the whole table? Do I have to search each column one by

[PHP] Error Opening acid_main.php page

2003-03-11 Thread jsauer
Hello, This problem is probably an obvious configuration I am missing, but I am a bit new to this and I haven't found the answer yet. I have Apache on a Sun Ultra 1 running Solaris 8. When I try to bring up the acid_main.php page, my browser always comes back and asks Open using an application

Re: [PHP] Error Opening acid_main.php page

2003-03-11 Thread R'twick Niceorgaw
in your httpd.conf or whatever apache configuration file you are using, search for AddType application/x-httpd-php .php If its not there, add it and restart apache. HTH R'twick - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 11:59

Re: [PHP] Reading files over SSL using fopen or fsockopen

2003-03-11 Thread Ernest E Vogelsinger
At 14:35 11.03.2003, Dan Mullen said: [snip] I am trying to read the contents of a file using fopen or fsockopen over a secure SSL connection. I have a script working fine over a non-SSL connection, but it just won't work over SSL. I have tried using

Re: [PHP] ok now my sessions are *not* timing out

2003-03-11 Thread Ernest E Vogelsinger
At 14:38 11.03.2003, freaky deaky said: [snip] the js looks like: snip script language=JavaScript !-- function timeout_2MinuteAlert() {if(confirm('Warning: You are about to time out. As a security measure, we log you out after 20 minutes of inactivity.

Fwd: Re: [PHP] displaying data base information in a website

2003-03-11 Thread Chris Hayes
I am learning php and would like to know how to display the information I already have in a mysql database in a homepage... is there is any script, I would like to know it. There are excellent tutorials online, to get started with mysql and php, and for a beginners book I can recommend the PHP4

Fwd: Re: [PHP] Search all data in database

2003-03-11 Thread Chris Hayes
Date: Tue, 11 Mar 2003 18:18:37 +0100 To: Mike Tuller [EMAIL PROTECTED] From: Chris Hayes [EMAIL PROTECTED] Subject: Re: [PHP] Search all data in database At 17:51 11-3-03, you wrote: I am wanting to add a simple search field where you enter your search and it searches the whole database, not

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Stephen
Yes, and I tried going by just typing the URL in the address bar. Either way, the HTTP_REFERER variable should have atleast appeared in the print_r() function I ran. Thanks, Stephen Craton http://www.melchior.us - Original Message - From: Niels Andersen [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] seperate streetname from number

2003-03-11 Thread Ernest E Vogelsinger
At 17:17 11.03.2003, André Sannerholt said: [snip] If for example $variable=Hauptstraße 15; $variable_string[0] should be Hauptstraße $variable_string[1] should be 15 So I need a function that recognizes a number and explodes the variable at that very

[PHP] Re:[PHP] Capitalising Personal Names

2003-03-11 Thread Geoff Caplan
Hi folks, I have now hacked out a little name module on the lines discussed. The aim is to capitalise names which user has entered in all upper or all lower case. It would be useful in situations such as an e-commerce checkout where ease of use is more important than accuracy and you don't want

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Mat Harris
try using (i think) a content-disposition:attachement header i am not in front of my machine so that will just have to be a rough guide, sorry On Tue, Mar 11, 2003 at 10:40:33 -0600, Doug Coning wrote: Hi All, I'm using the following code to try to download images automatically from a

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:40 11.03.2003, Doug Coning said: [snip] header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg($im,'',85); imagedestroy($im); I copied this code from PHP.net. However, when I run the above code, it doesn't download

[PHP] phorm (PHPMail) script setup problem...

2003-03-11 Thread Dan Sabo
Hi, This is a repost, I posted it saturday and not many people were on list so I'll try once more. I'm setting up a freeware script called Phorm, it was previously called PHPMail. I got it from http://www.phorm.com/ Anyone here have experience with this script? For some reason I'm getting

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:47 11.03.2003, James Holden said: [snip] READ the manual. The snippet is correct but if you want to take advantage of the saving features of this function follow the function information at the top of the page. Jumping straight to the user snippets

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread adrian [EMAIL PROTECTED]
try changing headers sent e.g header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=001_SM77GR.jpg); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg($im,'',85); imagedestroy($im); - Original Message - From: Doug Coning [EMAIL PROTECTED]

[PHP] Re: seperate streetname from number

2003-03-11 Thread Paul Chvostek
On Tue, Mar 11, 2003 at 05:17:52PM +0100, André Sannerholt wrote: Hi everyone! Hi André. I wondered how to sepearate string variables that contain streetnames and numbers: If for example $variable=Hauptstraße 15; $variable_string[0] should be Hauptstraße $variable_string[1] should be

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Paul Chvostek
Niels was right on the money. If you just typed the URL in the address bar, then HTTP_REFERER will not be set. For that variable to be set, you must visit the URL as a result of clicking a link on another page. p On Tue, Mar 11, 2003 at 12:27:15PM -0500, Stephen wrote: Yes, and I tried

[PHP] need help with parsing form input ...

2003-03-11 Thread Kenn Murrah
Greetings. I'm out of my league here, not knowing enough about regular expressions yet to do this, so I desperately need someone's help ... I need to parse form input to eliminate unwanted characters (punctuation, mostly) ... for instance, if the web site visitor types smith,susan--33 into the

[PHP] Re: Search all data in database

2003-03-11 Thread Dan Phiffer
If you're using MySQL as your database system, you may want to look into full-text search as well as the LIKE keyword. http://www.mysql.com/doc/en/Fulltext_Search.html http://www.mysql.com/doc/en/String_comparison_functions.html HTH, -Dan Mike Tuller [EMAIL PROTECTED] wrote in message

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Joel Colombo
function make_alphanum($string_val) { return eregi_replace([^[:alnum:]], , $string_val); } strips everything except ALPHA and NUM Chars Joel Kenn Murrah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings. I'm out of my league here, not knowing enough about regular

[PHP] Re: Message Board Question

2003-03-11 Thread David Eisenhart
This is a good article on pagination: http://www.phpfreaks.com/tutorials/43/0.php David Eisenhart Conbud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, this is kind of a complex question, Im making a message board, now I dont want list, lets say, all 25 messages on the same

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Kenn Murrah
Thanks ... one more thing: is there a way to modify this to allow a period (dot) to included, as well as the alha and num characters? once again, thanks. function make_alphanum($string_val) { return eregi_replace([^[:alnum:]], , $string_val); } strips everything except ALPHA and NUM

[PHP] Re: need help with parsing form input ...

2003-03-11 Thread Bobby Patel
eregi_replace([^[:alnum:].], , $string_val); notice the period after the first closing brace. Kenn Murrah [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks ... one more thing: is there a way to modify this to allow a period (dot) to included, as well as the alha and num

RE: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-11 Thread Poon, Kelvin (Infomart)
Thanks, but what can FreeTDS do? So it can connect to my AIX server and retrieve that text file out? Kelvin -Original Message- From: Frank M. Kromann [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:35 AM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP]

RE: [PHP] PERL/PHP, MSSQL, Unix AIX

2003-03-11 Thread Adam Voigt
FreeTDS allows you to connecto your MSSQL server from PHP under unix/linux. On Tue, 2003-03-11 at 14:05, Poon, Kelvin (Infomart) wrote: Thanks, but what can FreeTDS do? So it can connect to my AIX server and retrieve that text file out?

[PHP] Re: reversing attribute in array of objects

2003-03-11 Thread David Eisenhart
if I've understood you correctly how about something like: $valArr = array(); for($i=0;$icount($objArr);$i++){ array_push($valArr, $objArr[$i]-level); } $valArr = array_reverse($valArr); for($i=0;$icount($objArr);$i++){ $objArr[$i]-level = $valArr[$i]; } David Eisenhart Neko [EMAIL

[PHP] Looking for partner for credit cards

2003-03-11 Thread Jan Bro
Hi, I'm sure lot's of you have done their shop with PHP in the US. Could anybody give me a tip on a good partner that fits into a shopping site? I've to overwork a shop, which cooperates with paypal. They require registration of the credit card user, which is absolutely not acceptable. The shop is

[PHP] Re: seperate streetname from number

2003-03-11 Thread chris
On Tue, 11 Mar 2003 17:17:52 +0100, André Sannerholt [EMAIL PROTECTED] wrote: Hi everyone! I wondered how to sepearate string variables that contain streetnames and numbers: If for example $variable=Hauptstraße 15; $variable_string[0] should be Hauptstraße $variable_string[1] should be 15 So I

Re: [PHP] Forms Session variables

2003-03-11 Thread Ashley M. Kirchner
Guru Geek wrote: perhaps javascript? let me know if you need further help! JavaScript can be turned off. -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] .

Re: [PHP] pop-up problem

2003-03-11 Thread -{ Rene Brehmer }-
On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote about Re: [PHP] pop-up problem what the universal translator turned into this: I would do a href=foo.php target=Foo onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click

RE: [PHP] Looking for partner for credit cards

2003-03-11 Thread Michael Roger C. Bianan
check out http://www.esellerate.net/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 11:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Looking for partner for credit cards Hi, I'm sure lot's of you have done their shop with PHP in the US.

[PHP] Adding dates

2003-03-11 Thread Liam Gibbs
Does anyone know a link to find the recent discussion on this list about adding dates in PHP? I can't seem to find it in the archives, and the simple act of adding one week to a date seems to be a mindblowing headache using PHP mktime() and date().

Re: [PHP] Adding dates

2003-03-11 Thread Sebastian
http://www.php.net/manual/en/function.strtotime.php warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 3:24 PM Subject: [PHP] Adding dates Does

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Stephen
I think that solves all my problems then. I was doing a meta redirect. Could that be causing the problem? How else could I overcome this problem? I'm trying to make a good anti leech system. Thanks, Stephen Craton http://www.melchior.us - Original Message - From: Paul Chvostek [EMAIL

Re: [PHP] pop-up problem

2003-03-11 Thread Ernest E Vogelsinger
At 21:02 11.03.2003, -{ Rene Brehmer }- said: [snip] On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote about Re: [PHP] pop-up problem what the universal translator turned into this: I would do a href=foo.php target=Foo

[PHP] Little Problem :)

2003-03-11 Thread David Soler
Hello, Perhaps my question don't fit on a php mailing list and perhaps do it better in a html mailing list, but sure there are people here who knows how to solve my little problem: I have made a little web (1) page using php where the users can write their messages in a form action=add.php.

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
Thanks to everyone for their help. The code below worked great! Thanks, Doug Coning - Original Message - From: adrian [EMAIL PROTECTED] [EMAIL PROTECTED] To: Doug Coning [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 11:57 AM Subject: Re: [PHP] imagejpeg and

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Stephen
The site I'm having problems with is hosted elsewhere, not here locally. The site is at http://filecenter.xfernet.com. Thanks, Stephen Craton http://www.melchior.us - Original Message - From: Niels Andersen [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003

WG: [PHP] Looking for partner for credit cards

2003-03-11 Thread Jan Bro
thx folks, I'll check them all out Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with ereg()

2003-03-11 Thread fLIPIS
¡¡¡ Got it !! It even matches the linebreaks, so it can color multi-line code. Look at this sample: - TEXT TO USE FOR SEARCHING PATTERNS -- ? phpinfo(); ? ? echo PHP IS A GREAT PROGRAMMING LANGUAGE; ? ? // :-)

Re: [PHP] Little Problem :)

2003-03-11 Thread CPT John W. Holmes
[snip] The web Page (1) uses a TEXTAREA to permit the users write their things. If one user writes something like and the sentence has 200 characters 'a' without any br or enter '\n' then in web page (2) the table becomes too fat (like table with=2000, for example). [snip] Use

[PHP] SOAP

2003-03-11 Thread Darren Young
Is there any way to act as a SOAP client with PHP other than with pear? Thx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
At 21:32 11.03.2003, David Soler said: [snip] user writes: a in the web must appear something like: table width || aa aa aa aa [snip] You can

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
At 22:07 11.03.2003, CPT John W. Holmes said: [snip] Use wordwrap() [snip] Hmm -one never stops learning I believe - I was missing this piece since :) There's a bit of a difference between wordwarp() and my approach

Re: [PHP] Adding dates

2003-03-11 Thread Liam Gibbs
http://www.php.net/manual/en/function.strtotime.php Thank you, Sebastian. I never even took a look at this function before. This was a complete lifesaver! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little Problem :)

2003-03-11 Thread David Soler
On Mar/11/2003, CPT John W. Holmes wrote: Use wordwrap() Thx John, Warren and Clint. This was just what I was looking for :). I haven't seen the string functions in the manual :\. My fault! Be Happy! ++ __ __ (, /

[PHP] Re: SOAP

2003-03-11 Thread Alexandru COSTIN
Hello, There is a way, but you have to use our free platform Krysalis to do this this. Read ftp://www.interakt.ro/pub/Krysalis/Professional%20web%20services%20with%20Kr ysalis.pdf for more details (Creating web services with Krysalis - WROX online chapter in Professional PHP web services) also

Re: [PHP] Little Problem :)

2003-03-11 Thread CPT John W. Holmes
You can use a regular expression for this task. This is what I use for my CMS routines: function make_maxlen($string, $maxlen) { $re = '/(.*?)([^\s]{' . $maxlen . ',})(.*)/'; $out = null; while (preg_match($re, $string,

[PHP] Re: Content Management Systems

2003-03-11 Thread Alexandru COSTIN
Hey, We have multiple products for CMS creation: You should check NeXTensio and ImpAKT http://www.interakt.ro/products/ We also have tutorials for NeXTensio CMS:http://www.interakt.ro/index.php?page=artid=1 Alexandru -- Alexandru COSTIN Chief Operating Officer

[PHP] Shipment Tracking/UPS

2003-03-11 Thread Sysadmin
Ok, here's what I've got and it's driving me insane. What I want to do is take a tracking number and grab the tracking data from the UPS web site. I have a couple of questions though First of all, does anyone know if this is against UPS' TOS? I read it but I didn't really see anything,

[PHP] Sockets and Header data

2003-03-11 Thread Todd Cary
Ever since PHP 3, I have been using Sockets to pass GET and POST information. Yes, now that there is the caching ability, I no longer need to do it that way, however it has never failed me and since I deal with some high visibility applications, I am reluctant to change. With my experience

[PHP] mysql and php

2003-03-11 Thread Joseph Bannon
How can I have php give me all the data in a table as I would using the prompt in mysql? Joseph __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: tricky exec problem

2003-03-11 Thread fLIPIS
Daniel [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] hi guys i am having a problem getting certain command line output bak to php i am using the time binary to show the ammount of time it takes for the php script to be compiled using the command line php although i am not

Re: [PHP] mysql and php

2003-03-11 Thread David E.S.V.
great tutorial to do what you want: http://www.freewebmasterhelp.com/tutorials/phpmysql/4 regards, David. On Tue, 11 Mar 2003, Joseph Bannon wrote: How can I have php give me all the data in a table as I would using the prompt in mysql? Joseph

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Paul Chvostek
Check out http://www.it.ca/software/noleech-light It can still be circumvented by a sophisticated leech, since the REFERER field is supplied by the client, but I've got another one I wrote which gets used in conjunction with another script to dynamically build references to files that expire

[PHP] image and text from remote URL

2003-03-11 Thread Anthony Ritter
There is a photograph named bar.jpg in a remote URL called http://www.foo.com The photograph is about 640 x 480 in size. The following script allows me to open and read the file. In addition, I have a file named data.jpg in my web folder. I want to write the bar.jpg into the data.jpg file and

Re: [PHP] Little Problem :)

2003-03-11 Thread Justin French
PLEASE use a descriptive heading, rather than something generic. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help with parsing form input ...

2003-03-11 Thread Justin French
Space at the beginning or end of a string can be removed with trim(). In order for someone to write you a regexp, you need to change your question to the following: I need to ensure a string only has the following characters in it: A-Z a-z 0-9 Can someone please help me write a regexp which

  1   2   >