[PHP] Re: Ad software

2005-03-16 Thread pete M
check www.hotscripts.com Ryan A wrote: Hey, I am looking for a software that just lists adverts... eg: Like ebay but without the bidding Requirements are simple, so simple that i am sure something like this exists and i dont have to write it myself: 0.They must register first then... 1.offer the pe

[PHP] Re: Fwd: can you help me ??

2005-03-17 Thread M. Sokolewicz
Wahyu SP wrote: --- the forwarded message follows --- Akses Internet TELKOMNet-Instan beri Diskon s.d. 50 % khusus untuk wilayah Jawa Timur. Informasi selengkapnya di www.telkomnetinstan.com atau hub 080

Re: [PHP] Reading all headers sent

2005-03-18 Thread M. Sokolewicz
Jesper Goos wrote: The $SERVER variable is an array, so try this: "; print_r($_SERVER); echo ""; ?> regards Jesper martin wrote: Hi, I wanted to know if there is some way to expose the full headers sent to a php page. I found in google that for windows there is $_SERVER['ALL_HTTP'] to read all t

Re: [PHP] Forms

2005-03-21 Thread Matt M.
> Does anyone know how to get a particular option to display in a drop menu? > > > Option Value > - > value1 > value2 > value3 > value4 > add selected="selected" to the option value4 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] obscure error message - PHP Notice: (null)():

2005-03-21 Thread M. Sokolewicz
Richard Lynch wrote: On Wed, March 16, 2005 2:32 pm, Zinovi Boyadjiev said: I am getting this strange error while developing imap mail to mysql inporting script : PHP Notice: (null)(): Permission denied (errflg=2) in Unknown on line 0 This looks like a custom error message and/or something coming

Re: [PHP] php: "else if" problem

2005-03-22 Thread M. Sokolewicz
read the manual, you can use both ("else if" and "elseif"). The script does exactly what you tell it to. The flaw(s) is(/are) in your logic. Second of all, might I please advise you to have a good look at your code, and at least *try* to clean it up a bit? I'm sure you didn't mean it like this,

Re: [PHP] Re: here is the problem again

2005-03-22 Thread M. Sokolewicz
Chris W. Parker wrote: AndreaD on Tuesday, March 22, 2005 12:25 PM said: The cookie will not/set or print out. http://www.aztechost.com/problem.phps setcookie("cookie[$name]", $age); echo $_COOKIE[$name]; I think it should be: think again setcookie("cook

[PHP] Re: PHP CVS solution

2005-03-23 Thread M. Sokolewicz
Christian Calloway wrote: Hiya guys, I need some type of extremely simple (yet intuitive) CVS solution, preferbly written in PHP. Namely I want to allow fairly unsavvy computer users (lets say my mom for example) to checkout files of interest, located on some server, via a web-interface and PHP\

Re: [PHP] how to write IF statement for login script

2005-03-23 Thread M. Sokolewicz
Nick wrote: Hi, I have a login script which has worked fine in the past, however i need to change the IF statement. Basically all i want it to do is verify that $squadnum variable is inbetween 1-98 or is 99. I'm not even entirely sure if i need to use the ereg function and i dont think the "1

[PHP] Re: Memory use

2005-03-24 Thread M. Sokolewicz
Joe Wollard wrote: Greetings, I'm trying to help a C programmer understand and use PHP for web development. So far all the similarities between C++ and PHP are making the process rather speedy. He asked what seemed like a very simple question, but I couldn't find the answer. The questions is how

[PHP] Re: Q: static method working in PHP4 and PHP5

2005-03-24 Thread M. Sokolewicz
Piotr Klaban wrote: Hi, An example script: error_reporting(4095); class Foo { function test() { } } Foo::test(); ?> would produce in PHP5 error: PHP Strict Standards: Non-static method Foo::test() should not be called statically in ... line 8 I have two questions: 1. Could it be poss

Re: [PHP] How can I destroy parameters by page

2005-03-24 Thread M. Sokolewicz
how about... just leave it? Why do you need to destroy it anyway? :S Tomás Rodriguez Orta wrote: I sorry I can't destroy of value variable by pass url I try this. unset($_SERVER['QUERY_STRING']); but the url have the same value. don't delete this value. what can i do? somebody can help me. regards

