[PHP] Looking for PHP job in US

2001-08-22 Thread Gregory
with iPlanet web server. Developing WAP sites. Integrating PHP with various tools and extensions. CGI programming. Using Zend engine. More then 3 years working with Photoshop, ImageReady, Fireworks, Flash (versions from 1 to 5). References are available. No visa sponsorship is required. Best regards, Gregory

[PHP] Re: Sorting IP Address Data

2001-08-22 Thread Gregory
| etc using split() function and sort it by one of the dimensions with array_multisort and then make every line of this table a string with something like implode(). :)) Gregory. Chris Aitken [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, Just a q

[PHP] Re: GET method and forms....

2001-08-22 Thread Gregory
Use button element instead of submit like this: button onClick=this.form.submit() value=Submit this form Gregory Seb Frost [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... how do I prevent getting submit=shop%21 in the url window? form method=GET action=p

Re: [PHP] Has anyone tried to make telnet client with php?

2001-05-11 Thread Gregory
Thanks! This works. And this give me a clue how to work on it. Grishick. - Original Message - From: Thies C. Arntzen [EMAIL PROTECTED] To: Grishick [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, May 11, 2001 1:39 AM Subject: Re: [PHP] Has anyone tried to make telnet client with

[PHP] postgres session handling

2001-12-17 Thread James Gregory
I have need to get php to use postgres to store session information. I've changed the directive in php.ini and written a set of functions that should do the job and I've made the call to set the session handler. The following simple test case works: ? require_once ('database.php');

[PHP] redirect / soft links

2002-02-26 Thread gregory hernandez
hello everyone. which would be a better practice?: 1) using php/javascript to redirect pages or 2) creating a soft (symbolic) link in UNIX and why (if possible)? thanks in advance. gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] impossible to delete file after 'parse_ini_file'

2002-03-07 Thread Gregory Collette
php script : ?php $ini_array = parse_ini_file(conf/conf.php); echo($ini_array[var1]); ? content of conf/conf.php : [data] var1 = xxx After execution of the php script, it is impossible to delete the conf.php file. Any idea ? greg -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php, text file, and mysql

2002-03-07 Thread gregory hernandez
, of course with it contents) into a mysql? in other words, i don't want to read the contents of the file and insert the contents into a field in mysql. i want to insert the actual file into the database. is this possible? thanks again in advance. gregory on 3/7/02 12:44 PM, Erik Price at [EMAIL

[PHP] Re: impossible to delete file after 'parse_ini_file'

2002-03-11 Thread Gregory Collette
Running on win nt ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alguine me puede Ayudar...S.O.S...mi PHP no sube .....!!!!

2002-06-04 Thread Gregory Watson
Ok, here's that email in English, if anyone can help this guy... I can't unfortunately. Hello It is that I have problems so that works PHP in a servant NT 4,0 with IIS 3,0 and this PHP does not work to see. 4.2.1) since when doing some of the examples that no encloses (codigos) works. Hicela

[PHP] PHP and PDF

2002-07-01 Thread Gregory Hernandez
is accessed, and automatically print this NUMBER on the form that sits on the server. is this possible? thanks in advance. gregory [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] PHP and PDF

2002-07-01 Thread Gregory Hernandez
, thanks in advance. gregory [EMAIL PROTECTED] Brian McGarvie [EMAIL PROTECTED] - 7/1/02 11:50 AM Actually I just for a brilliant Free PDF library... www.fpdf.org Excellent tutorials/docs... Use PHP to dynamically generate your forms and include any info you wish from a database i.e. the ID

[PHP] Virtual includes

2002-08-26 Thread Gregory Barker
Hi all, I'm trying include .php files which reside in alternative directories or sub-directories. Such as a file which reside in www/chat/page.php, and for this page I would like to include a file which resides in www/forum/include/ I've tried the following which just results in a error: include

Re: [PHP] setcookie IE6 problem

2002-08-29 Thread Gregory Barker
MS has introduced p3p policy in IE6 which has impacted on cookies etc. If the site or host does not have a machine generated xml privacy statement, then stability with regards to cookies is not guaranteed. Do a search and read up about it. Check out w3c's site. - Original Message - From:

[PHP] class name in static functions

2001-09-25 Thread James Gregory
HI!!! Is it possible to get the name of the class from a static member function for which no object has been instantiated? THANKS! James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Private functions

