Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
insert following... echo $sql; immediatly after the folowing code block.. $sql = INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile) VALUES ('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile'); then execute the script, and check whether it show

Re: [PHP] problem with INSERT query

2003-12-09 Thread irinchiang
This is what I get after I echo my query statement: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES ('NULL', 'NULL', 'NULL', 'NULL') How come the value is null??? In my INSERT query, I already state my value variable to be the name of the fields in my html.

Re: [PHP] problem with INSERT query

2003-12-09 Thread Jason Wong
On Tuesday 09 December 2003 15:20, [EMAIL PROTECTED] wrote: This is what I get after I echo my query statement: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES ('NULL', 'NULL', 'NULL', 'NULL') How come the value is null??? In my INSERT query, I already

Re: [PHP] problem with INSERT query

2003-12-09 Thread irinchiang
Well, I tried that and this is what i got: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') DB Error: syntax error well, when I echo again, i can successfully see the values I entered. But this

Re: [PHP] problem with INSERT query

2003-12-09 Thread irinchiang
Well, I tried that and this is what i got: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') DB Error: syntax error well, when I echo again, i can successfully see the values I entered. But this

Re: [PHP] problem with INSERT query

2003-12-09 Thread Jason Wong
On Tuesday 09 December 2003 15:34, [EMAIL PROTECTED] wrote: Well, I tried that and this is what i got: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_profile) VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') DB Error: syntax error well, when I echo

Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') in above line, note the two quotes, in both side of each value.. this is the cause to your DB syntax error.. correct the above line as follows... ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile); and try, but

Re: [PHP] problem with INSERT query

2003-12-09 Thread irinchiang
Thanks alot for your help!!! It was only a spacing mistake... There should have no spacing in between each variables: VALUES ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile); Thanks a million. Irin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Best practices for sharing members database between different portals

2003-12-09 Thread Tariq Murtaza
Dear All, Please comment on Best Practices for sharing members database between different portals. Suppose we have 3 portals running on different networks. Assignment is to make a single Login/Pass for all portals, means once LogedIn in one of the portal, could able to access the other portals

[PHP] Structuring keyword searches

2003-12-09 Thread Michael Egan
I'd better apologize at the outset as I'm not sure this is strictly a PHP problem - though I'm using PHP as the means of building the application. Anyway, here goes: I'm creating a website that will function as a directory of services within a specific area of the UK charity sector. A variety

Re: [PHP] restrict access to multiple pages

2003-12-09 Thread olinux
I like your second solution better. (seems simpler to me to leave out the nested else...). I'd just write it this way: ?php if(!loggedin()) { // redirect to login page header (Location: http://domain.com/login.php;); exit; } ? Also check out some of these articles for some different

[PHP] Re: spambothoney: script to pollute spammer's databases

2003-12-09 Thread Sven
Manuel Lemos schrieb: Hello, On 12/09/2003 12:26 AM, Daniel Hahler wrote: I proudly announce the first release of my first PHP script: spambothoney. It provides a class to generate different types of email addresses (random invalid, combination of users/hosts, with spambots IP/host, binary

Re: [PHP] Re: spambothoney: script to pollute spammer's databases

2003-12-09 Thread Leif K-Brooks
Manuel Lemos wrote: The latest spamming strategies consist on using valid sender addresses of inocent companies. Therefore, when you make up invalid addresses, all the bounces will go to the innocent companies mail servers. The more invalid addresses you make up the more harm you cause to

[PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread John Clegg
Hi I was wondering if you any advice as to why the imagick function imagick_readimage can not read a url on my php installation. Problem: I am trying to get imagick to load an image from a URL. I can read from a file on the a file system no problem. eg, $url =

RE: [PHP] Re: post an array into another site

2003-12-09 Thread Jay Blanchard
[snip] ...wow... [/snip] All of this an no one mentioned cURL? ;) http://www.php.net/curl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: post an array into another site

2003-12-09 Thread Wouter van Vliet
On dinsdag 9 december 2003 13:11 Jay Blanchard told the butterflies: [snip] ...wow... [/snip] All of this an no one mentioned cURL? ;) http://www.php.net/curl Yes .. ehmm, especially considering this wasn't the guy's actual question. If I read it correctly, it was this: On 12/08/2003 10:30

[PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to access the images via my site... Is this possible...? Perhaps my questio is to

Re: [PHP] Re: goto label

2003-12-09 Thread Bogdan Stancescu
Justin Patrin wrote: Robert Cummings wrote: Goto line number is a very broken way of coding. Goto label is a very useful and structured way of coding especially when creating fast FSMs for parsing. I was a little disappointed a few months ago when I found that PHP didn't support the goto label

RE: [PHP] Leechers...

2003-12-09 Thread Wouter van Vliet
On dinsdag 9 december 2003 13:50 [EMAIL PROTECTED] told the butterflies: I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to

[PHP] for statement weirdness, no echo

2003-12-09 Thread Jay Blanchard
for($i = 2; $i 0144; $i++){ echo $i . \n; } does not echo anything. Even put the numbers in quotes (single and double). What has being brain-dead caused me to miss this morning? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] for statement weirdness, no echo SOLVED

2003-12-09 Thread Jay Blanchard
[snip] for($i = 2; $i 0144; $i++){ echo $i . \n; } does not echo anything. Even put the numbers in quotes (single and double). What has being brain-dead caused me to miss this morning? [/snip] I found it...one too many zeros in initial $i (I wanted to say one two many..) :)

Re: [PHP] for statement weirdness, no echo

2003-12-09 Thread Richard Davey
Hello Jay, Tuesday, December 9, 2003, 1:31:35 PM, you wrote: JB for($i = 2; $i 0144; $i++){ JB echo $i . \n; JB } JB does not echo anything. Even put the numbers in quotes (single and JB double). What has being brain-dead caused me to miss this morning? Look at your values

Re: [PHP] Structuring keyword searches

2003-12-09 Thread Lowell Allen
I'd better apologize at the outset as I'm not sure this is strictly a PHP problem - though I'm using PHP as the means of building the application. Anyway, here goes: I'm creating a website that will function as a directory of services within a specific area of the UK charity sector. A

Re: [PHP] Leechers...

2003-12-09 Thread daniel hahler
on Tue, 9 Dec 2003 12:49:56 + [EMAIL PROTECTED] wrote: TPrsc I want to now be able to stop people from linking to the images directly, TPrsc and only be able to access the images via my site... With Apache you can either use mod_rewrite: RewriteCond %{HTTP_REFERER} !^$ RewriteCond

RE: [PHP] Leechers...

2003-12-09 Thread Wouter van Vliet
On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies: On dinsdag 9 december 2003 13:50 [EMAIL PROTECTED] told the butterflies: I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be

Re: [PHP] PHP My SQL vs ASP.NET SQL 2000 Server

2003-12-09 Thread John Nichel
Ryotaro Ishikawa MD wrote: Hi, I am a MD, involved in a very large medical project that requieres a strong database plataform, the project must be .NET , the estimated transactional movement is about 40 on line users accesing a DB with a 200 relational tables. The policy is to program this SW in

Re: [PHP] Re: goto label

2003-12-09 Thread John Nichel
Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, if there's any way to achieve 'goto label:' using PHP Thanx for ur time Nitin goto is a very old and broken way of coding. If you ever find yourself in need of a goto, you should re-evaluate how you're doing things. If you're

Re: [PHP] Leechers...

2003-12-09 Thread John Nichel
[EMAIL PROTECTED] wrote: I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to access the images via my site... Is this possible...?

[PHP] date convertion

2003-12-09 Thread Adam Williams
I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

RE: [PHP] date convertion

2003-12-09 Thread Dan Joseph
Hi, I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

[PHP] I need a script for deleting mail from mail boxes...

2003-12-09 Thread Keith
Hi All, I need to know how to write a script for deleting mail from a Linux server. Essentially I need to be able to delete all mail with a date-stamp less than some threshold date. Then I want this script to run from a regular cron job. I am not sure if this is doable in PHP or whether I must

Re: [PHP] I need a script for deleting mail from mail boxes...

