Re: [PHP] help with insert into table to mysql

2003-03-11 Thread Hugh Danaher
some obvious errors: $submiited on =date(1y-m-d'); // typo on submittedon and the date format seems off, maybe you're looking for date('y-m-d') . $query="insert into articles" (date,submitted,status,title,lead,body,submitted by) // if the field name is submitted by then you nee

[PHP] Threading

2003-03-11 Thread Kris
I want to be able to thread objects .I'm not really sure at all where to start. I have an example php script sleepFor(10); $b->sleepFor(5); $c->sleepFor(1); class sleeper { function sleepFor($num) { sleep($num); echo "sorry I was a sleep for $num \r\n"; } } ?> I want so object $c would

Re: [PHP] image and text from remote URL

2003-03-11 Thread Jason Wong
On Wednesday 12 March 2003 08:06, Anthony Ritter wrote: [snip] > However, I cannot add a line of copy below the photo like: > print ("It is "); > print (date("l F j, Y")); > ?> > > Only the photo shows up and not the text. Your script has already sent out an image header and thus the request is

Re: [PHP] Adding dates

2003-03-11 Thread Sebastian
No problem. I love the function myself :) warm regards, - Sebastian - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 4:24 PM Subject: Re: [PHP] Adding dates | > http://www.php.net/manual/en/function.strtotime.ph

Re: [PHP] Encrypting/Compiling PHP Scripts

2003-03-11 Thread Sebastian
$1,000 for an encrypter.. hehe. I'm sure you'll pass, huh? ;) I was thinking about doing the same, can't trust webhost nowadays with access to your scripts :P Although, I wouldn't mind seeing a cheaper method of encrypting php. - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED

[PHP] Re: Message Board Question

2003-03-11 Thread conbud
Hey thanks everyone, I pretty much got it working now. Conbud wrote: 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 pag

[PHP] help with insert into table to mysql

2003-03-11 Thread Karl James
Hey guys Im trying to have a form submit a body or article into a Table called articles for people to post there stories or what not. So far what I have written is not working and im not able to view My errors for some reson, Could some take a look at the three links below, thanks Karl My code:

Re: [PHP] Subtracting two dates

2003-03-11 Thread Leo Spalteholz
On March 11, 2003 09:35 pm, Justin French wrote: > READ THE F***ING MANUAL!!! > > http://php.net/round clearly shows you how to round to a whole > number. > > if you want to round ALL decimals up, then you might have to create > something from scratch, but ceiling and floor functions are part of n

RE: [PHP] screenshot of an mpeg frame

2003-03-11 Thread Dan Rossi
if anyone is interested in knowing how to do this, use a binary called mplayer /usr/local/etc/mplayer/bin/mplayer -vo jpeg -ss 00:00:05 -frame s 1 test.mpg it will export a jpeg still of the frame, u then can use either imagemagick or gd to resize and optimise for a video sample , excellent for c

Re: [PHP] Encrypting/Compiling PHP Scripts

2003-03-11 Thread Leif K-Brooks
http://zend.com/store/products/zend-encoder.php http://www.ioncube.com/ Davis Tan wrote: Hi, Would like to know whether is there any possibilities to encrypt or compile the PHP scripts so that it is not human-readable? Thanks! -- The above message is encrypted with double rot13 encoding. A

[PHP] Encrypting/Compiling PHP Scripts

2003-03-11 Thread Davis Tan
Hi, Would like to know whether is there any possibilities to encrypt or compile the PHP scripts so that it is not human-readable? Thanks!

Re: [PHP] Subtracting two dates

2003-03-11 Thread Justin French
on 12/03/03 4:35 PM, Justin French ([EMAIL PROTECTED]) wrote: > if you want to round ALL decimals up, then you might have to create > something from scratch, but Actually, there's a link to both ceil() and floor() on the round() page in the manual. Justin -- PHP General Mailing List (http://w

Re: [PHP] Subtracting two dates