2001-09-19 Thread James Gregory
Hi, Is there a way to make a function 'private' in a php class? I'm guessing there isn't since I haven't been able to find reference to it in the php docs, but if this is the case, is there some way I can emulate private scoping? thanks, James. -- PHP General Mailing List

[PHP] File upload using form

2001-05-09 Thread Gregory Eycken
Hi! %-) The code below makes a form. This form creates a temporary file that contains the data of the original source file. This temp file is sent to the server using FTP. On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is exactly the same as the original file and so

[PHP] File upload using form

2001-05-09 Thread Gregory Eycken
Hi! %-) The code below makes a form. This form creates a temporary file that contains the data of the original source file. This temp file is sent to the server using FTP. On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is exactly the same as the original file and so

Re: [PHP] Recursively create directories

2001-05-15 Thread Gregory Hernandez
Hello. I just registered to the listserv about two weeks (my 1st time typing here). I'm just curious, if you don't mind me asking. I'm just trying to learn more. But, would someone list any scenarios in which one would want to create directories recursively by using php? Thanks in advance.

[PHP] php, apache, mysql

2001-05-21 Thread Gregory Hernandez
hello everyone. ok, here's a question. i'm running MacOS X. i had previously installed php and apache with no problem. this past weekend, i installed the unofficial latest version of mysql, MySQL 3.23.38, the version packaged for of course MacOS X. I noticed that mysql was installed on a

[PHP] Re: possible to move_uploaded_file to a variable instead a file?

2007-06-17 Thread Gregory Beaver
Mark wrote: hey, i`m wondering if it`s possible to move a uploaded file inside a variable. i would like to know this because i`m currently writing a database backup script and in there the user uploads a sql file that gets executed. now i _don`t_ want the file to be stored on the server!!

[PHP] cant get if logic correct..

2007-08-15 Thread Gregory Machin
) and ($mark)){ //do alot of something lol } } -- Gregory Machin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php 5 and ms sql server express won't play nice !

2007-08-16 Thread Gregory Machin
, both are installed on the same machine (xp pro)... this it the error I keep getting Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: SQLEXPRESS in C:\wamp\www\test\test.php on line 8 Couldn't connect to SQL Server on SQLEXPRESS Many Thanks in advance -- Gregory

[PHP] Re: pecl in php5?

2007-08-16 Thread Gregory Beaver
Per Jessen wrote: I'm trying to install the pecl mailparse extension, but I'm not getting very far: pecl install mailparse pecl/mailparse requires PHP extension mbstring No valid packages found install failed mbstring does not seem to be a php extension, and in any case I built php

Re: [PHP] php 5 and ms sql server express won't play nice !

2007-08-17 Thread Gregory Machin
it comes to connecting to it. :-) Hope this helps. Kirk On 8/16/07, Gregory Machin [EMAIL PROTECTED] wrote: Hi I have tried most of the configuration options in the php manual / examples http://www.php.net/function.mssql-connect and I just can't get it to connect I'm running WAMP5

[PHP] Re: Database includes