2003-12-09 Thread Chris Hayes
At 16:08 9-12-03, you wrote: Hi All, I need to know how to write a script for deleting mail from a Linux server. It's more important to know what sort of mail it is. I suppose POP3 mail, so then look for the POP class of Manuel Lemos, i think on phpclasses.org. Essentially I need to be able to

Re: [PHP] date convertion

2003-12-09 Thread CPT John W. Holmes
I have a script where a user inputs a date in MMDD format, and I need to convert it to month day, year. For example they will enter 20031209 and I need the script to return the date as December 09, 2003. They won't be entering today's date, so I can't use the timestamp with the date

RE: [PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
Cheers for this... On the 'new mail' thread... I did start a new mail this time, I remember cause I'm been flamed for this before..? Curious... Sadly, I use Lotus Notes, if I opened an E-mail, copied the address and then hit new mail, would Notes remember and extra info? Quite quite confusing

RE: [PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
Forget my whole new post retort ;-) Wouter van Vliet [EMAIL PROTECTED] 09/12/2003 14:11 To 'Wouter van Vliet' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] cc Subject RE: [PHP] Leechers... On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies: On

Re: [PHP] problem with INSERT query

2003-12-09 Thread Tom Rogers
Hi, Tuesday, December 9, 2003, 4:58:30 PM, you wrote: ijc Hi all, ijc I am trying to do a simple INSERT data into the database using the following ijc php script but the problem here is that whenever I click submit, the script ijc only insert a NULL value into the columns into the datadase

[PHP] Operator question

2003-12-09 Thread Jeff McKeon
In PHP, what does the operator -= do? I can't find a ref to it's function in the online manual or any books I have. Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Operator question

2003-12-09 Thread Richard Davey
Hello Jeff, Tuesday, December 9, 2003, 4:11:10 PM, you wrote: JM In PHP, what does the operator -= do? I can't find a ref to it's JM function in the online manual or any books I have. Set's a negative value: $a = 10; $b -= $a; or $b -= 10; In both cases $b will equal -10. -- Best

Re: [PHP] Operator question

2003-12-09 Thread Matt Matijevich
snip In PHP, what does the operator -= do? /snip $var -= 1 is the same as $var = $var - 1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FW: errors using iis,soap,php

2003-12-09 Thread Roger Schweppe
-Original Message- From: Roger Schweppe [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 9:55 AM To: [EMAIL PROTECTED] Subject: FW: errors using iis,soap,php Hi, Arnaud Limbourg suggested that I might find an answer to the question below from someone at this e-mail address:

Re: [PHP] Operator question

2003-12-09 Thread Jeffrey Labonski
Uhhh, nope. That only works in your code if $b is initially 0. They're shorthand for do something and reassign. $a = 100; $a += 10; // $a = $a + 10 $a -= 10; // $a = $a - 10 $a /= 10; // etc... $a += 10; $a = 2; $a .= ' is a weird number'; $mode = 0755; $mode = 01; --Jeff

[PHP] CORBA/satellite extension..

2003-12-09 Thread firepages.org
Has anyone seen it lately ? , php.net seems to think it has moved to PEAR or PECL but unless its been renamed ... ? any ideas Regards, Simon Wheeler. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Monday, December 08, 2003 5:17 PM said: The only risk is forgetting to add this check, since I assume you mean that you have to copy/paste this into every script. You might want to consider whether you can design your application in such a way

Re: [PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread Adam i Agnieszka Gasiorowski FNORD
John Clegg wrote: Problem: I am trying to get imagick to load an image from a URL. I can read from a file on the a file system no problem. Maybe you should simply circumvent the problem - download the file to your location into a temporary file, then act on this file locally...Use

Re: [PHP] restrict access to multiple pages

2003-12-09 Thread Kelly Hallman
On Mon, 8 Dec 2003, Chris W. Parker wrote: Ok so I am working on the admin sectin of the e-commerce app I'm writing and I'm hoping there's a better way to do what I am currently doing. In an effort to prevent circumvention of the login page I've placed a check at the beginning of each page

[PHP] display settings

2003-12-09 Thread Hartley, Matt
I am sort of new at this, I am wondering if it is possible to find the display settings of the user I know that ?php echo $_SERVER[HTTP_USER_AGENT]; ? will give you Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) is there one that will recover the display settings of the user? Matt

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Pablo Gosse
Kelly Hallman wrote: On Mon, 8 Dec 2003, Chris W. Parker wrote: Ok so I am working on the admin sectin of the e-commerce app I'm writing and I'm hoping there's a better way to do what I am currently doing. In an effort to prevent circumvention of the login page I've placed a check at the

RE: [PHP] display settings

2003-12-09 Thread Pablo Gosse
Hartley, Matt wrote: I am sort of new at this, I am wondering if it is possible to find the display settings of the user I know that ?php echo $_SERVER[HTTP_USER_AGENT]; ? will give you Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) is there one that will recover the display

