[PHP] My SQL not getting row

2003-06-10 Thread Ben Houlton
The bit of my code that I'm working on is here: if ($submit) { if ($id) { $sql = "UPDATE pages SET sub='$sub' msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id"; } else { $sql = "INSERT INTO pages (sub,msg,name,email,date,time,newday) VALUES ('$sub','$msg','$name

[PHP] Random Image Store

2003-06-10 Thread Monil Chheda
Hi, I want to create an php system that prevents automated registrations. I have come up with the script in which users come over and need to enter a random key displayed on the images while submitting their info. If the number entered is correct, the post is submitted, else, the same form is di

[PHP] Re: usenet post on frebsd php port problem

2003-06-10 Thread Chris Knipe
Hi, I know what the problem is, I also have no "cure" for it though - I'm still investigating. libcrypto (part of OpenSSL / SSH I believe) come standard with FreeBSD as part of the source tree, installed in /usr/lib. There you should have a libcrypto.so.1 & 2. SOMEWHERE a certain port also inst

[PHP] ldap + php

2003-06-10 Thread chandrakant Reddy
Hi, How do i find schema of my active directory or ldap server using php functions. e.g., in RDBMS it is possible to write a query to find all database in the system, all table in the database , all collumn_names in the table . Is there any function in php or c to know what is the sche

Re: [PHP] Generate PHP using PERL???

2003-06-10 Thread Joel Rees
> Well, I'm a little light on techniqueso bare with me... > I've got pages that are dynamically created via a perl program. Already? That was fast. ;-) > The final > HTTP output depends upon input to the perl script. > > I would like the output of this script to be interpreted as a .PHP page

Re: [PHP] SMTP setting correct mail() not working?

2003-06-10 Thread R'twick Niceorgaw
On Wednesday 11 June 2003 03:57 am, Ben Houlton wrote: > I've set the SMTP setting correctly (I've checked like 50 times) but it > sill comes up with: Warning: mail(): Failed to connect to mailserver at > "mail.ihug.com.au" port 25, verify your "SMTP" and "smtp_port" setting in > php.ini or use ini

[PHP] SMTP setting correct mail() not working?

2003-06-10 Thread Ben Houlton
I've set the SMTP setting correctly (I've checked like 50 times) but it sill comes up with: Warning: mail(): Failed to connect to mailserver at "mail.ihug.com.au" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Inetpub\wwwroot\test1.php on line 6 Any ideas

[PHP] Admin Login

2003-06-10 Thread Ben Houlton
How do I make it so when I log in the options such as delete message, edit message, are viewable, but when someone else logs in they can't view it. Could someone guide me to a tutorial or alike? Thanks.

Re: [PHP] Questions, questions, questions...

2003-06-10 Thread Lars Torben Wilson
On Tue, 2003-06-10 at 16:34, Sparky Kopetzky wrote: > Ok - let the war begin... > > Question: Why doesn't the PHP community support using an Hungarian > style of programming if it prevents errors?? I've gotten too darn many Haven't really seen this one flamed over on this list before, but maybe s

Re: [PHP] Generate PHP using PERL???

2003-06-10 Thread php
Well, I'm a little light on techniqueso bare with me... I've got pages that are dynamically created via a perl program. The final HTTP output depends upon input to the perl script. I would like the output of this script to be interpreted as a .PHP page so that I can take advantage of PHP funct

[PHP] Re: can't call htpasswd using PHP

2003-06-10 Thread HPS
We call quite a lot shell command in our system, e.g. /sbin/ifconfig, mv, rm , unzip , zip, htpasswd When we are using Red Hat+PHP 4.1.2+apache1.3, that's fine, no problem But when we switch to Red Hat 8.0+PHP 4.2.2+apache2 , the system is fine, EXCEPT htpasswd. thx a lot.~ Billy "Baroiller Pie

Re: [PHP] Generate PHP using PERL???