2007-08-26 Thread Gregory Beaver
Bruce Cowin wrote: I'm curious as to how everyone organises and includes their classes in PHP5. Let's take a simple example that has 3 classes: customer, order, and database. The database class has a base sql db class (I know there is PDO and other things but this class is already written

[PHP] zlib.inflate vs. gzopen/fread

2007-09-08 Thread Gregory Beaver
Hi all, I've run into a peculiar situation where the inflate implementation in the zlib.inflate filter fails to successfully inflate a gzipped file created using gzopen/gzwrite. The file is really quite simple. To replicate, download http://pear.php.net/get/PEAR-1.6.1.tgz and run this script:

[PHP] Re: Questions about overloading and visibility in PHP5

2007-09-18 Thread Gregory Beaver
Steve Brown wrote: I've been doing a bunch of reading about objects and overloading in PHP5, but I've got a couple of questions that I can't seem to find the answer to online. Suppose the following code in PHP5.2.4: ?php class foo { public $x; private $z = 'z';

[PHP] Re: http://go-pear.org?

2007-10-04 Thread Gregory Beaver
Steve Brown wrote: I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't seem to be resolving. Pear manual states I should: curl http://go-pear.org/ | php but this fails and dig go-pear.org reveals that the name does not resolve. Is there a package somewehre I can

Re: [PHP] Displaying MySQL results on runtime

2006-09-27 Thread Leif Gregory
Hello Mário, Wednesday, September 27, 2006, 10:25:31 AM, you wrote: Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? Echo the sql statements... -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP

Re: [PHP] Send process to background

2006-10-13 Thread Leif Gregory
Hello André, Friday, October 13, 2006, 10:42:58 AM, you wrote: Evidently, this will take a while. My first requirement was that it should _NOT_ deppend on external libraries (ie. pecl, modules and such). It has to be self-sustained. As such, it will take a bit longer to execute. Not knowing

[PHP] looking for the developer of webcbq

2006-10-17 Thread Gregory Machin
* on line *51* *Notice*: Undefined variable: modificarRegla in * /var/www/html/webcbq/children.php* on line *63* *Notice*: Undefined variable: cambiarNombre in * /var/www/html/webcbq/children.php* on line *72* Many thanks -- Gregory Machin [EMAIL PROTECTED] www.linuxpro.co.za

Re: [PHP] Comment management

2006-10-23 Thread Leif Gregory
Hello tedd, Monday, October 23, 2006, 1:53:41 PM, you wrote: Well... I was afraid that someone would say that (paint me into a corner). I just wanted to check before launching my own home-grown solution and then having everyone say Why didn't you use so-and-so's 'comment manager' ? Sorry,

[PHP] Re: PEAR installation error

2007-01-02 Thread Gregory Beaver
Hi Alistair, There was a snafu in the PHP release process, PHP 5.2.0 shipped with an outdated go-pear.phar for some reason, you can fix this by downloading http://pear.php.net/go-pear.phar and saving it as PEAR/go-pear.phar in the unzipped windows distribution. Then, when you run go-pear.bat it

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Gregory Beaver
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: David CHANIAL wrote: We are preparing the upgrade of PHP for our customers, but, after some tests, we have a migration problem caused by the news E_RECOVERABLE_ERROR. So, even if the upgrade guide

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Gregory Beaver
Robert Cummings wrote: On Thu, 2007-01-04 at 10:54 +, Roman Neuhauser wrote: echo $blah . \n is *not* equivalent to printf(%s\n, $blah) H, could you explain to me how it is different? I would always use the former unless I specifically needed formatting provided by printf(),

[PHP] Re: most powerful php editor

2007-01-20 Thread Gregory Beaver
Vinicius C Silva wrote: hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor? I am Yours, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installing PEAR on machines without internet access.

2008-06-21 Thread Gregory Beaver
Lester Caine wrote: I've been going through the hoops documenting installation and recovery notes for my customer sites. The majority of these run local web services with no internet access from the servers, so with the increasing reliance on PEAR extensions, I'm looking to the correct way to

Re: [PHP] Accessible HTML - OT

2005-05-10 Thread Leif Gregory
(maybe I didn't look hard enough). Recently I decided to write a tutorial on Web Accessibility and XHTML 1.0 Strict so that I could learn them. If you're interested, it's at: http://www.devtek.org/test Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Leif Gregory
Hello balwant, Tuesday, May 10, 2005, 5:59:15 AM, you wrote: b is there any method to know whether the other webserver is running b or not. http://us2.php.net/fsockopen You'll be doing what's termed an HTTP Ping. You make a socket connection to the other server, perform a GET request on a page

Re: [PHP] number format?

2005-05-10 Thread Leif Gregory
Hello Dustin, Tuesday, May 10, 2005, 9:34:10 AM, you wrote: D I have a number like -56.98 D I need to convert it to -5698. I tried ?php $num = -56.98; $newNum = str_replace(.,,$num); echo newNum = . $newNum; $add50 = $newNum + 50; echo brAdd50 = . $add50; $sub50 = $newNum -50; echo brSub50

Re: [PHP] Re-initiating an autostarted session

2005-05-11 Thread Leif Gregory
Hello Ville, Wednesday, May 11, 2005, 12:32:07 PM, you wrote: V session_destroy(); V session_regenerate_id(); V session_write_close(); V Header(Location: ...); V exit; I honestly don't know if it's the right way, but I ran into a similar issue a while back. I did it this way:

Re: [PHP] using require

2005-05-14 Thread Leif Gregory
for people who already haven't authenticated. If you're not familiar with sessions, the key thing to remember is you need to do a session_start(); somewhere in the page prior to reading or writing session variables. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize

Re: [PHP] upload videos (might be a bit 0T)

2005-05-19 Thread Leif Gregory
Hello Ryan, Thursday, May 19, 2005, 10:57:55 AM, you wrote: R Any suggestions on how to do this? Normal upload form with PHP and R increase timeout on server? or some P2P method? I dont think they R know much about FTP or i would have given them a directory on the R server to upload to. Have

Re: [PHP] Bar codes

2005-05-20 Thread Leif Gregory
Hello Emil, Friday, May 20, 2005, 4:45:49 AM, you wrote: E I've never done anything like this before, do you know of any good E starting points? I don't know anything about bar codes. http://www.phpclasses.org and search for barcode -- Leif (TB lists moderator and fellow end user). Using The

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-20 Thread Leif Gregory
Hello Graham, Friday, May 20, 2005, 12:46:28 PM, you wrote: G Can the server variable 'user agent' be modified/spoofed by the G user? Oh yeah Firefox and Opera are easy to change. -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.5 Return RC9 under Windows XP 5.1 Build

Re: [PHP] php forum and (almost certainly 0T) client editor

2005-05-31 Thread Leif Gregory
Hello Ryan, Tuesday, May 31, 2005, 7:59:10 AM, you wrote: R Can anybody recommend a real bare bones forum that i can modify or R a tutorial for creating a forum or URLs/Classes etc to help me R create a simple forum? ??? That's a hard question to answer. You could make it real bare bones and

Re: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Leif Gregory
Hello Martin, Sunday, May 29, 2005, 9:24:00 PM, you wrote: M I saw files like file.inc.php and file.inc M What is the *.inc suffix good for ? It's good for a lot of trouble if the webserver hasn't been set up to parse .inc files as PHP. If it hasn't then someone can request that file in a

Re: [PHP] What Works Works Validator

2005-06-02 Thread Leif Gregory
Hello Richard, Wednesday, June 1, 2005, 3:16:50 PM, you wrote: R Does anybody know of a What Works Works Validator which checks R for maxiumum browser compatibility rather than the W3C standard? E. Got it listed on my XHTML test page at: http://www.devtek.org/test (In the resources section

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 2:47:51 PM, you wrote: M Ok all - I've been playing with this print styl sheet thing. I can M get the media=print to behave correctly, but I cannot get table M background colors set. I want to print the table bg colors and M background images. I was hoping this

Re: [PHP] Beautiful HTML Invoice - Prints like crap! I need somesuggestions!

2005-06-09 Thread Leif Gregory
Hello Matt, Thursday, June 9, 2005, 3:34:30 PM, you wrote: M Yeah I do understand this. That is primarily what I was trying to M find a workaround for. It doesn't seem like CSS will save me on M this one. I can't seem to get table borders to look identical in M ff/ie using CSS they render

[PHP] php mysql field update not looping properly ..

2005-07-29 Thread Gregory Machin
) ? -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support and admin) +27 72 524 8096 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] php array and java fold out menu

