Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Greg Militello
-exif.inc:1488 Not to mention a C extension would be faster, and more effiecient. Thanks for the head up, but I doubt it will do all I need at present. -Greg Marek Kilimajer wrote: Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing

Re: [PHP] A complete EXIF extension?

2003-09-10 Thread Greg Militello
Also phpExifRW is not able to parse the EXIF format of all the different camera types I need it to. -Greg Marek Kilimajer wrote: Try http://www.phpclasses.org/browse.html/package/1042.html Greg Militello wrote: Hey all, I've been dealing with EXIF data in images for a while now. Re

[PHP] Re: Control Structure problem

2003-09-16 Thread Greg Beaver
Hi Dan, if ($var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something } Regards, Greg -- phpDocumentor http://www.phpdoc.org Dan J. Rychlik wrote: This doesnt work as expected. if ( $var === "TEST ONE" || "TEST TWO&

[PHP] Re: oop problems code

2003-09-18 Thread Greg Beaver
Orlando, Displayer also inherits the constructor from Employee, so you must define function Displayer() to prevent the notices. I don't think you want to extend from Employee with Displayer - it should accept an Employee object, and display the information, perhaps. Regards, Greg Orlando

RE: [PHP] Subcategories in php

2003-09-20 Thread Greg Donald
mplete script that contains all the code you would need: http://destiney.com/pub/phplinks_2.1.2.tar.gz -- Greg Donald [EMAIL PROTECTED] 615-746-9414 home 615-594-6052 cell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help! the Error_Reporting doesn't work

2003-09-25 Thread Greg Beaver
Um, E_ALL & ~E_NOTICE disables notices. Try E_ALL Greg Luckyeagle wrote: I write some PHP files including some errors When it runs on another server,it will display "notice",but on my computer,it won't. "Luckyeagle" <[EMAIL PROTECTED]> дÈëÓʼþ news:[EMAI

[PHP] Re: static class call..

2003-09-26 Thread Greg Beaver
; } } Greg -- phpDocumentor http://www.phpdoc.org Jswalter wrote: Is there a way that a method within a Class, when called statically, can access a property of that Class? Class Foo { var $_TintBaz = 9; function getBaz() { return Foo::_TintBaz; // <-- lin

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
Hi Damon, Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there. Greg Damon Kohler wrote: Well, it does turn off. At least phpinfo() says that it's off. However, PHP is acting as though it's still turned on. The s

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
ined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php? Greg Damon Kohler wrote: Don't know anything about an auto_prepend_file. There is no .htaccess file. Beside, phpinf

[PHP] Re: register_globals won't turn off!