Re: [PHP] Problems with imagick's imagick_readimage

2003-12-09 Thread Decapode Azur
I was wondering if you any advice as to why the imagick function imagick_readimage can not read a url on my php installation. Problem: I am trying to get imagick to load an image from a URL. I can read from a file on the a file system no problem. $url =

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Pablo Gosse
Kelly Hallman wrote: On Mon, 8 Dec 2003, Chris W. Parker wrote: Ok so I am working on the admin sectin of the e-commerce app I'm writing and I'm hoping there's a better way to do what I am currently doing. In an effort to prevent circumvention of the login page I've placed a check at the

Re: [PHP] display settings

2003-12-09 Thread Tyler Lane
Not via PHP. You will need javascript to accomplish this. On Tue, 2003-12-09 at 10:57, Hartley, Matt wrote: I am sort of new at this, I am wondering if it is possible to find the display settings of the user I know that ?php echo $_SERVER[HTTP_USER_AGENT]; ? will give you

[PHP] Re: Operator question

2003-12-09 Thread Jon Kriek
Assignment Operators http://www.php.net/manual/en/language.operators.assignment.php Incrementing/Decrementing Operators Arithmetic Operators http://www.php.net/manual/en/language.operators.increment.php Arithmetic Operators http://www.php.net/manual/en/language.operators.arithmetic.php Operator

Re: [PHP] Best practices for sharing members database between different portals

2003-12-09 Thread Galen
There is no good way to really handle this between domains and keep the user logged in. I doubt there are any real best practices on this. If you're disparate, you might be able to use some tricks to make it work, but all in all, I don't think it's a very easy thing. Cookies sessions just

RE: [PHP] display settings

2003-12-09 Thread Sam Masiello
Since PHP is a server side language, you cannot get information like the users display settings. If you want this information, you will need to use a client side language like Javascript or VBScript. --Sam Hartley, Matt wrote: I am sort of new at this, I am wondering if it is possible to

[PHP] Re: Leechers...

2003-12-09 Thread Manuel Lemos
Hello, On 12/09/2003 10:49 AM, Tristan Pretty wrote: I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to access the images via my

Re: [PHP] Re: spambothoney: script to pollute spammer's databases

2003-12-09 Thread Manuel Lemos
Hello, On 12/09/2003 09:42 AM, Leif K-Brooks wrote: The latest spamming strategies consist on using valid sender addresses of inocent companies. Therefore, when you make up invalid addresses, all the bounces will go to the innocent companies mail servers. The more invalid addresses you make up

[PHP] Write on image in faint color

2003-12-09 Thread Ryan A
Hi, This was asked some time ago but cant find it in the archive, anybody remember how it was solved please write and tell me. Requirment: Write domain name in faint color on picture (a kind of watermark) Reason: I have 3 directories full of images that are original to our site and I spent a

[PHP] Any security issues with preg_match and web form input ?