2005-07-29 Thread Gregory Machin
Hi . Please could you advise. I'm insearch of a java fold out menu that looks good, and can acept an array containg the links and link names etc from a php array ... i havent worked in java script yet so please help :-)... Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED

[PHP] logging in using ssl

2005-07-29 Thread Gregory Machin
Hi Please advise . I have a site that needs to move over to ssl only when the user login authenticates the log in .. How would i go about this, the cms is exponent writen in php.. Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable

[PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
HI Please advise. I'm using exponent cms and I creating a technical site, I want to display code examples , how do I do this and with syntax highlighting, -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info

Re: [PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
For anyone who would like a clear answer to the question i politely asked, here is a good artical .. http://www.sitepoint.com/article/highlight-source-code-php Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info

Re: [PHP] diplaying code in pages and forums ??

2005-08-05 Thread Gregory Machin
Let the flaw wares begin .. sorry guys who have limited bandwith and limited email boxes .. Bla Bla BLA.. On 8/5/05, John Nichel [EMAIL PROTECTED] wrote: Gregory Machin wrote: For anyone who would like a clear answer to the question i politely asked, here is a good artical .. A husband

[PHP] Creaing a foldout menu from an array.

2005-08-07 Thread Gregory Machin
problem is I cant figure out the correct loop / logic to put the ul tags in the rite places etc.. Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support

Re: [PHP] need to convert field names into array for form submission

2005-08-12 Thread Leif Gregory
Hello Bruce, Friday, August 12, 2005, 1:39:54 PM, you wrote: I believe this can be done with an array. any assistance is greatly appreciated! I've been working on a validation function for quite a while now that does what you're asking. I keep adding to it as I run across stuff I didn't need

[PHP] Trying to figure out contents stored in db field

2005-08-14 Thread Gregory Machin
the properties of the object, I cant find the file that holds classe that it uese .. Any ideas ? Many Thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) www.goeducation (support

Re: [PHP] Trying to figure out contents stored in db field

2005-08-14 Thread Gregory Machin
thanks will try it .. On 8/14/05, Scott Noyes [EMAIL PROTECTED] wrote: Unserialize it, and then use var_dump() to see what the object contains: var_dump(unserialize($location_data)); On 8/14/05, Gregory Machin [EMAIL PROTECTED] wrote: Hi The cms exponent story some data in a serialized

[PHP] I fixed the logic :-) --- Recursive Array on outputing correctly

2005-08-16 Thread Gregory Machin
of else } // end of foreach loop } // end of function //echo ul; echo ul id='nav' ; display_menu($txt); ? -- Many Thanks Gregory Machin (flamer) 072 524 8096 www.linuxpro.co.za [EMAIL PROTECTED] Agent for iberry.info hosting solutions -- -- PHP General Mailing List (http://www.php.net