2003-06-10 Thread Joel Rees
> Its kind of ugly, but its possible to call a php script thru a system() > function in Perl. Why bother going through a system call? If you have apache loading both mod_php and mod_perl, you can call (include or whatever) through normal http methods. -- Joel Rees <[EMAIL PROTECTED]> -

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Kevin Saenz
Nope sorry I never believe in paying for software, as long as there is a free alternative. :) As long as I can develop and support it why should I buy software :) > Hey, > I myself use MailWasher proits a great little tool which will bounce > back spam mail to the spammer as if your address d

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Ben Houlton
The MySQL mailing list is just a list where the emails people send for help get send to EVERYONE on the mailing list so every message sent to the MySQL mailing list gets sent to you and everyone else. It's not spam it's just a crazymailing list idea... I joined of a day a, went to bed next morning

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jimmy Brake
hi! i run some really big apps (crms/email/shopping carts/directories/forums/etc) that make use of persistance type data but NEARLY all of it is just put in and removed from the DB - just all kinds of little/big functions that need to maintain some data or state(s) of some data - my system average

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Ryan A
Hey, I myself use MailWasher proits a great little tool which will bounce back spam mail to the spammer as if your address does not exist any more...plus it automatically blacklists spam via spamcop and a crapload of other features... check it out here : http://entier.ecosm.com/system/redir.php

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Kevin Saenz
Spamassassin with Razor works a treat. > i dont know , i wasnt suggesting that , its silly , but all i know is i got > hit pretty hard with spam once i joined the list , i have proof because i > started getting the same @ my work email :|, any suggestions for a good > filter maybe on the server s

[PHP] Img to a stream

2003-06-10 Thread Todd Cary
Forgive me if my question is confuing, but I am confused so asking the question properly is difficult. Currently, I have a PHP application that produces barcodes in HTML.  It uses the following line:   // Create the Barcode   if ($obj) { if ($obj->DrawObject($xres)) { echo "";  

[PHP] getting page title using PHP

2003-06-10 Thread Tim Thorburn
Hi, As a matter of curiosity I've created a little script that will check what screen resolution visitors to my site are using and store the information into a MySQL database. So far, I'm recording the users IP address, screen resolution, and the date/time they visited. Now I'd like to be abl

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread daniel
i dont know , i wasnt suggesting that , its silly , but all i know is i got hit pretty hard with spam once i joined the list , i have proof because i started getting the same @ my work email :|, any suggestions for a good filter maybe on the server side , i've tried to get my mate to install one i

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread daniel
And, to be honest: don't you want to "impress your girlfriend"? *ducking away* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Jerry M. Howell II
On Wed, Jun 11, 2003 at 10:45:15AM +1000, daniel wrote: > i dont know u tell me, all i know is thats how i'm being mail bombed > > >> so do they get the emails from the archive ? ?if so password protect > >> please !! > > > > Which one? This list is archived on numerous sites. > So what your say

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jean-Christian Imbeault
Cpt John W. Holmes wrote: Agree 100%. Don't assume that just because you use JSP, or any other language, your program is going to instantly "scale well" and be easy to maintain. You can write crappy, inefficient code in any language. You can also write good programs in most any language if you put

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread daniel
i dont know u tell me, all i know is thats how i'm being mail bombed >> so do they get the emails from the archive ? ?if so password protect >> please !! > > Which one? This list is archived on numerous sites. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Questions, questions, questions...

2003-06-10 Thread Ernest E Vogelsinger
At 01:34 11.06.2003, Sparky Kopetzky said: [snip] >Ok - let the war begin... no war at all... >Question: Why doesn't the PHP community support using an Hungarian style of >programming if it prevents errors?? I've gotten too darn many times now by a It's

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Ernest E Vogelsinger
At 01:36 11.06.2003, [EMAIL PROTECTED] said: [snip] >so do they get the emails from the archive ? ?if so password protect >please !! [snip] Not necessarily from the archives - they might as well subscribe a bot addres