2003-03-11 Thread Justin French
READ THE F***ING MANUAL!!! http://php.net/round clearly shows you how to round to a whole number. if you want to round ALL decimals up, then you might have to create something from scratch, but a) you need to read the relevant pages in the manual first b) think about exactly what you want, then

RE: [PHP] Subtracting two dates

2003-03-11 Thread Ben C.
Is there a way not to round the number but get a whole number? I don't want to have 1.5 days show as 2 days because it really has not gone into day 2? -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:27 PM To: Ben C.; [EMAIL PROTECTED] Subje

[PHP] Ldap_Add driving me nuts

2003-03-11 Thread James Taylor
I'm having trouble with the ldap_add function in my script. There are 4 possible classes in the ldap schema that would be used - organization, person, qmailUser, inetOrgPerson. The ldap_add script will every time return LDAP-Errno: 65 LDAP-Error: Object class violation UNLESS I include data for

[PHP] Multiple values per variable

2003-03-11 Thread Erich Kolb
I am working on some logic where users are categorized based on the results from a few questions. So far everything is working properly, but I would like to be able to assign multiple categories to each user. Any ideas on how to accomplish this? I am assuming that an array would be in order, but

RE: [PHP] replace question

2003-03-11 Thread John W. Holmes
> how do we replace this out of an array element > > "~nl~" with " " How about str_replace()? Or are you talking about replacing that value in each and every element in the array? If so, use array_walk() or loop through the array and use str_replace(). ---John W. Holmes... PHP Architect - A

[PHP] Mailing list/message board combination?

2003-03-11 Thread J J
Is there something available that acts as both a message board and mailing list where: - users can interact via email online (mailing list) with all message being stored in message board format for web browsing - users can reply and create new discussions via the web message board which also send

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-11 Thread Larry_Li
Sure. Could you paste your html codes & php codes here? I believe there are a lot of nice guys are willing to help you. BTW, nice to meet you and hope i could help you someway. I'm chinese too. Larry --

[PHP] Re: Valid Email Question

2003-03-11 Thread Manuel Lemos
Hello, On 03/11/2003 11:04 PM, Stephen wrote: Is there anyway you can email a certain email a user enters, see if it bounces back, and if it does, tell the user to enter a valid username? I've always wanted to do this but I'm not sure how to see if it bounces back. You may want to try this class t

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Paul Chvostek
The original question was regarding email addresses, not usernames. If an ISP has a policy of requiring each left-hand-side of an email address to be a username, that ISP has a serious problem. On Wed, Mar 12, 2003 at 02:42:04PM +1300, Philip J. Newman wrote: > > how ever i don't think most ISP

[PHP] Confusion about snmp functions

2003-03-11 Thread Jason Nakamura
Hi All, I'm moving the webserver to a new box (RH7.2 to RH Adv. Server 2.1) and upgrading all my out of date stuff at the same time. It seems that the PHP snmp functions I was using on the old box return different info on the new box. Example snmpget($server, "public", ".1.3.6.1.2.1.25.2.3.1.5.1"

Re: [PHP] Message Board Question

2003-03-11 Thread Tom Rogers
Hi, Tuesday, March 11, 2003, 8:31:47 PM, you wrote: c> Hi, this is kind of a complex question, Im making a message board, now I c> dont want list, lets say, all 25 messages on the same page. I would like c> to have <- previous 1 2 3 next -> type of links and only list 5 messages c> per page and

[PHP] recently I meet a problem as follow ,I want to ask you

2003-03-11 Thread jiahuo xiao
web master engineer: recently I encounter a problem as follow ,I want to ask you My system is windows xp sp1, now I set up Apache server V1.3.27 as localhost server and download PHP4.3,I have configured PHP as SAPI Module.it can work correctly as common php file which example for ,it sh

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Justin French
on 12/03/03 12:42 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote: > how ever i don't think most ISPs let users pick names with the + sign in it Doesn't matter... if it's a valid format of email address, then it should be validated as legit. I use this: http://www.killersoft.com/downloads/pafiled

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread chris
On Wed, 12 Mar 2003 14:42:04 +1300, Philip J. Newman <[EMAIL PROTECTED]> wrote: how ever i don't think most ISPs let users pick names with the + sign in it - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAI

[PHP] 4.2.0 replace

2003-03-11 Thread WebDev
OK This function is supported in PHP 4.2.0 or higher. mb_ereg_replace() scans string for matches to pattern, then replaces the matched text with replacement and returns the result string or FALSE on error. ok gotta try that now quick -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Valid Email Question

2003-03-11 Thread Cal Evans
The only way to do that would be to open a connection to the SMTP server directly and try and send the email. (Instead of using the mail function) This way the mail server would give you an error code if it didn't work. =C= * Cal Evans * Stay Plugged Into Your Audience * http://www.christianperfo

[PHP] replace question

2003-03-11 Thread WebDev
Hello all how do we replace this out of an array element "~nl~" with " " Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Valid Email Question

2003-03-11 Thread Stephen
Is there anyway you can email a certain email a user enters, see if it bounces back, and if it does, tell the user to enter a valid username? I've always wanted to do this but I'm not sure how to see if it bounces back. Thanks, Stephen Craton http://www.melchior.us -- PHP General Mailing List (

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
You have used the ' in sted of the " i assume that there is no difference? - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 2:37 PM Subject:

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
how ever i don't think most ISPs let users pick names with the + sign in it - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "David E.S.V." <[EMAIL PROTECTED]> Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 12, 2003 2:37 PM Subject:

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread Paul Chvostek
> On Wed, 12 Mar 2003, Philip J. Newman wrote: > > > Required: Help for checking for a valid email string. On Tue, Mar 11, 2003 at 08:19:36PM -0500, David E.S.V. wrote: > > you mean something like this? > > //checking if the email is valid > > if (eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL > PROT

Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread David E.S.V.
you mean something like this? //checking if the email is valid if (eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL PROTECTED]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", $email, $check)) { if ( !getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) ) $mensaje="server not valid"; // checki

[PHP] Checking for a Valid Email String.

2003-03-11 Thread Philip J. Newman
Required: Help for checking for a valid email string. -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always there. -- Websites: PhilipNZ.com - Design. http://www.philipnz.com

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

2003-03-11 Thread Jason k Larson
How about: preg_match_all ('/([a-zA-Z0-9]+)/', $subject, $matches); HTH, Jason k Larson Justin French wrote: Unfortunately, I'm no good with regexp's, so you'll have to hope someone who IS reads your post :) Justin French on 12/03/03 5:14 AM, Kenn Murrah ([EMAIL PROTECTED]) wrote: Greetings.

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 str

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

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

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 afte

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

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

[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/) T

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

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

[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=art&id=1 Alexandru -- Alexandru COSTIN Chief Operating Officer http:/

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

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

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! ++ __ __ (, /

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

[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 CPT John W. Holmes
[snip] > The web Page (1) uses a to permit the users write their things. > If one user writes something like "" and the > sentence has 200 characters 'a' without any or enter '\n' then > in web page (2) the table becomes "too fat" (like with="2000">, for example). [snip] Use wordwrap()

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 -- -- END TEXT --- Scri

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

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

[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 . The add.php take the

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 >> >>Click Here >> >>as this will still work on no

Re: [PHP] Re: Enabling HTTP_REFERER

2003-03-11 Thread Stephen
I think that solves all my problems then. I was doing a 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 PROT

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

[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] 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. Co

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 > >Click Here > >as this will still work on non-js browsers - albeit without being able >to size/position the window. But you'd also get the same

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

[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

[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: 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;$ilevel); } $valArr = array_reverse($valArr); for($i=0;$ilevel = $valArr[$i]; } David Eisenhart "Neko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a bit of a good one for you guys:

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?

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] P

[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

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

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

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

[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

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 go

[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

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 PROTE

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 snip

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

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

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

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

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

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

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

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

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 fso

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

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

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

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

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. in

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

[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: http://www.php.n

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 hol

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

  1   2   >