Re: [PHP] regular expression for time

2005-08-29 Thread Leif Gregory
Hello babu, Monday, August 29, 2005, 6:50:32 AM, you wrote: how can i write regular expression for time in 24-hour format i:e, HH:MM:SS. using preg_match. ?php $xtime=19:59:53; if (preg_match(/([01][0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9]/, $xtime)) echo Good; else echo Bad; ? --

Re: [PHP] Mailto members..?

2006-03-06 Thread Leif Gregory
Hello John, Wednesday, March 1, 2006, 11:38:15 AM, you wrote: Outside of being a major spam flag, and possibly reaching the limits of your smtp server. Agreed... Sending mass mail via BCC is going to be nothing but headaches. I've been down that road a number of times. --

[PHP] test security of code

2006-03-07 Thread Gregory Machin
Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support

Re: [PHP] test security of code

2006-03-08 Thread Gregory Machin
Thanks looks good will read on further . On 3/9/06, Chris [EMAIL PROTECTED] wrote: Gregory Machin wrote: Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread Gregory Machin
Problem found ... IE doesn't understand comments '//' in style sheets .. so the line I had commented out refering to the background image in the style sheet was over riding my code later in the page.. On 3/29/06, Jochem Maas [EMAIL PROTECTED] wrote: Gregory Machin wrote: Hi I have a site

Re: [PHP] Any good free easy converting tool?

2005-10-13 Thread Leif Gregory
Hello Gustav, Wednesday, October 12, 2005, 12:55:11 PM, you wrote: Someone know of any good free tool for converting from Access to Mysql. I just need to import certain tables into an already existance database. DBTools (freeware) http://www.dbtools.com.br/ I use it quite a bit. --

Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Leif Gregory
Hello Bruno, Wednesday, October 19, 2005, 10:08:24 AM, you wrote: Look the main page and try to read any message... I dont know what can i do to fix it... nl2br() (see php manual) -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B __

Re[2]: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-22 Thread Leif Gregory
Hello Richard, Saturday, October 22, 2005, 6:37:14 PM, you wrote: Otherwise, it's compiled into the DLL and you are stuck. A Windoze shortcut WILL NOT WORK One of the easiest ways to ensure you're using the php.ini file you want is to create the following registry key:

Re: [PHP] Type of form element

2005-10-28 Thread Leif Gregory
Hello Shaun, Friday, October 28, 2005, 9:00:05 AM, you wrote: Is it possible to loop through all $_POST values to see if it is a checkbox? If so then for that element if it is equal to 'on' then change it to 1 otherwise change it to 0? Yes and no. 1. You can't determine by the POST variable

Re[2]: [PHP] Regex for Amateur Radio Callsigns

2005-11-16 Thread Leif Gregory
Hello Leonard, Tuesday, November 15, 2005, 8:39:19 PM, you wrote: Here are how they look W1W W1AW WA1W AD4HZ N9URK WB6NOA 4N1UBG Let's do it this way... What are the rules for a valid callsign? i.e. - If it's only three characters, it must start with a letter. - All callsigns must have

Re: [PHP] cms type session - how to ?

2005-11-23 Thread Gregory Machin
, November 22, 2005 3:24 am, Gregory Machin wrote: I'm looking for a how to , on creating sessions similar to those used my cms's that ref only a single page.. http://php.net/session_start ??? I don't understand what you mean by that ref only a single page and suspect not many others

Re: [PHP] understanding session vars ?

2005-11-24 Thread Gregory Machin
/a href=test.php?action=y?php echo strip_tags(SID); ?link2/a/html thanks On 11/24/05, David Grant [EMAIL PROTECTED] wrote: Gregory, Are you always setting $_SESSION['menu'] to the contents of $_GET['menu']? If so, the second link will set $_SESSION['menu'] to null. You need to check

Re: [PHP] understanding session vars ?

2005-11-24 Thread Gregory Machin
My test code is for test.php which is intended to call it's self, and starts with sesstion_start(). buy does not disply x after link2 is clicked on, but only y.. what am I missing ? Thanks On 11/24/05, David Grant [EMAIL PROTECTED] wrote: Gregory, Values in the $_SESSION superglobal

Re[2]: [PHP] What software do you use for writing PHP?

2005-12-07 Thread Leif Gregory
Hello Miles, Wednesday, December 7, 2005, 8:56:23 AM, you wrote: Why these clumsy interfaces? Just plug the Firewire in your ear! So that's where it's supposed to go!?!?!? I've been doing it wrong all this time, not to mention it made sitting so very uncomfortable. grin --

Re: [PHP] php + mysql - timstamp - calculate hours remaining

2006-01-12 Thread Gregory Machin
Many Thanks for the help. OP 2 worked a treat.. now i need to run it at midnight, I was going to write a php script and call it vai crontab, but how could I iplament this a triger and stored procedure ? On 1/10/06, M. Sokolewicz [EMAIL PROTECTED] wrote: David Grant wrote: Gregory

[PHP] hiding the index.php page.

2006-01-23 Thread Gregory Machin
Hi I would like to know how i would hide my index page so that it is not shown at the end of the url like how gmail does it and many cms do it .. And what is it called when one does this .. Thank you -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web

[PHP] php and consol interface

2006-01-29 Thread Gregory Machin
-- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096

[PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Gregory Machin
Hi I'm looking for a good example of writing multidimensional arrays, and reading them back . Thanks for you time . -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27

Re: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Gregory Machin
Thanks for you input. I will lookinto alt the sugetions. Many thanks/. Have a grate day . On 1/30/06, Jochem Maas [EMAIL PROTECTED] wrote: Gregory Machin wrote: Hi I'm looking for a good example of writing multidimensional arrays, and reading them back . serialize() and alternatively

Re: [PHP] need a php multiple/mysql choice quiz

2006-02-20 Thread Leif Gregory
Hello Ross, Monday, February 20, 2006, 8:49:55 AM, you wrote: I am looking for a php/mysql multiple choice quiz. One that saves the answers to a database. A basic example I can expand on is all that is required. http://www.hotscripts.com/PHP/Scripts_and_Programs/Tests_and_Quizzes/index.html

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Zouari, Thursday, January 27, 2005, 7:33:04 AM, you wrote: Z I need to verify if $x is between 1 and 20 and i need to do that Z with regular expressions ? If you *need* to do it with regexp, try this: if (preg_match(/[2-19]/,$x)) echo It is!; If 1 and 20 are

Re: [PHP] Cannot connect to Database

2005-01-27 Thread Leif Gregory
Hello Supersky, Thursday, January 27, 2005, 8:55:04 AM, you wrote: S But I cannot, and I see Fatal error: Call to undefined function S mysql_connect() in 1. Make sure you uncomment the extension=php_mysql.dll in your php.ini 2. Copy the php_mysql.dll to your Windows/System folder 3. Restart

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Zouari, Thursday, January 27, 2005, 8:53:55 AM, you wrote: Z doesnt work ! Z this is working fine : Z if (eregi(^-?([1-3])+$,$x) Z echo x is 1 or 2 or 3; Whoops. Sorry.. That's what I get for throwing out an answer while on the run: Try this: ?php for ($x=0; $x 120; $x++) { if

Re: [PHP] regular expressions ?

2005-01-27 Thread Leif Gregory
Hello Rick, Thursday, January 27, 2005, 12:36:39 PM, you wrote: R /^(1?[1-9]|[12]0)$/ works too. The first part covers 1-9, 11-19; R the second part gets you 10 and 20. R Plus, it's ever so slightly shorter! And isnt' that what's most R important? :P Purty :grin: -- Leif (TB lists

Re: [PHP] Cannot connect to Database

2005-01-27 Thread Leif Gregory
Hello Supersky, Thursday, January 27, 2005, 1:37:12 PM, you wrote: S Thank you for your help. I have done what you told me to do. But it S doesn't work. Does phpinfo(); output anything like below (except it looks prettier! :grin: )? mysql MySQL Support enabled Active Persistent Links

[PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
$upperLowerNumber = rand(1,10); controls the so called seed for the script because I placed constraints on how often uppercase and numbers could appear. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

Re: [PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
Hello trobi, Saturday, January 29, 2005, 12:05:33 PM, you wrote: t whatabout uniqid()? He also wanted symbols [EMAIL PROTECTED]*() etc. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site http

Re: [PHP] Server Uptime

2005-02-13 Thread Leif Gregory
very well. He's got a lot of neat code in his beta 2 version for pulling all sorts of info off Windows systems. If you're not on a Windows server, *nix might have a file other than pagefile.sys that you could do the same thing with. Cheers, Leif Gregory -- TB Lists Moderator (and fellow

Re: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Leif Gregory
Hello Dave, Tuesday, February 15, 2005, 8:37:02 AM, you wrote: D while ($tantoData = mysql_fetch_array($tantoResult)) D { D $tantoEmail = $tantoEmail . , . $tantoData; D } D mail($tantoEmail, $subject, $mailcontent, $addHeaders); Everything looked good up to here.

Re: [PHP] Many forms in one php file

2005-02-15 Thread Leif Gregory
Hello NSK, Tuesday, February 15, 2005, 8:21:43 AM, you wrote: N After the user completes and submits Form1, the script will process N it and display a different form. etc... There's a boatload of ways to do this, but here's a real simple one to get you rolling. I'll leave it up to you to make

Re: [PHP] PHP Post method HTTP 404

2005-02-16 Thread Leif Gregory
Hello Stefan, Wednesday, February 16, 2005, 12:32:55 AM, you wrote: S I've a strange problem When I try to send a form with method=POST S to a php-file I always get an HTTP 404 error. I really don't know S why, because the file exists on the server. Can you show us the code for the form? --

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Jay, Wednesday, February 23, 2005, 11:05:51 AM, you wrote: How can I convert sentences like this. To be upper and lower case. J http://www.php.net/ucfirst That won't work because it'll only capitalize the first letter of the string. Since his string contains more than one sentence he

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Chris, Wednesday, February 23, 2005, 11:49:32 AM, you wrote: C And on top of that he'll need to convert all 'i' to 'I' because of C step 1. You and Mattias both have valid points. The only other thing I can think of is a regexp that is searching for a period and a space then does a

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Mattias, Wednesday, February 23, 2005, 12:35:21 PM, you wrote: M Oh, and sentences may end with other characters, too. Notably ! M and ?. Nuh-u Prove it!(Oh dang..) grin -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Leif Gregory
Hello Will, Wednesday, February 23, 2005, 2:39:27 PM, you wrote: W On this subject, is there anything 'wrong' with using $_REQUEST W instead of specifying between $_POST and $_GET? $_REQUEST includes POST, GET, and cookies. It basically boils down to knowing where the information is coming

Re: [PHP] Identifying a user who previously created a profile

2005-02-25 Thread Leif Gregory
Hello Jacques, Thursday, February 24, 2005, 3:02:09 AM, you wrote: J I thought of capturing his IP Address and checking this value J against my users table in my database where I have captured IP J Addresses of users who have previously registered. Good luck. There isn't a way that I know of

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D on which page of php.net can I find out what this code does? D $a = $b? $a :dian; It's called a ternary operator, basically an if-else statement. There really isn't a page (that I've found) that explains in on php.net, but

Re: [PHP] help with adding

2005-02-25 Thread Leif Gregory
Hello Jay, Thursday, February 24, 2005, 8:39:16 AM, you wrote: J I have messed with this for a couple of days and cant get it right. J Maybe I need sleep :-) J The question is, how would I take add each of these numbers (10+5+25)? for ($i = 1; $i = $sendnum; $i++) { $qty = $_POST['qty'.$i];

  1   2   3   >