2003-12-09 Thread Richard A. DeVenezia
I accept a regex search term posted from a form, but I use $_REQUEST, so a person could throw the search term on the url if they wanted to. Am I open to any security breaches ? $search_term = isset ($_REQUEST ['search']) ? $_REQUEST ['search'] : ''; if ($search_term != ) { ... $contents =

Re: [PHP] Any security issues with preg_match and web form input ?

2003-12-09 Thread Chris Shiflett
--- Richard A. DeVenezia [EMAIL PROTECTED] wrote: I accept a regex search term posted from a form, but I use $_REQUEST, so a person could throw the search term on the url if they wanted to. Am I open to any security breaches? $search_term = isset ($_REQUEST ['search']) ? $_REQUEST

Re: [PHP] Re: goto label

2003-12-09 Thread Robert Cummings
On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: Robert, I know your grief, been there, I know how it feels. I started my childhood with BASIC, which was /the/ GOTO programming language, learned Turbo Pascal when I was a teenager, and continued to use GOTO's (Pascal discourages but

[PHP] Cannot store ldap_connect() resource handle in session $SESSION[] ?

2003-12-09 Thread Chris Shenton
Is it possible to connect to an LDAP server with ldap_connect() then store the resulting resource handle in the session variable $SESSION[]? I'm hoping to avoid re-connecting and re-binding every time the user clicks on something. It does not appear to be saving my LDAP connection handle along

[PHP] run a command on a remote host

2003-12-09 Thread Ivone Uribe
How can I run a command on a remote host wiht php? I'm trying this line but nothing happen. passthru(rsh rubella /export/dat0/users/augur-se/bin/.upnotify -s 1045073262-82425_net2.nextelinternational.com -u http://wap.peru.com -a -y D--- -i Location -n); I try exec and system, too But if I run

Re: [PHP] Re: goto label

2003-12-09 Thread Justin Patrin
Robert Cummings wrote: On Tue, 2003-12-09 at 08:14, Bogdan Stancescu wrote: Robert, I know your grief, been there, I know how it feels. I started my childhood with BASIC, which was /the/ GOTO programming language, learned Turbo Pascal when I was a teenager, and continued to use GOTO's (Pascal

Re: [PHP] Re: goto label

2003-12-09 Thread Robert Cummings
On Tue, 2003-12-09 at 17:45, Justin Patrin wrote: While goto may be useful and even elegant for experienced programmers (although I see no reason to use it myself with well structured programs...there's always break), its inclusion in a language causes some programmers (newbies and those

Re: [PHP] run a command on a remote host

2003-12-09 Thread Nathan Taylor
When you say remote host do you mean the server executing the script or the person accessing it? If you mean the latter, it is not possible. - Original Message - From: Ivone Uribe To: [EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 5:44 PM Subject: [PHP] run a command on

Re: [PHP] run a command on a remote host

2003-12-09 Thread Brad Lhotsky
Don't forget that this will be executed as the user that the webserver is running as. Hopefully that's not root in this case. Check out the docs for rsh, you can specify the username with the -l option. I don't know if that will accomplish what you want. Also, what do you mean by nothing

RE: [PHP] run a command on a remote host

2003-12-09 Thread Vail, Warren
Well, it is not possible directly, but you can try some of the following; $cmd = rsh -l user host command; // remote shell $cmd = rpc -l user host command; // remote procedure call $cmd = rexec -l user host command; // remote exec $cmd = ssh host command; // secure shell

[PHP] [Newbie Guide] For the benefit of new members

2003-12-09 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en

Re: [PHP] header function, I'm stumped

2003-12-09 Thread Kelly Hallman
On Tue, 2 Dec 2003, Chris Hubbard wrote: All, dealing with header(location:...) again. and trying to understand what's happening. I've got the following code: header(Location:http://www.mysite.com/cp/ad/ad_details.php?id=;. $id); I'm kinda surprised I didn't see this mentioned.. Have you

Re: [PHP] header function, I'm stumped

2003-12-09 Thread Chris Shiflett
--- Kelly Hallman [EMAIL PROTECTED] wrote: On Tue, 2 Dec 2003, Chris Hubbard wrote: All, dealing with header(location:...) again. and trying to understand what's happening. I've got the following code: header(Location:http://www.mysite.com/cp/ad/ad_details.php?id=;. $id); I'm kinda

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-12-09 Thread Chris W. Parker
Ma Siva Kumar mailto:[EMAIL PROTECTED] on Tuesday, December 09, 2003 4:00 PM said: 4. Just put the following code into a file with a .php extension and access it through your webserver: ?php phpinfo(); This will display tons of info if php is enabled, or, it will ask you to

Re: [PHP] header function, I'm stumped

2003-12-09 Thread Jon Kriek
?php ob_start(); $dom = $_SERVER['SERVER_NAME']; writeMessage($id) or die('cannot write' . $id); header('Location: http://' . $dom . '/cp/ad/ad_details.php?id=' . $id); exit(); ob_end_flush(); ? -- Jon Kriek www.phpfreaks.com www.jonkriek.com -- PHP General Mailing List

[PHP] Re: Write on image in faint color

2003-12-09 Thread Al
There's a command line, open-source utility called ImageMagick (http://www.imagemagick.org/) available for all major platforms that allows you to do lots of powerful image manipulation on one file, or one thousand. You crop, scale, rotate, colour, draw on, place text over, compose, transform and

[PHP] treu type fonts

2003-12-09 Thread cj
G'day all I was wandering I have php installed with GD with freetype fonts compiled in I ran this php script ?php header(Content-type: image/gif); $im = imagecreate(400,30); $white = imagecolorallocate($im, 255,255,255); $black = imagecolorallocate($im, 0,0,0); // Replace path by your

[PHP] Re: problem with INSERT query

2003-12-09 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi all, I am trying to do a simple INSERT data into the database using the following php script but the problem here is that whenever I click submit, the script only insert a NULL value into the columns into the datadase instead

[PHP] Re: Reading email from sendmail

2003-12-09 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Good afternoon, all!! Is there a function or series of functions in PHP that will allow a PHP package to read email from a sendmail account, look for a specific information in the subject line, then be able to resend that email

[PHP] Constraint Violation when INSERT

2003-12-09 Thread irinchiang
Hi all, I got the error Constraint Violation when I did an INSERT . Gone thru the code umpteen times but to no avail..Wondering where my error was??...Below is a snip of the block of code: ? $dsn = mysql://root:[EMAIL

RE: [PHP] Constraint Violation when INSERT

2003-12-09 Thread Martin Towell
Hi all, I got the error Constraint Violation when I did an INSERT . Gone thru the code umpteen times but to no avail..Wondering where my error was??...Below is a snip of the block of code: ? $dsn = mysql://root:[EMAIL

[PHP] CfP: International PHP Conference 2004 Spring Edition Amsterdam

2003-12-09 Thread Björn Schotte
Hi folks, [ http://www.phpconference.com/ ] time's running fast ahead - we're just announcing the Call for Papers for 2004's International PHP Conference Spring Edition Amsterdam. The date for this event for PHP enthusiasts from all over the world will be May 3rd to May 5th, 2004. The

[PHP] How to Calculate Similarity Percentage with Levenshtein function

2003-12-09 Thread Gohaku
Hi, I'm trying to obtain the similarity percentage for 2 Strings when using the Levenshtein function but the percentages doesn't seem to match the percentage returned by similar_text($str1,$str2,$match_percent); Below is what I use to calculate the similarity percentage $dist =

[PHP] How to Calculate Similarity Percentage with Levenshtein function

2003-12-09 Thread Gohaku
Hi, I'm trying to obtain the similarity percentage for 2 Strings when using the Levenshtein function but the percentages doesn't seem to match the percentage returned by similar_text($str1,$str2,$match_percent); Below is what I use to calculate the similarity percentage $dist =

RE: [PHP] Constraint Violation when INSERT

2003-12-09 Thread irinchiang
Hi all, I got the error Constraint Violation when I did an INSERT . Gone thru the code umpteen times but to no avail..Wondering where my error was??...Below is a snip of the block of code: ? $dsn = mysql://root:[EMAIL

Re: [PHP] problem with INSERT query

2003-12-09 Thread irinchiang
[EMAIL PROTECTED] schrieb: Thanks alot for your help!!! It was only a spacing mistake... There should have no spacing in between each variables: VALUES ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile); hi, a space after a comma shouldn't be a problem. your problem were

Re: [PHP] treu type fonts

2003-12-09 Thread Tom Rogers
Hi, Wednesday, December 10, 2003, 11:53:27 AM, you wrote: c G'day all c I was wandering I have php installed with GD with freetype fonts compiled in c I ran this php script c ?php c header(Content-type: image/gif); c $im = imagecreate(400,30); c $white = imagecolorallocate($im,