Re: [PHP] Generating Static Pages || Preserve PHP Code?

2003-06-10 Thread Jaap van Ganswijk
Hi Noah, You seem to be just copying a file, if so use this instead: http://www.php.net/manual/en/function.copy.php Or try to describe what you're trying to do and what the you see as a problem. Both fread() and fwrite(0 don't interpret the PHP code in files that they are reading and writing.

[PHP] Re: mail() function & exchange

2003-06-10 Thread Manuel Lemos
Hello, On 06/10/2003 04:44 PM, Matthias Wulkow wrote: a friend of mine is trying to set up an automated mailing function. The platform is Windows & he's using the last PHP release at this time. He asks me how to do it with Exchange, because it doesn't speak SMTP or not correctly? What is the matte

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread Jennifer Goodie
> so do they get the emails from the archive ? ?if so password protect > please !! Which one? This list is archived on numerous sites. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Array...

2003-06-10 Thread John W. Holmes
> I am getting something like this: > > > > I will be getting upto 5 of the above values, Thanks to John Holmes (from > this list) I know how to enter it into the database but how do i create a > session with the above? > > The reason why i want to do this is, > 1)user picks upto 5 packages to

RE: [PHP] magic_quotes_gpc

2003-06-10 Thread John W. Holmes
> Anyone know how to change the magic_quotes_gpc? I need it to be on in PHP. > > Running PHP 4.1.2 Change it in php.ini or in an .htaccess file. ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect - A monthly magazine for PHP Professionals. Get y

[PHP] Questions, questions, questions...

2003-06-10 Thread Sparky Kopetzky
Ok - let the war begin... Question: Why doesn't the PHP community support using an Hungarian style of programming if it prevents errors?? I've gotten too darn many times now by a type mismatch using what the 'Bible' of PHP programming style recommends - PHP Coding Standard by Fredrik Kristianse

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread daniel
> That was a good suggestion about filtering headers.Thanks. > > Perhaps this password protected archive should be > impletmented. Who is really the idiot in these > circumstances the few idiots that sends spam or the > thousands that just put up with??? > yes well i dont know how they do it , bu

[PHP] magic_quotes_gpc

2003-06-10 Thread Steve Marquez
Anyone know how to change the magic_quotes_gpc? I need it to be on in PHP. Running PHP 4.1.2 Thanks, Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread myphp
That was a good suggestion about filtering headers.Thanks. Perhaps this password protected archive should be impletmented. Who is really the idiot in these circumstances the few idiots that sends spam or the thousands that just put up with??? Chris Quoting Richard Bask

[PHP] Problems compiling with libXpm or libX11

2003-06-10 Thread John Nichel
Hi, I'm trying to configure php with xpm ( --with-xpm-dir=/usr/X11R6 ), and I keep getting this error configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information. config.log has this... configure:35198: checking for the location of libXpm

[PHP] Re: What does this do?