[PHP] Re: filesize() Returns a file size. What will return a directorysize()???

2005-03-28 Thread M. Sokolewicz
Lupita wrote: Hello; I have been looking for a solution to get the disk size of a directory. I would like to be able to get the size of a directory with sub directories under it. Will I need to loop through file sizes to get the total directory size? yes -- PHP General Mailing List (http://www.ph

Re: [PHP] Best Server OS

2005-03-28 Thread M. Sokolewicz
Danny Brow wrote: On Mon, 2005-03-28 at 15:58 -0500, Mike wrote: I personally like OpenBSD - though many of the BSDs are similar at many tasks and only have notable differences in a few areas (and it's those areas you should look to find which works best for you). I wonder who will get bored and st

[PHP] Re: ISO encoding of subject in mail?

2005-03-29 Thread M. Sokolewicz
convert it to quoted-printable using eg. imap_8bit() L0t3k wrote: Kim, i vaguely recall some new (aka 5.04) functions added to the mbstring extension to handle this. BTW, are you _the_ Kim Madsen of TKBMMemtable fame ? "Kim Madsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi

[PHP] Re: eregi problem

2005-04-03 Thread M. Sokolewicz
ly dont know :) <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha numeric chars only. here, how I check the variable: if((eregi("[^a-zA-Z0-9]",$GP[sifre]) echo 'true'; else echo '

[PHP] Re: How to compile PHP5 with VC++ 6.0

2005-04-04 Thread M. Sokolewicz
Kioto wrote: Hi all i have a question. There si an how-to that explain step by step all necessary to create a myself compiled php distribution ? yes, there is. I have read about: http://docs.php.net/en/install.windows.building.html which is exactly that resource. Can you send a new link about this

Re: [PHP] Re: eregi problem

2005-04-04 Thread M. Sokolewicz
Kim Madsen wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, April 03, 2005 6:03 PM To: php-general@lists.php.net Subject: [PHP] Re: eregi problem i'm not familliar with regular expresions but i think that ^a-z - means that variable must start witx a

Re: [PHP] Re: eregi problem

2005-04-04 Thread M. Sokolewicz
Kim Madsen wrote: -Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 3:08 PM Putting the ^ _inside_ [] means NOT, so if any of the chars a-z0-9 is in the string it´s NOT matched. actually, that's not entirely correct. The regexp basically

[PHP] Re: PDO and Oracle

2005-04-06 Thread M. Sokolewicz
Jason Barnett wrote: Charles FENDT wrote: I try to use PDO with Oracle and PHP 5.0.4 on windows... my php.ini includes php_pdo.dll and when I try to create an object, I got an error message "could not find driver" Any idea ? regards, FENDT Charles I have never used Oracle or PDO I think you need t

Re: [PHP] POST method to php page from php page

2005-04-08 Thread M. Sokolewicz
Aurélien Cabezon wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob Pilly wrote: | Hello all Hi, | Does anyone know if its possible to post data using the http POST method | to another form using php? | I know its possible to use: | header( "Location: somelocation.php?" .SID&somevar=$somevar

Re: [PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread M. Sokolewicz
Rory Browne wrote: I was wondering that as well. While I was at it, I wondered why not use __to_str(), as per the PHP coding guidelines. because that's *against* php coding guidelines :) You should have a look at the guidelines for METHOD-naming, which is part of the OOP part. It states that for m

[PHP] regular expressions

2005-04-14 Thread pete M
I've been messing about with this for a while to no avail.. so help would be appreciates I'm new to regular expressions and tried this with preg_replace, now I'm using eregi_replace ! here's the text $txt = 'It blahh blahhh blahhh of '; what I want to do it take the font-size and font-family a

Re: [PHP] regular expressions

2005-04-14 Thread pete M
The pattern $pattern = 'font\-size:.*?\;'; throwns the error eregi_replace(): REG_BADRPT Erwin Kerk wrote: pete M wrote: I've been messing about with this for a while to no avail.. so help would be appreciates I'm new to regular expressions and tried this with preg_rep

Re: [PHP] regular expressions

2005-04-14 Thread pete M
Thankyou Diolch danka There seems to be a big difference between eregi_replace() and preg_replace Am reding teh Sams - Regular Expressions in 10 mins bu the syntax seems ot be different. !! regards pete Erwin Kerk wrote: pete M wrote: The pattern $pattern = 'font\-size:.*?\;'; throwns

Re: [PHP] RegEx help

2005-04-14 Thread M. Sokolewicz
Philip Hallstrom wrote: On Thu, 14 Apr 2005, Bosky, Dave wrote: I wanted to create a regex that force a PHP form text field to meet the following requirements: a. Must contain an 1 uppercase letter. [A-Z] b. Must contain 1 digit. [0-9] c. Must be a minimum of 7 characters in length. {7} if ( ereg("

[PHP] reducing array size

2005-04-16 Thread pete M
Is there an easy way to "trim" an array ? I'm using array_unshift to push elemnts onto the front of an array but I want to limit the size to 20 ?? Is there an easy way to do this without "looping" and unsetting the elements ?? tia Pete -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] query error

2005-04-16 Thread pete M
I've got a database table with a whole list of "windows" file paths. eg Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Binder.lnk Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Excel.lnk Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Office Setup.lnk Advent Tower

[PHP] Re: Localhost not working with cookies

2005-04-17 Thread M. Sokolewicz
Proudly Pinoy wrote: I've read from php.net/setcookie and codecomments.com that using localhost won't work with cookies and neither are IP addresses. So how do I test cookies on local system? set the hostname to an empty string; and 2, don't CROSS-post. That's a *very* bad habit -- PHP General Ma

[PHP] .htaccess

2005-04-19 Thread pete M
I'm trying to figure out out to put a directive in .htaccess to make the session timeout in 4 hours .. tried php_flag session.cookie_lifetime 240 and a few others can someone help ! tia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email through PHP

2005-04-19 Thread pete M
check out phpmailer http://phpmailer.sourceforge.net/ use it all the time - its brilliant !!! Balwant Singh wrote: hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine Pl

Re: [PHP] email through PHP

2005-04-19 Thread pete M
http://phpmailer.sourceforge.net/extending.html Balwant Singh wrote: hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine Please inform what setting to be done in php.ini

[PHP] Re: mailing lists

2005-04-19 Thread pete M
check out hotscripts.com Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-21 Thread Jon M.
I am trying to have a file that I generated with PHP saved as UTF-8 without the BOM (Byte Order Mark). Does PHP do anything like this? I am a beginner with PHP, but very technically experienced otherwise. I'm talking about the FILE encoding here -just to be clear. e.g. fopen("what_ever_file",

[PHP] How to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-21 Thread Jon M.
I am trying to have a file that I generated with PHP saved as UTF-8 without the BOM (Byte Order Mark). Does PHP do anything like this? I am a beginner with PHP, but very technically experienced otherwise. I'm talking about the FILE encoding here -just to be clear. e.g. fopen("what_ever_file",

[PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-21 Thread Jon M.
I am trying to have a file that I generated with PHP saved as UTF-8 without the BOM (Byte Order Mark). Does PHP do anything like this? I am a beginner with PHP, but very technically experienced otherwise. I'm talking about the FILE encoding here -just to be clear. e.g. fopen("what_ever_file",

Re: [PHP] Is it possible to save a file with UTF-8 encoding and no BOM using PHP?

2005-04-22 Thread Jon M.
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, April 21, 2005 5:07 pm, Jon M. said: >> I am trying to have a file that I generated with PHP saved as UTF-8 >> without >> the BOM (Byte Order Mark). Does PHP do anything l

Re: [PHP] radio buttons in $_POST

2005-04-23 Thread M. Sokolewicz
Justin Gruenberg wrote: None And if you didn't want it to show to the user (because they have to make a choice anyway) . . . you can use this css: input[value="None"] { display: none; } You should then always have a value to play with in PHP, and the user doesn't see any extra clutter. wh

Re: [PHP] Line feed in a echo

2005-04-26 Thread M. Sokolewicz
Ken wrote: On 4/26/05, Mario de Frutos Dieguez <[EMAIL PROTECTED]> wrote: Andri Heryandi escribió: Use echo "something "; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf("foo\n"); yes that's it thx -- Mario de Frutos Dieguez Div

[PHP] Re: number of cookies and if there are any cookies set?

2005-04-26 Thread M. Sokolewicz
AndreaD wrote: I need two bits of info... (i) Are there ANY cookies set? if(count($_COOKIES) > 0) { echo 'cookies are set'; } else { echo 'no cookies set, or to be more precise, no cookies are set which are available to this site'; } (ii) How many cookies are set? echo count($_COOKIES); how do I

[PHP] Re: encrypting pwds using blowfish encryption

2005-04-26 Thread M. Sokolewicz
$encrypted_data = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $input, MCRYPT_ENCRYPT); http://www.php.net/mcrypt Dave Bosky wrote: Does anyone have a simple code example of encrypting passwords using the blowfish encryption method? I've only used blowfish with Java and I'm unsure of the syntax. Thanks,

[PHP] Re: Code stoped working after upgrading from 4 to 5

2005-04-28 Thread M. Sokolewicz
Mário Gamito wrote: Hi, I have this simple piece of code that worked like a chram in PHP 4.x Now that i've moved to PHP 5 it doesn't work anymore. I always get 0 for $form_ok even if all fields are filled. The variables come from a form in a previous page. Any ideas on where the problem might be ?

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-04-28 Thread Jon M.
xt that is saved in the file? "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jon M. wrote: >> "Richard Lynch" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>>On Thu, April 21, 2005

[PHP] Re: Templating engines

2005-04-29 Thread pete M
Hi clive I tried all of them and I must admit smarty comes out on top by a mile I use it on a very busy virtual host and have had NO problems with slow script etc, highly recommended http://smarty.php.net pete Clive Zagno wrote: Hi all, What templating engines do you use with php and why? Ive bee

[PHP] Re: POP access to gmail

2005-04-29 Thread pete M
http://phpmailer.sourceforge.net/ excellent and easy to use class Malcolm Mill wrote: Does anyone know of a PHP script to access gmail's POP services? Thanks, Malcolm. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOMusing PHP?

2005-05-02 Thread Jon M.
ime in the future! :) And hopefully I am right about what I said above, and not flaunting my ignorance once again -lol Thanks again, to everyone who helped me! You guys really got me on the right track. Not the least of which was simply causing me to think about what I was asking more deeply. -Jo

Re: [PHP] Is it possible to save a file with UTF-8 encoding and noBOM using PHP?

2005-05-03 Thread Jon M.
to be relevant anymore. Still, it is nice to have a program -like I do- that has that flexibility. -Jon "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, April 28, 2005 4:14 am, Jon M. said: >> No matter what I do to the strings to

[PHP] is_numeric

2005-05-04 Thread pete M
not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Now tried function isnumeric($n) { if (ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $n)) { return true; } else { return false; } } and that doent seem to work either.

[PHP] Re: Check for doubleposts

2005-05-04 Thread pete M
set a $_SESSION['var'] at the end of the first post and check for this the second time around pete Fredrik Arild Takle wrote: Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the last name is in the table more than once. This

[suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) that covers this. All they say is that it's good pract

[suspicious - maybe spam] [PHP] How to declare Vars in PHP?

2005-05-04 Thread Jon M.
I know it's not necessary, but I still want to know how. I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) tha

[PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
Name; in PHP??? Would it be ignored? Or would it screw up the interpreter? "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jon M. wrote: >> I know in JavaScript, that you declare vars like so: >> >> var = variableName; &

[PHP] How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-04 Thread Jon M.
I just found a place here: http://us2.php.net/manual/en/language.oop.php That has this example: /* This is how it should be done. */ class Cart { var $todays_date; var $name; var $owner; var $items = array("VCR", "TV"); function Cart() { $this->to

[PHP] Re: Thanks, I understand now

2005-05-05 Thread Jon M.
erdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jon M. wrote: >> So, are you saying that it is absolutely "PHP-illegal" to do: > > Yes, it is illegal. Inside a class definition you can define properties > like this, but for regular vari

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Jon M.
ever seen! Thank you VERY much for taking the time to write that, I am the kind of person who wants to completely understand a subject (not just "how", but, "why" as well), and now I completely understand this particular part of PHP. -Jon "Ryan Faricy" &

[PHP] Re: array diff with both values returned

2005-05-06 Thread pete M
but...I need it to work a bit differently. I have: $array1=array("name"=>"fred","gender"=>"m","phone="=>"555-"); $array2=array("name"=>"fred","gender"=>"f","phone="=

[PHP] Re: buffering headers before send

2005-05-07 Thread M. Sokolewicz
Claudio wrote: Hi, is there a way to buffering headers before sending like "ob_start()" ? Thanks, Claudio ob_start buffers both `normal` output AND headers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reducing size of htm output

2005-05-07 Thread M. Sokolewicz
ad/ practice according to w3... and you have the additional talk of replacing out // and /* .. */ comments. but if you really want to do it then: function ob_whitespace_removal($str){ // would need to dbl_check regex/modifiers return ob_gzhandler(preg_replace("/\s+/m", " &qu

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread M. Sokolewicz
Seems I'm going a bit too far here :) The URL quotes which states to denote JS between comment tags is from the HTML 4.0 page. I've been reading lots of XHTML recommendations lately, and have become accustomed to those. In those, when a

Re: [PHP] SQL Date guru in the house?

2005-05-11 Thread M. Sokolewicz
the european standard which is DD/MM/YY (and seemingly australian aswell). There's also the RFC standard which is MMDD. Well, back to the point. It doesn't work because with dates between M=1 and M=2, and D=1 and D=5, (US dates: 1/1/2005, and 2/5/2005), there aren't JUST the followi

[PHP] Re: MySql injections....

2005-05-11 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: Hi, This is not the proper list to put this question but i hope you can help me. Does anyone know a good tutorial about mysql injections? Thanks a lot for your help what's there to make a tutorial about? :| If you can get out of a value via a variable, then that means th

Re: [PHP] Refresh (F5) adds another SQL record.

2005-05-18 Thread M. Sokolewicz
Next time, Mukasa, try reading... Robert clearly states that he'd like a PHP function which TELLS him if the page has been refreshed or not (thus, "resent"). There are headers sent out that indicate this, and thus a function like refreshed() would be a shortcut to getting to know if it has. He

[PHP] Re: smarty

2004-04-14 Thread pete M
Moving our sites to smarty is the best thing we've done at our company... I do the php/database coding (logic) the html designer does the templates/css and the graphic designer does his bit. What's fantastic is that we never ever tread on each other files whilst working on a project, unlike derea

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
code that lot and remember its ALL to do with presentation ? pete Chris De Vidal wrote: pete M said: Moving our sites to smarty is the best thing we've done at our company... Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as mostly (not always) redundan

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
logic. Vicente Werner wrote: El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: pete M said: Moving our sites to smarty is the best thing we've done at our company... Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as mostly (not always) redundant. See my

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Hallman wrote: Apr 14 at 9:33am, Chris de Vidal wrote: pete M said: Moving our sites to smarty is the best thing we've done at our company. Just a few weeks ago, I'd have agreed wit' yah, but now I see Smarty as mostly (not always) redundant. see my post where

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
Actually where it =really speeds thing up is the prototype/research/planning etc We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That stuff then gets coded. Doddle Pete Vicente Werner wrote: El Wednesday 14 April 2004 13:33, Chris de Vidal escribió: pete M said: Moving

Re: [PHP] Re: smarty

2004-04-14 Thread pete M
>> + bound to the php-interpreter and cannot be used w/ other languages. this point is completely invalid... Haame me any other templating system that can be used across diffeerent languages ?? + content rendering process cannot be separated from the application > server. ITS NOT AN APPLICATION

Re: [PHP] smarty

2004-04-14 Thread pete M
Curt Zirzow wrote: :0 * ^Subject: Re: smarty /dev/null Curt agreed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP editor

2004-04-15 Thread pete M
I use dreameaver. Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but oine of the major problems is that it d

[PHP] Re: PHP editor

2004-04-15 Thread pete M
I code with pencil and paper then scan it with OCR ;-)) Arthur Radulescu wrote: Hello! This might sound like a stupid question but could anyone recommand a good PHP editor... I have used some editors until now but each one has some problems... Right now I am using PHPed which is pretty good but

Re: [PHP] Re: PHP editor

2004-04-15 Thread pete M
>> Unfortunately most of the $ signs usually get messed up... Because I'm in the UK I use £ instead of $ and do a global search and replace Richard Harb wrote: Finally somebody else who does it that way Unfortunately most of the $ signs usually get messed up... So ... which ocr program do you u

[PHP] Re: Bar/Line Graph Tool

2004-04-16 Thread pete M
http://www.aditus.nu/jpgraph/ By far the best I've seen is jpgraph, does Gantt too as well as 3d pie et all.. Easy to code 2 and the manual is cvomprehensive pedro Richard Hawkes wrote: Good morning gang, I'm looking for a snazzy line/bar graph class. I've got GD running, with just the bas

[PHP] session timeout

2004-04-16 Thread pete M
Am trying to increae the session lifetime to 8 hours ish using this code ini_set('session.gc_maxlifetime',28800); does not work ? any ideas Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: [PHP] smarty

2004-04-16 Thread pete M
y of skinning a cat ! pete Chris De Vidal wrote: Ben said: But i don't see an alternative in your "Example 3". Here was example 3 from my post: http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=2 $result = mysql_query ("SELECT * FROM user

[PHP] Re: Text Box question

2004-04-21 Thread pete M
Brent Clark wrote: Hi all I have a problem where, when I click on a link and when the page is finish loading I would like for the cursor to ready in the correct html text box. I cant seem to find a solution If anyone could help, that would be most appreciated Kind Regards Brent Clark Stick this i

[PHP] Re: Refresh a frame?

2004-06-10 Thread pete M
in Javascript frame_name.reload() Robert Sossomon wrote: I am in need of a way to reload a page within a frame as the other frames are used to modify the information. I have a 3-frame site now that I am using 1 frame as a list, another frame to add the information, and the 3rd frame to show the res

[PHP] Re: Sending email with php

2004-06-16 Thread pete M
I use phpMailer http://phpmailer.sourceforge.net/ makes mailing a doddle pete Phpu wrote: Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Please Send MIME Script

2004-06-22 Thread pete M
http://phpmailer.sourceforge.net/ Ryan Schefke wrote: Could someone please send me a function for MIME mail. I've been searching for the past 3 hours and haven't come across anything that is solid and works for me. I need the following: 1 - send MULTIPLE attachments 2 - send message in html an

[PHP] Re: Date Select

2004-06-25 Thread pete M
select * from table where week(date_field) = ( week(now()) -1 ) Tom Chubb wrote: How can I query a MySQL table to get the latest results from a date field? Basically, I am inserting several records at a time at the end of each week. I want to have a page that displays the results for the last week

Re: [PHP] Form Submission

2004-06-25 Thread Matt M.
> another button to the form that utilises my JavaScript popup function and > takes the values from the same form? This is not a php question. All you need to do is loop through the form fields on you page and add them to the end of your url. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Form Submission

2004-06-25 Thread Matt M.
> Thanks for your reply, the problem here is that if I loop through the values > and them to the URL when the other button is pressed to submit the form the > form action will still kink to itself rather than opening a new popup > window... that should stop form submission if they click your but

Re: [PHP] string function that adds before and after

2004-06-25 Thread Matt M.
> There's a number of functions in PHP that will give me the position of > the *first* instance of the matched string, but it doesn't look like the > function would keep searching after the first match. Anyway, am I > overlooking a function that already has the functionality that I'm > searching f

Re: [PHP] word count on record insertion

2004-06-25 Thread Matt M.
> I want to have something similar to this but as mentioned above want > something more reliable so does anyone know a php function to do this or > have a better option? http://us3.php.net/manual/en/function.str-word-count.php, also some good suggestions in the user comments -- PHP General Maili

[PHP] Re: mail program

2004-06-28 Thread pete M
http://phpmailer.sourceforge.net/ check the tutorials Syed Ghouse wrote: > Hi all > > i want to send more than 1000 mails from php program at a time.how can i send it and > will the execution of program become slow. > > pls reply to the above ASAP > > syed > -- PHP General Mailing List (h

Re: [PHP] Works in Mozilla, not in IE

2004-06-28 Thread Matt M.
> That just put me right back at the beginning, IE trying to DL the PHP > page... > > I have php 4.2.2 installed at this moment as well... there might be some things you could try in this thread http://marc.theaimsgroup.com/?l=php-general&m=108361967402210&w=2 -- PHP

[PHP] Re: Best external app from php

2004-06-30 Thread pete M
I had a similar scenario recently the way I tackled the problem was to set a "cron" to trigger a cli script every minute the script first checked a database to see if there was any jobs queued then processed in the background works a treat pete C.F. Scheidecker Antunes wrote: Hello all, I need

[PHP] mod_rewrite

2004-07-01 Thread pete M
Know this is off topic bu can anyone help with a tuotial of something - been looking everywhere All I want is a rule to rewrite www.example.com?page=mypage&id=20&this=that to www.example.com/mypage/20/this tia Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP]

2004-07-01 Thread Matt M.
On Thu, 01 Jul 2004 11:52:47 -0400, John Taylor-Johnston <[EMAIL PROTECTED]> wrote: > > Hi, > I need another variable. I need the filename itself. I want to substitute > > /var/www/html/new1/foo.html > > for > > /var/www/html/new1/phpinfo.htm I am not exactly sure what you want to do but I th

Re: [PHP] Malicious SQL

2004-07-07 Thread Matt M.
> SELECT autoQuesID, fldQuesTitle, fldBody FROM tblFAQ_Question WHERE > (blnHidden = FALSE AND ((fldBody LIKE '%$strCriteria%') OR (fldQuesTitle > LIKE '%$strCriteria%'))); Say $strCriteria comes from one of the values in the $_REQUEST array, a user change is coming through in that variable. so

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Matt M.
> 1. pull a list of products from the database > 2. truncate each product id down to it's first letter > 3. remove all the duplicates > 4. use this list to build the links. I would let sql do some of the work. select count(*) from products where product_name like 'A%' if count does not return 0

Re: [PHP] How to handle cookies?

2004-07-09 Thread Matt M.
> How can I handle this cookie when using php? Is there an easy way? It > would be best just to use fopen("http://...";). http://pear.php.net/package/HTTP_Client -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page Loading Problem

2004-07-09 Thread Matt M.
> Anyone have any ideas why this happens??? You have any code examples? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eregi_replace()

2004-07-09 Thread Matt M.
> $mydata->JR = eregi_replace($searchenquiry, "".$searchenquiry."", > $mydata->JR); > echo $searchenquiry; > > What I should display is if $searchenquiry = $mydata->JR in a case insensitive way > then > echo "".$searchenquiry.""; > > Do I use if (x =~ b) {} or some sort of string compare or ...

Re: [PHP] eregi_replace()

2004-07-09 Thread Matt M.
> The problem is $searchenquiry would be contained inside $mydata->JR so I would need > to see if it exists and then put ... around it, without changing the original > case. what do you have in $searchenquiry? try this echo preg_replace ('/('.$searchenquiry.')/i' , "$1", $mydata->JR); -- PH

Re: [PHP] after submitting, working with data on same page

2004-07-09 Thread Matt M.
>:if ($calcentry) {...}part of my code and do some calculations with php and mysql >and put my output into textarea2. if ($_POST['calcentry'] == 'Calc Your Entry') { } is one way to do it >So my first question is how do I keep the data in textarea1 so when I perform my >submit I can do some calc

Re: [PHP] eregi_replace driving me nuts

2004-07-09 Thread Matt M.
> What I'm trying to do: > > I'm trying to have the proper variables for the eregi_replace so that each > word in the $dico array is replaced by a link to its definition respecting > the following rules : > -only exact match makes a link to the definition, for example : > - "abaisseraient" do

Re: [PHP] eregi_replace()

2004-07-09 Thread Matt M.
> $searchenquiry = "Never cry Wolfe" > and > $mydata->ST contains "... Never Cry Wolfe ..." > > This code echos: > ".preg_replace ('/('.$searchenquiry.')/i' , "$1", > $mydata->ST)."  > > ... Never cry Wolfe ... > > But I want it to use the original text and echo: > > ... Never Cry Wolfe ... I

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Matt M.
> setcookie("cookie[name]","$_POST['name']", time()+86400) > setcookie ("cookie[email]","$_POST['email']", time()+86400) > setcookie ("cookie[bgcolor]","$_POST['bgcolor']", time()+86400) > setcookie ("cookie[tcolor]", "$_POST['tcolor']", time()+86400) > > ?> you could try this: setcookie ('val

Re: [PHP] PHP and Excel

2004-07-13 Thread Matt M.
> I want to use a large Excel sheet in a website. The Excel sheet exists of > lots of functions and the developer of it is a financial person who is used > to programmning in Excel, not in other "programming languages". How can i: > insert the data that's filled in in several forms on web pages (i

<    1   2   3   4   5   6   7   8   9   10   >