2003-09-27 Thread Greg Beaver
anges don't show up, it's reading a different php.ini, which can be a bit loopy. Greg Damon Kohler wrote: I added the error_reporting line and it doesn't seem to make any difference actually. No warnings or notices. Yes, I can recompile PHP. Damon "Greg Beaver" <[E

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
return 4; } else { return 5; } } ?> The other function I have does this: /* * nth_day * * A function that takes a number and a day and returns the date of * nth occurrence of that day in the given month and year. * * Arguments: * nth

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
No problem, just glad it's found some wider use. Cheers, Greg. > -Original Message- > From: Phil Dowson [mailto:[EMAIL PROTECTED] > Sent: 29 September 2003 17:55 > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How many Mondays in a month? > > Greg, > >

RE: [PHP] How many Mondays in a month?

2003-09-29 Thread Greg Wiley
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > > Greg Wiley wrote: > > Funny you should ask this because I've been meaning to > share some code > > that I wrote a few months ago that does exactly this for > any day of the wee

RE: [PHP] How many Mondays in a month?

2003-09-30 Thread Greg Wiley
it's not a "page" in itself. I use it in a form that display checkboxes for each Sunday in a month. Someone else may use it by providing the arguments via a form in the manner you suggest. The function, however, is just that, a function. Cheers, Greg. -

RE: [PHP] Form Actions

2003-09-30 Thread Greg Wiley
ing you like, on mine it identifies the domain the form was submitted from (though thinking about this now I can do this without a hidden value, but you get the idea!). The problem with this is that it means you have to have a separate copy of each form unless you can construct the hidden input val

[PHP] Date Sorting

2003-10-01 Thread Greg Wiley
do this in the php code that processes the submission. There is no year info such that I could turn the dates into timestamp and sort that way. Has anyone got any code that can sort this correctly? Cheers, Greg. -- Greg Wiley http://wileysworld.org/ -- PHP General Mailing List (http://w

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
omeone else suggested this and I think this is the method I shall use. Cheers, Greg. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
> -Original Message- > From: Greg Wiley [mailto:[EMAIL PROTECTED] > > > -Original Message- > > From: Jason Wong [mailto:[EMAIL PROTECTED] > [problem snipped] > > > > Incorporate whatever sorting info you need into the value of the > >

[PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
y, although the url displays: http://localhost/index.php?TestVar=1 I still get the 'Not Set' message. I'm assuming I've not configured something correctly, but I don't know where else to look! If anyone could help I'd be very grateful. At least if I know it's not

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
out specifying whether you have a php.ini file or not. Any clue as to why I don't have one, and how I should get one? I installed PHP v4.3.3 on Apache 1.3. Thank you again for your time, I appreciate it. Greg Watson CPT John W. Holmes wrote: From: "Greg Watson" <[EMAIL PROT

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Greg Watson
nd sparkly! Thanks again, you guys are so helpful! Greg CPT John W. Holmes wrote: From: "Gal" <[EMAIL PROTECTED]> Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit

Re: [PHP] embedding code

2003-10-02 Thread Greg Beaver
7;; since PHP is server-side, and your document.write is client-side, this won't work - the server will never see the script tag. Regards, Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Handling

2003-10-17 Thread Greg Beaver
Frank, http://pear.php.net/HTML_QuickForm It's that easy. There are full docs accessible from the page listed above. Average time from download to output of your first form with validation: 30 minutes to 1 hour. Tops. Regards, Greg Frank Tudor wrote: I would really be interest

Re: [PHP] problem with intval and !=

2003-10-23 Thread Greg Beaver
Hello all, http://www.php.net/is_numeric is the function you are looking for. No need for fancy regexps. Regards, Greg -- phpDocumentor http://www.phpdoc.org Cesar Cordovez wrote: Sorry, typo, this is what I meant, !is_integer("12thisisnotanumber") retuns true. but also, is_i

[PHP] limits on variable/classname length

2003-10-25 Thread Greg Beaver
cache parsed data, and I need to know how much space to allocate for the names of classes and other things. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Find the last friday of each month.

2003-10-26 Thread Greg Wiley
month and I am failing miserably. It keeps giving me October 10th. So, I scrapped it. Basically, I just want to show what the last friday of the month is, and if that date has already passed, show the last friday of the next month. How can I do that? Use strtotime("last Friday"

Re: [PHP] Templates/Separate content from presentation

2003-10-31 Thread Greg Donald
;Fatal: cannot open template ' . $file . '\n'); } return $html; } Of course I have no template caching system like Smarty has, but I use TurkeMM Cache: http://www.turcksoft.com/ and query caching from MySQL 4. I also clean my html before output, removing all tabs and newline

[PHP] Re: Templates/Separate content from presentation

2003-10-31 Thread Greg Beaver
Hi Pedro, try http://www.phpsavant.com Regards, Greg Pedro Pais wrote: Hi! I've coded in PHP for a while, but I had to leave it for some time. Now I'm back, and I'd like to know what's currently being used to separate content from presentation, besides Smarty (that seem

[PHP] Re: Array --> If

2003-11-05 Thread Greg Beaver
Hi Jason, perhaps: $cases = array(5, 15, 30, 60, 90, 120); if (in_array($count, $cases)) { include 'page.php'; } ?> Regards, Greg -- phpDocumentor http://www.phpdoc.org Jason Williard wrote: I am building a script that I would like to have do a specific task based on whe

[PHP] Re: Dose this exist?

2003-11-09 Thread Greg Beaver
Hello Dave, Although HTML_QuickForm is useful, you will find DB_DataObject is closer to what you need http://pear.php.net/db_dataobject Greg -- phpDocumentor http://www.phpdoc.org Dave Carrera wrote: Hi List, Is there such a tool that will generate a form and relevant code when given the mysql

Re: [PHP] I need answers for the questions

2003-11-18 Thread Greg Donald
. Umm.. no. For a given network, say 10.0.0.0, a subnet mask of 255.255.248.0 yields the following range of possible node addresses: 10.0.0.1 to 10.0.7.254. >This seems like laziness.. Or homework. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Custom Session usind MySQL

2003-11-18 Thread Greg Donald
l use a MySQL table instead of /tmp. Try this: http://destiney.com/pub/php_db_sessions.tar.gz -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysql question

2003-11-18 Thread Greg Donald
g mysql dump, but I don't want to have to run >a shell command. Have you tried mysqlhotcopy? http://www.mysql.com/doc/en/mysqlhotcopy.html -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: "Bless"ing an object

2003-11-26 Thread Greg Beaver
doing $Thing->Load(); do $Thing = &$Thing->Load(); and have Load() return an object instance (either $this or the newly blessed object). This will maintain encapsulation and achieve the results you're looking for. Regards, Greg Wouter Van Vliet wrote: Hi Folks I was wonder

[PHP] Re: "Bless"ing an object

2003-11-28 Thread Greg Beaver
Regards, Greg Wouter van Vliet wrote: Greg Beaver wrote: Wouter, you could try this adding this method to each object you need blessings from: function &bless($classname) { if ($classname == get_class($this)) { return $this; } $vars = get_object_vars($this);

[PHP] completely stumped by ereg()

2003-11-29 Thread Greg Beaver
Why doesn't this match? var_dump(ereg('C:W', 'C:WINNTTEMP\\tst5B.tmp')); should print int(1), prints bool(false) Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem in the output of an array

2003-11-29 Thread Greg Beaver
$dim1 = 'dim1'; $dim2 = 'dim2'; $dim3 = 'dim3'; $dim4 = 3; $result = "{$array[$dim1][$dim2][$dim3][$dim4]}"; echo $result; ?> Regards, Greg -- phpDocumentor http://www.phpdoc.org [EMAIL PROTECTED] wrote: I have this code, I would like, if this co

[PHP] Re: Tree

2003-12-04 Thread Greg Beaver
http://pear.php.net/Tree Regards, Greg -- phpDocumentor http://www.phpdoc.org [EMAIL PROTECTED] wrote: Hi, i need to create a tree. Each of the nodes can have 0-n succesors and also has some properties. How can be something like this created in PHP? Thx a lot Simon Toth mailto:[EMAIL PROTECTED

[PHP] Re: PHP & Variables

2003-12-06 Thread Greg Beaver
Hi Lloyd, use "quote"s around your values echo ""; Regards, Greg -- phpDocumentor http://www.phpdoc.org Lloyd Bayley wrote: Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me stumped... I have some code t

Re: [PHP] distinct values from a mulit-dimensional array

2003-12-23 Thread Greg Donald
array_unique perhaps? http://php.net/array_unique -- Greg Donald http://destiney.com/ - Original Message - From: "Chakravarthy Cuddapah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, December 22, 2003 11:22 PM Subject:

[PHP] Re: Using -> operator for declarations?

2004-01-02 Thread Greg Beaver
Hi Marco, This is and has always been possible, php is not a strongly typed language. Regards, Greg -- phpDocumentor http://www.phpdoc.org Marco Skulschus wrote: Maybe, it was "correct" even in the past, but I am astonished that the following special "variable declaration" w

[PHP] Re: Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox???

2004-01-07 Thread Greg Beaver
ithin the program, leave nothing open-ended. Don't worry about controlling $_GET, $_REQUEST or $_WHATEVER, just limit the input you expect, and check to make sure it is within the limits you set. Regards, Greg -- phpDocumentor http://www.phpdoc.org Scott Fletcher wrote: Hi! I wanted to

[PHP] Re: writing Excel files through PHP

2004-01-10 Thread Greg Beaver
Hi, You might also consider using Spreadsheet_Excel_Writer http://pear.php.net/package/Spreadsheet_Excel_Writer Regards, Greg -- phpDocumentor http://www.phpdoc.org Binay wrote: Hi all, I m generating an Excel file though PHP by sending the appropriate header and then using HTML tags to write

[PHP] Re: Can php select which ini file to use?

2004-01-13 Thread Greg Beaver
Just change the paths. You'll need to create the httpd4.conf and httpd5.conf files, and set up the correct addModule line, but that's really very easy to do. I use this system, and it works great. C:\>phpswitch 4.x and I have PHP 4 installed C:\>phpswitch and I have PHP 5 ins

Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Gutsche wrote: | Hello im hoping someone might have an insight into this one im getting an | odd error when I use a not condition in an if statement | | The code is as follows: | if !(isset($_REQUEST["license"])) | { | $license = "off"; | } |

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Horner wrote: | Simply here is my problem: | | After logging into the system, I set a session with information for | the Username and Password for verifiying | the user's login into the system, that way I don't have to | continually ask

Re: [PHP] Generating an Excel file?

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Ramsey wrote: | I'm pretty sure I know how to use header() create a CSV file for a | client to download data from a database, but I think it would really | impress this client if I could generate a Microsoft Excel file instead | of a CSV file. Anyo

Re: [PHP] dreaded sessions

2004-01-19 Thread Greg Donald
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian V Bonini wrote: | Kind of funny... Back before PHP had sessions this was how everyone did | it and everyone wished for session support in PHP, now that it's had it | for a while :) I hear ya. I recall a job interview in like 1999 or something

[PHP] PHP/MYSql equivalent to Hypermail/Monharc?

2001-01-25 Thread Greg Schnippel
Hi, I have been using Hypermail for archiving our mailing lists but I'm becoming and more frustrated with its limitations. Is there an equivalent PHP script to hypermail out there? Ideally, I would like to maintain the incoming e-mail addresses in a mysql database. Thanks, -Greg --

[PHP] Undefinded Index on Mysql Result under Win98/PWS

2001-02-23 Thread Greg Kopp
would appreciate any help you could be. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Undefinded Index on Mysql Result under Win98/PWS

2001-02-23 Thread Greg Kopp
Thanks a ton to all. That did the trick. Greg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 1:47 PM To: Jason Stechschulte; Greg Kopp; [EMAIL PROTECTED] Subject: Re: [PHP] Undefinded Index on Mysql Result under Win98/PWS

[PHP] resource id #2

2001-04-16 Thread Greg K
I am trying to run a query and in my log I am getting a message the message resource id #2. $query=mysql_query("Select pass from members where uname='$username'"); $result = mysql_query($query) or die("You are not authorized to be here."); Can someone tell me what I am doing wrong and guide me

RE: [PHP] Counting Words In a String

2001-04-22 Thread Greg Donald
> I want to check a string and return the amount of words present > in it. These > strings could be quite large, some higher than 100,000 > characters. I realize > I could explode the string on the whitespace and count the number > of values. > However, I'm not sure this would be the most opti

RE: [PHP] How to turn off warnings ???

2001-04-23 Thread Greg Donald
> I am a newbie to PHP and I am trying to get a number of scripts to work. > > Whenever I try to execute some code I receive 'warnings', that basically > clutter up the screen. Since I am assuming that these are not fatal - is > there any way to turn them off? > > Any help would be appreciated.

[PHP] New uses please help mysql query problem

2001-04-24 Thread Greg Kelly
I am having a problem inserting users info info into the mysql database. When I check mysql log it shows the query I tried to run. But when I go check the mysql database the info doesn't appear, I checked the permissions on the user I have setup and he has all the proper rights. If anyone have any

[PHP] Help php ICQ function

2001-04-24 Thread Greg Kelly
I am a newuser to php , I am setting up a site with user authenication and I would like to setup a ICQ function some my users will know if other users are online can someone please guide me in the right direction.. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

RE: [PHP] is there free php+mySql hosting?

2001-05-03 Thread Greg Schnippel
>From the archives: "The number of free PHP web hosts is growing . More and more are offering MySQL options too! Each category below is in alphabetic order. > Some don't require banners : http://www.1st-home.net/ (requires affiliate signups) http://www.mycgiserver.com/ htt

[PHP] newbie setting up searches

2001-05-06 Thread Greg Kelly
I am setting up a dating site and I would like to know the best way to do searchs on things like city , state, male , or female, age and so on. Any help would be appreciated. On my forms I will have drop down menus.. Thanks

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] Limit & hyperlinking

2001-05-17 Thread Greg Wright
allow retrieval of the next (limit amount) of records ? I am also interested in functions to sort by date, record ID etc. Again, thanks for any pointers. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] function login

2001-05-17 Thread Greg K
I am creating a function called login, I have a main file called index.php .. which has my login form , it calls a login.php file, and in that login.php there is file include statement which calls config.php and that is where the function lie. This is my function , now if i don't set this as a fun

[PHP] Limit & hyperlinking

2001-05-17 Thread Greg Wright
allow retrieval of the next (limit amount) of records ? I am also interested in functions to sort by date, record ID etc. Again, thanks for any pointers. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] include + path & how to invoke a remote PHP script

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

Re: [PHP] Parse error..help!

2001-05-18 Thread Greg K
Also take off the semicolon of the closing of the function } ""Taline Makssabo"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here is another error i keep on getting, this is suppose to send me an email > each time someone enters in my website but i keep on g

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Greg Wright
*** REPLY SEPARATOR *** On 20/05/2001 at 5:34 PM Zak Greant [EMAIL PROTECTED] [gregausit/phplist] wrote: >Manuel wrote: >[...] >> Since Zeev and Andi seem to be currently the most capable developers to >bring >> multi-threading capability to PHP because they developed PHP curr

[PHP] mysql_fetch_array

2001-12-30 Thread Greg Sidelinger
Ok I have use mysql_fetch_array to dump the results of a select query with a join in it. if my tables contain a column with the same name how can I distinguish from them. I'm used to table_name.value method in other languages but when I tried $row['table_name.value'] I don't get any values. can a

RE: [PHP] Search Engine

2002-01-15 Thread Greg Schnippel
> * On 15-01-02 at 12:09 > * Yogesh Mahadnac said > >> Hi all! I want to develop a search engine in PHP for a >> portal that I'm working on at the moment, and I'd be glad if >> someone could please show me how to do it, or if anyone knows >> of a link where i can find a tutorial for

[PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
"lne99"; mail ("email", "subject", $message); but when the email is received not all the new lines r taken. Can anyone help me. Also where can I get a list of all the special chars like \n and what they meain. Greg

RE: [PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
\r\n or \n\r is not helping. The thing that confuses me is that some of the \n lines work just fine while others do not. So if anyone give give me a hint y it is not working all the time please send me email. Greg -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent

[PHP] MySQL-PHP-RAQ4 dilemma!

2002-01-27 Thread Greg Conway
ithout breaking whatever's already there!! I presume PHP will be an RPM (or even a .PKG?), so can I specify these options within RPM installation? Many thanks for any help. Regards, Greg Conway. -- +---+ | Greg Conway, Technical Director

RE: [PHP] Write an array to a file

2002-01-29 Thread Greg Schnippel
Scott - You can just write it as a pipe-delimited file, write it to the file, and then read it back in. Use implode and explode: $company = array("Item 1", "Item 2", "Item 3", "Item 4"); #- # # Output array # $output_string = implode("|", $company)

RE: [PHP] MySQL-PHP-RAQ4 dilemma!

2002-01-30 Thread Greg Conway
machine!! Anyway, thanks for the tip. Regards, Greg. > -Original Message- > From: Steve Werby [mailto:[EMAIL PROTECTED]] > Sent: 30 January 2002 22:41 > To: Greg Conway; Php-General > Subject: Re: [PHP] MySQL-PHP-RAQ4 dilemma! > > > "Greg Conway" <[E

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Greg Donald
seen whatever they need to. Then, on their next login, do a join against the seen_briefing table, check for an entry... -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Help Requested

2002-02-16 Thread Greg Donald
ame"); eval("\$template_name = \"$template_name\";"); This will parse all your $vars you store in the templates. Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ --

Re: [PHP] Text editor for linux

2002-02-16 Thread Greg Donald
> Anyone know of a good text editor for linux, WITH syntax highlighting for > php/html + other languages? Vim - http://www.vim.org/ If you use X, then use gvim. Greg Donald - http://destiney.com/ http://phprat

Re: [PHP] Running php from shell - passing parameters

2002-02-17 Thread Greg Donald
$argv as described in the predefined variables documentation: http://www.php.net/manual/en/language.variables.predefined.php Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | h

Re: [PHP] session password problems.

2002-02-17 Thread Greg Donald
r a single row, not the fact that no rows returned. I would use: if (mysql_num_rows($sql_authorisation) == 1) { $user_array = mysql_fetch_array($sql_authorisation_result); $login_username = $user_array[account_name]; session_register("login_username"); } -

Re: [PHP] get_browser();

2002-02-18 Thread Greg Donald
ape 4 } else { // is something else } ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ -- PHP General Mailing Li

Re: [PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Greg Donald
ession.php > Also I do not know much of anything about Object Oriented Programming. Me neither :) > Thanks for the feedback. No problem... ---- Greg Donald - http://destiney.com/

Re: [PHP] get_browser();

2002-02-18 Thread Greg Donald
Is that going to catch the Mozilla spoofers, like webtv and opera? Err, no... if they are being spoofed then why would it? Open a phpinfo() page in each of the browsers you wish to correctly identify, then you can see what user agent you need to search for to do whatever with... :) ---

Re: [PHP] Avoid the session mechanism?

2002-02-18 Thread Greg Donald
urn mysql_affected_rows($sdbh); } session_set_save_handler("sess_open","sess_close","sess_read","sess_write"," sess_destroy","sess_gc"); session_start(); $sn = session_name(); $sid = session_id(); ?> The sessions table should lo

Re: [PHP] Sendmail and setting From

2002-02-18 Thread Greg Donald
box, my php.ini is in /etc. That's where you change the mta. Or do you mean the ServerAdmin email setting as defined in the httpd.conf? ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | ht

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Greg Donald
r version is less than 4.1.0, try the global variable $PHP_SELF instead. ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ |

Re: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Greg Donald
www.php.net/manual/en/function.ereg-replace.php http://www.php.net/manual/en/function.htmlspecialchars.php ---- Greg Donald - http://destiney.com/ http://phprated

Re: [PHP] Sendmail and setting From

2002-02-19 Thread Greg Donald
. Look at http://www.php.net/manual/en/function.mail.php ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ ---

Re: [PHP] PHP binary file

2002-02-19 Thread Greg Donald
> Has anyone compiled php on linux and found the binary executable file? I usually compile it and copy it to where I want it manually... ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | h

[PHP] Variable substitution

2002-04-21 Thread Greg Hulands
database. For some reason it does not get automatically substituted when using mail(to, subject, message). Is there a function that substitutes variables with there values and returns a string. Any help is greatly appreciated, Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To

[PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Hello. I'm new to this list, though not new to PHP. I'm hoping that my question hasn't been answered a thousand times before, and I did at least search on NameVirtualHost and read all those archived messages before getting to this point. I have an Apache web server (1.0.38) that has been peac

RE: [PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
f I'd given it much thought, I'd have recognized the error. Oh, well. Chalk it up to Sunday morning brain slips. -Greg- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Frenck advised: > add this to your virutalhost tag: > AddType application/x-httpd-php .php I did, and now browsers ask me if I want to download index.php... Do I need to activate the php module? I wonder why it worked before the NameVirtualHost, and now it doesn't... -- PHP General Maili

RE: [PHP] Re: NameVirtualHost breaks PHP

2002-04-28 Thread Greg Blakely
Yuri Petro asked: > Can you indicate Apache settings regarding php and virtualhosts? In the "main" server configuration area, I have: # The following is for PHP4 (conficts with PHP/FI, below): AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source

Re: [PHP] Re: PHP Editors

2002-05-01 Thread Greg Donald
>> It's no BBEdit, but what can you do? vim? It's free and runs on every system I ever heard of. -- --- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http:/

Re: [PHP] Anyone use frames and PHP solution?

2002-05-06 Thread Greg Donald
as the frame source for any given frame, just like if it were an .htm or .html page. -- --- Greg Donald - http://destiney.com/ http://phprated.com/ | http://php

[PHP] passing variable to anti spam mailto script

2002-05-26 Thread Greg Wright
Hello All, What is the best way (or opinions rather) to pass variables to a anti spam script. This is used in place of mailto links in webpages, but am looking for any simple way to pass information so more than one address can easily be used in the script, I could use mysql or other, however wa

Re: [PHP] PhP, mysql and pictures

2002-05-27 Thread Greg Wright
y them "from" there? > I am no expert, but why load the SQL server up if not required ? i.e serve from a directory :) Regards Greg Wright -- IT Consultant Sydney Australia PH 0418 292020 -- Int. +61 418 292020 Available for Global Contracts US Fax -- 801 740 2874 Web http:

Re: [PHP] .php3 extension?

2002-05-30 Thread Greg Wright
Apache?) to >support (and run) .php3 extension files? look for AddType application/x-httpd-php .php then change it to look like AddType application/x-httpd-php .php .php3 Regards Greg Wright -- IT Consultant Sydney Australia PH 0418 292020 -- Int. +61 418 292020 Available for Global Contra

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
me on all of them. Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
l /usr/sbin/apachectl stop /usr/sbin/apachectl start ---- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsit

Re: [PHP] PNG Lib

2002-02-28 Thread Greg Donald
> Does anyone know where the PNG library went? > The manual points to cdrom.com/pub/png, but that does not exist anymore. http://www.libpng.org/pub/png/ ---- Greg Donald - http://destiney.com/ http://phprated.com/

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