2003-06-10 Thread nate parsons
Hey Stephen, Check this out: $bob = "dog"; $joe = "bob"; print ${bob}; print ""; print ${$joe}; ?> -Nate Stephen Goddard wrote: Hi, Can anyone tell me what this does ${varname} I cant find any information as to what the braces do. Cheers Steve -- PHP General Mailing List (http://www.php

[PHP] Re: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hi... You've made a bad query and there is no result... mysql_fetch_row($result) => if no data found, you've got an error... "Marcelo Luiz De Laia" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > What this message means? > > What it is the error? > > Warning: mysql_fetch_r

[PHP] Re: can't call htpasswd using PHP

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Does you php or apache process have perms to do this? "Billy" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Dear all, > > i can't call the "htpasswd" command after i used RedHat 8 ( which i can do > so in Red Hat 7.2) > > do u have any idea/ suggestion? > > thx a lot > H

Re: [PHP] mysql - get actual row

2003-06-10 Thread Tom Woody
On Tue, 2003-06-10 at 17:18, Harry.de wrote: > Hi, > if i insert into a mysql table a row e.g. >mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')"); > and the first field is an auto increment (e.g. NR), > how can i get the value of the auto increment NR i've actually inserted?

[PHP] Re: mysql - get actual row

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hy, try with mysql_insert_id() [ if you've set the first field as "index" in your table ]. Regards. "Harry.De" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Hi, > if i insert into a mysql table a row e.g. >mysql_query("INSERT into TEST (testfield) VALUES ('This i

[PHP] Re: check is pop address

2003-06-10 Thread nate parsons
Well one thing that springs to mind is you could try to connect to their mail server on port 110 & 995 and see if you get a response. Thats not foolproof but that might be a good place to start... -nate Philip S wrote: Hi there, I was wondering whether someone could tell me whether it is possib

[PHP] mysql - get actual row

2003-06-10 Thread Harry.de
Hi, if i insert into a mysql table a row e.g. mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')"); and the first field is an auto increment (e.g. NR), how can i get the value of the auto increment NR i've actually inserted? Tanks Harry -- PHP General Mailing List (http:

RE: [PHP] .htaccess

2003-06-10 Thread Jeff Harris
On Jun 9, 2003, "John W. Holmes" claimed that: |> Just one question, is there any way that when a person logs in via the |> htaccess popup that i can know via my php script...and can i also get his |> username? | |Have you read the chapter on HTTP Authentication? No. Read the very |first paragraph

[PHP] Session Array...

2003-06-10 Thread Ryan A
Hey, I am getting something like this: I will be getting upto 5 of the above values, Thanks to John Holmes (from this list) I know how to enter it into the database but how do i create a session with the above? The reason why i want to do this is, 1)user picks upto 5 packages to save to his ac

Re: [PHP] Math with php

2003-06-10 Thread Jim Lucas
this is untested but should get you going down the right road and this is assuming that you add the value = (6*X + 1*Y) you didn't say that, so I am just guessing. Give this a shot, it should give you the results that you are looking for. But remember, this is untested, and just a guess as to

[PHP] Math with php

2003-06-10 Thread Frank Keessen
Hi, Hope you can help me: How can i do the following in PHP: When a variable is for example: $a = 7 I must do the following 6 * X and 1 * Y, but when $a = 4 it must only do 4 * X. So every when the value is odd i must do # * X and # * Y.. Some examples or hints are very welcome! Sory that

Re: [PHP] Classes and Objects

2003-06-10 Thread Frank Keessen
Don, Are you using phpmailer of http://phpmailer.sourceforge.net/ ??? Looks like: require("class.phpmailer.php"); this is not properly configured! Please check if the path is going alright.. Regards, Frank - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PR

[PHP] RE: Characters

2003-06-10 Thread Mike Brum
Addslashes() http://us3.php.net/manual/en/function.addslashes.php -M -Original Message- From: Steve Marquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 4:28 PM To: MySQL List; PHP eMail List Subject: Characters I am inserting a file via a PHP form. It works great, however, i

Re: [PHP] Characters

2003-06-10 Thread Jason Wong
On Wednesday 11 June 2003 04:28, Steve Marquez wrote: > I am inserting a file via a PHP form. It works great, however, if there is > a word that has quotes in it, then it does not work at all. > > Is there a way to make it so that MySQL will receive a word with "quotes?" mysql_escape_string() --

[PHP] Classes and Objects

2003-06-10 Thread Don
Are Classes and Objects supported in PHP 3.0.14? I am getting an error: "Call to unsupported or undefined function phpmailer()" on a server running PHP 3.0.14 but it works in PHP 4.3.2 Thanks, Don _ This email and any files transmitted with it are strictly confidential and may be

[PHP] Characters

2003-06-10 Thread Steve Marquez
I am inserting a file via a PHP form. It works great, however, if there is a word that has quotes in it, then it does not work at all. Is there a way to make it so that MySQL will receive a word with "quotes?" Thanks -Steve Marquez [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php

RE: [PHP] Best PHP books

2003-06-10 Thread Miles Thompson
Addressing only the issue of the complete function reference, you can do no better than the annotated online manual. When I first started using PHP there was a dearth of books; I diligently dloaded the manual and printed it out, only to find the online version much more convenient. That was on

Re: [PHP] confusing problem or am just plain confused....

2003-06-10 Thread Emma Jane Hogbin
On Tue, Jun 10, 2003 at 03:27:10PM -0400, CPT John W. Holmes wrote: > > I dont know how exactly to explain this but will do my best, i have many > of > > the following lines in a page: > > > > > ="package" value="loco package"> > > Further to that... if you need to add more columns of informati

[PHP] mail() function & exchange

2003-06-10 Thread Matthias Wulkow
Hi php-general, a friend of mine is trying to set up an automated mailing function. The platform is Windows & he's using the last PHP release at this time. He asks me how to do it with Exchange, because it doesn't speak SMTP or not correctly? What is the matter? Is that true? But that's not really

Re: [PHP] Number of days between two dates

2003-06-10 Thread Jason Wong
On Wednesday 11 June 2003 02:52, LeTortorec, Jean-Louis wrote: > Do you know how to calculate the number of days between 2 dates? > > So far, I used that function: > > $a=mktime("","","",$month1, $day1, $year1); > $b=mktime("","","",$month2, $day2, $year2); > $c=($a-$b)/(60*60*24

Re: [PHP] Any experience (good or bad) with domehost.com?

2003-06-10 Thread Ryan A
Hi, I have no experience with dome host but I can offer you every damn thing that they are offering and whats moreyou can setup your apps and have a run of the whole server for a full 10 days before you pay me a cent... If need be i can also give you some sites that are hosting under me and you

[PHP] Generating Static Pages || Preserve PHP Code?

2003-06-10 Thread CF High
Hey all. Interesting problem here, at least for me ;--): How to generate php pages using fopen() without having php code evaluated in the written pages? For example, if build_pages.php runs a db query and, based on the result set, produces a test page using fopen(), how to avoid having php code

[PHP] Array and $_POST value's HELP!

2003-06-10 Thread Frank Keessen
Hello everyone, I've got the following problem: I've got two fields called test1[] and test2[]. The value's are stored in an array. For the test1 i can read the array and print the list of value's after the submit. But question is: if(is_array($_POST['test1'])) { foreach($_POST['test1'] as $Key

Re: [PHP] confusing problem or am just plain confused....

2003-06-10 Thread CPT John W. Holmes
> I dont know how exactly to explain this but will do my best, i have many of > the following lines in a page: > > ="package" value="loco package"> > each line of course has a differient id[] value and package value. > > Everything is working fine with the just id[] value but now i need to add

[PHP] Replicate MSAcces form with sub-forms to PHP? Advice needed.

2003-06-10 Thread Apollo (Carmel Entertainment)
I am trying to convert MSAccess form (that have sub-forms) to PHP and can't seem to figure out a solution. Anyone done anything like this before, the sub-queries/sub-forms with PHP? Any examples? Apolinaras "Apollo" Sinkevicius Carmel Music & Entertainment, LLC web-site: http://carmelme.com _

[PHP] confusing problem or am just plain confused....

2003-06-10 Thread Ryan A
Hi, I dont know how exactly to explain this but will do my best, i have many of the following lines in a page: each line of course has a differient id[] value and package value. Everything is working fine with the just id[] value but now i need to add the package value too...but the problem is

[PHP] Any experience (good or bad) with domehost.com?

2003-06-10 Thread Steve Magruder
www.domehost.com appears to offer PHP-related services that appear second-to-none, esp. considering the price. They support GD, FreeType, Ming and Gzip libraries. (Note: I have no affiliation with them!) Does anyone here have any positive or negative experiences with this hosting company to make

[PHP] Number of days between two dates

2003-06-10 Thread LeTortorec, Jean-Louis
Hello everyone, Do you know how to calculate the number of days between 2 dates? So far, I used that function: $a=mktime("","","",$month1, $day1, $year1); $b=mktime("","","",$month2, $day2, $year2); $c=($a-$b)/(60*60*24); The problem is one date is prior to 01/01/1970, t

RE: [PHP] Best PHP books

2003-06-10 Thread Dan Joseph
Hi, I'll scond the O'Reilly books. I have Programming PHP and Web Apps w/PHP & MySQL -- both are excellent. Since you've went through one book, also keep in mind www.php.net is a great reference tool. -Dan Joseph > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > S

RE: [PHP] Generate PHP using PERL???

2003-06-10 Thread Dan Joseph
Hi Todd, > -Original Message- > My question. Is it possible to dynamically generate a page using > a PERL script that will in turn be interpreted as PHP by the > server since I dont/wont have the option of ending the filename with PHP. > > My hope is that their is some directive that I ca

Re: [PHP] Best PHP books

2003-06-10 Thread Ryan A
I myself use PHP BlackBook and started off on that got me this far and still keeps me going. HTH Cheers, -Ryan - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Brian @ BHTSystems" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 6:49 PM Subjec

RE: [PHP] Best PHP books

2003-06-10 Thread Jay Blanchard
[snip] Does anyone have any recommendations for a good PHP book? I tried the "Learn PHP in 24 hours" book, but it was incredibly light on details. I'm looking for a book that has at least a complete function reference and is geared towards the intermediate to advanced level programmer. [/snip] I

Re: [PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread CPT John W. Holmes
> > -Original Message- > > MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc > > > > Anyone know of articles/examples that specifically deal with this issue? > > Look into the Top() function for MSSQL. It goes something like: > > SELECT Top(10) * FROM table > > You sh

Re: [PHP] Best PHP books

2003-06-10 Thread Matt Palermo
I have The PHP Black Book, and I find that it works great. Here is a link to amazon.com where it is located: http://www.amazon.com/exec/obidos/ASIN/1588800539/102-8343451-6560118 Good luck. Matt - Original Message - From: "Brian @ BHTSystems" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] Best PHP books

2003-06-10 Thread Brian @ BHTSystems
Does anyone have any recommendations for a good PHP book? I tried the "Learn PHP in 24 hours" book, but it was incredibly light on details. I'm looking for a book that has at least a complete function reference and is geared towards the intermediate to advanced level programmer. Thanks in advance

Re: [PHP] Generate PHP using PERL???

2003-06-10 Thread Wendell Brown
On Tue, 10 Jun 2003 12:05:32 -0500, Todd Snyder wrote: >My hope is that their is some directive that I can output at the start that will >invoke the PHP interpreter so that my output will >be run as a PHP script rather than just HTML. Generally speaking a script will be interpreted by one or the

[PHP] How to use objects, variables in an eval() func ?

2003-06-10 Thread LPA
Hi, I have an eval which evaluate a block of code before echo the result on the screen.. Here is the func : function t_eval($texte) { ob_start(); eval("?>".$texte); $retval = ob_get_contents(); ob_end_clean(); return $retval; } But I use some objects for databases, ... and when i trying t

[PHP] Generate PHP using PERL???

2003-06-10 Thread Todd Snyder
I hope this hasn't been asked too many times before because I've done an archive search and cant find the answer to my question. I presently have much of my web site (www.home-fires.com) dynamically generated using PERL scripts. I have a need to reduce image sizes and my host supports this func

[PHP] help with cURL

2003-06-10 Thread Ken Harris
The latest version of curl has a problem with certain SSL certificates. The cURL commandline added a -k option to override the problem. Is there a PHP CURL_something foe curl_setopt to do the same override? Ken - This mail sent through IMP:

Re: [PHP] Table issue

2003-06-10 Thread Mark
What application are you copying the data from? We've run into some odd problems when text from MS Word is copied into a textarea field and put into a database. Certain characters that one would think were standard ASCII ended up being odd special characters. That migh tbe breaking the db update.

Re: [PHP] What does this do?

2003-06-10 Thread Steve Keller
At 6/10/2003 02:56 PM, Stephen Goddard wrote: > Can anyone tell me what this does ${varname} > I cant find any information as to what the braces do. Which is odd because searching for "braces" at PHP.net takes you the "strings" section, which explains in detail several functions of curly braces.

RE: [PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread Dan Joseph
Hi, > -Original Message- > MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc > > Anyone know of articles/examples that specifically deal with this issue? Look into the Top() function for MSSQL. It goes something like: SELECT Top(10) * FROM table

[PHP] MSSQL - Previous/Next Paging Results

2003-06-10 Thread Craig
MSSQL seems to be a little bit messier that MySQL..e.g limit clause etc Anyone know of articles/examples that specifically deal with this issue? Any insight appreciated. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Want to move M$Access frontend to PHP/MYSQL. Need suggestions...

2003-06-10 Thread Apollo (Carmel Entertainment)
Why an MS Access front end? Old school talent booking agents, they do not want to see any changes, so you have to do everything in the background. Only my Dir of Ops. understands what I am talking about, since she benefits every time I move my finger. Person who originaly wrote the Access database

Re: [PHP] Bitwise flagging in mysql database

2003-06-10 Thread Jason Wong
On Tuesday 10 June 2003 06:08, Mike Mannakee wrote: > I have a script that is collecting a bunch of information, and storing this > in a database. However, the rows are kinda big and I'm thinking of packing > the information into flag bits, and storing this information in one string > in the datab

Re: [PHP] Array[array]

2003-06-10 Thread Philip Olson
On Tue, 10 Jun 2003, Erich Kolb wrote: > How do I get a value from an array thats inside of an array? $array = array('a' => 'apple'); print $array['a']; // apple $array = array('a' => array('b' => 'banana')); print $array['a']['b']; // banana $array = array(array(array(array('c' => 'cranberry

Re: [PHP] Re: Re: if ($xxxxx) { function not working?

2003-06-10 Thread Philip Olson
On Tue, 10 Jun 2003, Ben Houlton wrote: > Now I get a blank page and all the code... that I can think of is the same... > Look here: > > > > > > $db = mysql_connect("localhost","root"); > > mysql_select_db("kangaroo",$db); > > if ($submit) { > > if ($id) { [snip] Do this, to help us a

Re: [PHP] Mail Username

2003-06-10 Thread John S. Huggins
You can add extra info into the appropriate fields like so. mail("[EMAIL PROTECTED]", "the subject", $message, "From: [EMAIL PROTECTED]","[EMAIL PROTECTED]"); However, your local sendmail might restrict this behavoir of changing the sender identity. Mine simply complaines about it in the

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread Richard Baskett
Yeah that's why I use this address [EMAIL PROTECTED], I receive a whole bunch of junk mail to that address because of my replies or questions to this list. I have tried to get the archives password protected the way apple does it or other mailing lists do it, but I didn¹t receive that much support

[PHP] Re: Array[array]

2003-06-10 Thread Joaco
Try this: Array[i][j] where i is the index of the array stored in the array and j is the index of the value in the stored array. "Erich Kolb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] How do I get a value from an array thats inside of an array?

[PHP] Mail Username

2003-06-10 Thread Josh Thomas
I know that if you use sendmail to perform your mailings in php that the sender shows up as the user and group for Apache. Now is there a way to make the mail command display a different user in the from field? I know that I could change the user/group for Apache to fix it, but is there a setting i

Re: [PHP] spawning new window with PHP

2003-06-10 Thread Marek Kilimajer
Simply name the window lastwin=window.open("http://www.google.com";, "some_name"); and then create links: nothing with php Amanda McComb wrote: I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs as the location for the n

Re: [PHP] PHP using Linter...

2003-06-10 Thread Scott Fletcher
It only take a few minutes to install Linter and have it up and running. Configuring and maintaining it is a breeze. You can even install a newer version of Linter over the older one and still have the database intact without having to restore the database. You don't get a lot of headache with Li

Re: [PHP] using % and £ in strings

2003-06-10 Thread Marek Kilimajer
Try: $string=stripslashes($string); // only if magic_quotes are on ini_alter("magic_quotes_sybase",1); $string=addslashes($string); bob pilly wrote: Hello I am trying to let a user enter notes about an appointment but are having errors when trying to write their input to a database. The users in

Re: [PHP] spawning new window with PHP

2003-06-10 Thread Henrik Hudson
On Tuesday 10 June 2003 10:18, Amanda McComb wrote: > I have a list of urls in a MySQL database and I use PHP to get them out. > I need to spawn a new window and use one of those URLs as the location for > the new window. Is there PHP code that can do this? Here is part of the > javascript I curr

RE: [PHP] Re: Warning Spammer

2003-06-10 Thread Mike Brum
What I've done is created a separate account for the PHP & mySQL mailing lists for that purpose. If the spam count gets crazy on this address, it's simple to just create a new account and send all of that mail to the trash. -M -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

[PHP] spawning new window with PHP

2003-06-10 Thread Amanda McComb
I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs as the location for the new window. Is there PHP code that can do this? Here is part of the javascript I currently use: lastwin=window.open(); lastwin.location

RE: [PHP] PHP using Linter...

2003-06-10 Thread Ralph
Why don't you just use mySQL? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 5:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP using Linter... Linter is a SQL database that is written by a company in Russia and is for everyone around the

[PHP] Mail() "problem"

2003-06-10 Thread Maikel Verheijen
Hi list, Has anyone ever tried to use "REMOTE_ADDR" to be sent along with emails sent from php-scripts that use the "mail()" function? I have built a small auto-relaying sendmail (crudely based on mini-sendmail, http://www.acme.com/software/mini_sendmail/) that adds a "received" header containing

Re: [PHP] Re: Warning Spammer

2003-06-10 Thread myphp
Just as well I didnt bother looking it up. LOL Thanks, and now that I realize that this list is archived and any idiot can get my email them ...sigh... too bad. - Quoting Ben Houlton <[EMAIL PROTECTED]>: > taken straight from google.com translation page... ( i'm not really > portuguese ;

[PHP] Re: check is pop address

2003-06-10 Thread R'twick Niceorgaw
check the IMAP functions If you have the pop server address (ip, port), user name and password you can do it http://us4.php.net/imap HTH R'twick "Philip S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > I was wondering whether someone could tell me whether it is possib

[PHP] check is pop address

2003-06-10 Thread Philip S
Hi there, I was wondering whether someone could tell me whether it is possible to use PHP to check whether a user supplied email address is a pop address as opposed to a web based address like hotmail. Have done some searching but cant seem to turn any answers up. Thanx in advance for any replys, P

Re: [PHP] PHP Hosting Sites

2003-06-10 Thread Russell P Jones
I recently hosted with a company called networkeleven (http://www.networkeleven.com)... I required a custom build of php because i use DOMXML to run most of my site. They completed the task in literally under 15 minutes after my request. Since then, I have had no service interuptions and continued

Re: [PHP] Re: use print

2003-06-10 Thread Stephen Goddard
You can print from PHP ! The scrip below will print a bmp. It requires you to enable php_printer.dll in your php.ini file The printer handle must be the same, as the shown printer name, in the printers folder (win) For more info look here :- http://uk.php.net/manual/en/ref.printer.php If yo

  1   2   >