[PHP] Putting an image or logo on another image.

2004-05-26 Thread Philip
<< THIS ASSUMES THAT THE IMAGE WAS UPLOADED OK >> // ADD A FILE NAME TO THE UPLOADED FILE. $pageDestinationFile="$pageGalleryPath/image_".$pagePicNum."_temp.jpg"; // LETS MOVE THE IMAGE OUT OF THE TEMP DIR. move_uploaded_file ($up

Re: [PHP] Need assistance using sendmail or mail()

2008-01-31 Thread philip
Nathan Nobbe wrote: > On Jan 30, 2008 2:47 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > >> Philip, please state what sort of problems you are having. mail() and >> sendmail are both easy to use from php. >> And please don't post another 2000 lines of co

[PHP] how to create a slide show using PHP5

2008-07-02 Thread philip
Hi everyone, I want to create a slide show of photos for my web site. How is this done using php5? I am using Opensuse 10.3, Apache, PHP5. TIA for any assistance, Philip -- Philip Ramsey learning PHP and MySQL for building a better world philipramsey.is-a-geek.net -- PHP General Mailing

Re: [PHP] how to create a slide show using PHP5

2008-07-02 Thread philip
Bastien Koert wrote: On Wed, Jul 2, 2008 at 4:37 PM, philip <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi everyone, I want to create a slide show of photos for my web site. How is this done using php5? I am using Opensuse 10.3, Apache, PHP5.

[PHP] Re: PHP_AUTH_USER failing, please help me...

2002-11-25 Thread Philip Hallstrom
Just a quick guess that register_globals is probably turned off (check with a phpinfo() to be sure) and therefore $PHP_AUTH_USER and $PHP_AUTH_PW are not being set. Or, try $_SERVER[PHP_AUTH_USER], etc... On Mon, 25 Nov 2002, Larry Brown wrote: > I just built a new server and loaded with RH8. I

[PHP] Re: Comment Threading

2002-12-02 Thread Philip Hallstrom
Your best bet would be to look at how some of the other apps do it :) (taking licensing issues into account that is :) This might help as well.. not sure how efficient it is on a really long list, but it works for my little stuff... http://stuff.adhesivemedia.com/php/heirarchial-sorting.php On T

Re: [PHP] magic quotes

2002-12-04 Thread Philip Olson
gards, Philip On Wed, 4 Dec 2002, John Taylor-Johnston wrote: > What are magic quotes? Will this help me? > > http://news.php.net/article.php?group=php.general&article=126934 > > How is this different from stripslashes. > > I have RTF doc :) > > http://www.

Re: [PHP] ini function like ini_set and ini_alter

2002-12-04 Thread Philip Olson
gards, Philip On 4 Dec 2002, Franco Pozzer wrote: > Thanks for all. > > My end it is Apache 1.3.27 and PHP 4.3.2 in Win32 system NT 4.0. > > I have the php.ini auto_prepend_file like this: > auto_prepend_file="C:\OPENFEDRA\Apache\htdocs\fedra\sv\cfg\" > > All w

Re: [PHP] PHP 2.4.3 and Apache 2.0.x

2002-12-04 Thread Philip Olson
version. Regards, Philip On Wed, 4 Dec 2002, Adam Williams wrote: > If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great. > I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better. > > Adam > > On Wed, 4 De

Re: [PHP] trouble with update from php 3 to php 4.2.3

2002-12-04 Thread Philip Olson
us your include_path definition and make sure it's the same as reported in phpinfo(). Regards, Philip On Wed, 4 Dec 2002, Omar wrote: > I updated php from version 3 to 4.2.3 on a win NT 4 server (with iss 4). > Everything went ok, but the include() function. > I have problems when i

Re: [PHP] fopen over a network

2002-12-04 Thread Philip Olson
Please reread the documentation found here: http://www.php.net/header It has a pdf file as an example, modify according to your needs. Regards, Philip On Wed, 4 Dec 2002, Elkan wrote: > Couldn't you set the Mime-Type on the server for the correct extenstion? > > Leif

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Philip Olson
such as .php See also the include_path php directive. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD installation - Simple Question

2002-12-11 Thread Philip Olson
theory is it means more people will use the preferred bundled GD now. To use a non-bundled, you must specify the path so: --with-gd=/path/to/gd/dir Note: It's strongly recommended to use the bundled GD. Regards, Philip p.s. 4.3.0-RC3 came out today! :) On Wed, 11 Dec 2002, Sean Burlington

[PHP] Re: understanding headers

2002-12-11 Thread Philip Hallstrom
Where/How do you set $data? Everything else looks fine, but without knowing that we can't help much. On Wed, 11 Dec 2002, Colin Bossen wrote: > Hello: > > I am trying to use the header function to enable users to download > files. I am able to get files to download. Unfortunately, the wrong file

[PHP] Re: Re: understanding headers

2002-12-11 Thread Philip Hallstrom
Then you're getting exactly what you should be getting. fopen will read the text file as it appears on *disk* not what the output on your browser is. ?? -philip On Wed, 11 Dec 2002, Colin Bossen wrote: > I add mention that the contents of the download.php file are the > cont

Re: [PHP] Execute a cgi inside of php?

2002-12-11 Thread Philip Olson
anual note you referred to has to do with code such as (http == remote file): include 'http://www.example.com/foo.php'; Which would include the output of that url into the webpage. This is unrelated and remember that parse errors are always due to syntax problems. Regards, Philip Ol

Re: [PHP] Using fopen() to open a php file with variables.

2002-12-11 Thread Philip Olson
e filename. Regards, Philip Olson On Wed, 11 Dec 2002, Jay (PHP List) wrote: > Okay, I need to retrieve the output of a php file with variables being > passed to it. Example: > > $calendar_file = "make_calendar.php3?month=$month&year=$year"; > $fp = $fp =

Re: [PHP] Delete array element

2002-12-11 Thread Philip Olson
Remove the {braces}, those are only used when inside "a {$strin['g']}". Also, be sure to 'quote' your array indices. unset($arr['foo'][$bar]); Regards, Philip Olson On Wed, 11 Dec 2002, Richard Baskett wrote: > Ok I feel a little sheepish aft

Re: [PHP] GD installation - Simple Question

2002-12-12 Thread Philip Olson
No, GD is only bundled as of PHP 4.3.0. Regards, Philip On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: > Hello Phillip, hello Sean, > > thank you very much, for answering the question of --with-gd - compiling. > > I am not using 4.3 . I did it with php-4.2.3 > > Did I

Re: [PHP] MySQL error

2002-12-12 Thread Philip Olson
lse, we print some useful info out to debug it. In production, you most likely won't want to print it out but anyway... For a more complete example, see: http://www.php.net/mysql_fetch_assoc Btw, being that there is a function named mysql_result I wouldn't create a variable by

Re: [PHP] Don't get variable to be passed to the page on submit

2002-12-13 Thread Philip Olson
is applies to all variables, even web server variables such as PHP_SELF so you'd use: $_SERVER['PHP_SELF'], etc. Regards, Philip Olson P.s. So you want your query to look more like this: $sql = INSERT INTO $db_imgCat (catName, subCat) VALUES ('{$_GET['nafn&#x

[PHP] Re: A little regex help

2002-12-13 Thread Philip Hallstrom
Why not... $url = ereg_replace("See ([^ ]*) for", "See \1 for", $original_string) or something close to that. On Fri, 13 Dec 2002, Gareth Hastings wrote: > Hi, > > I'm trying to work out the regex needed to split either one of the > following lines > > Windows 2000 Hotfix (Pre-SP4) See Q322842

RE: [PHP] Array

2002-12-16 Thread Philip Olson
Regarding the original question of this thread, see print_r() as I blame a typo or something... or maybe it's a variable scope issue. Your example looks fine. Regards, Philip Olson P.s: Essentially numerical == numbered keys associative == worded keys On Mon, 16 Dec 2002,

Re: [PHP] mysql_num_rows

2002-12-17 Thread Philip Olson
sql)) { echo "Could not run query ($sql) " . mysql_error(); exit; } $count = mysql_num_rows($result); while ($row = mysql_fetch_assoc($result)) { $rows[] = $row; } print ""; print "Returned: " . count($rows) . " and num_rows: $count\n"; pri

Re: [PHP] list and (array) get_val

2002-12-18 Thread Philip Olson
Have another look here: http://www.php.net/list Note that the list construct only works on numerical arrays and assumes 0-n. You may want to use import_request_variables() or extract() though. Regards, Philip Olson On Wed, 18 Dec 2002, Ns_Andy wrote: > a.php > > list($a

Re: [PHP] easy spliting

2002-12-18 Thread Philip Olson
You may want to provide more information like why is this string being split at these seemingly random points? Maybe there is a common separator or could be? But anyway it sounds like you want substr(). http://www.php.net/substr Regards, Philip Olson On Wed, 18 Dec 2002, Alex Ciurea

Re: [PHP] Re: mysql_num_rows

2002-12-18 Thread Philip Olson
d. And checking the number or rows returned before fetching is a form of error handling as well as if it equals 0 than there is no data to fetch. But if one ONLY wants a number of rows count, doing SELECT count(*)... works great as suggested below. Regards, Philip Olson On Wed, 18 Dec 2002, lilj

Re: [PHP] Re: mysql_num_rows

2002-12-18 Thread Philip Olson
And now mysql4 allows doing this another way, I *assume* this new way is slightly faster then the additional count() although I haven't tested it and wonder if it affects mysql_num_rows()... See: SQL_CALC_FOUND_ROWS() http://www.mysql.com/doc/en/Miscellaneous_functions.html Regards, P

Re: [PHP] is there php equiv left() and right() functions?

2002-12-18 Thread Philip Olson
You want explode(), something like: list($a, $b) = explode('|', $string); Regards, Philip Olson On Wed, 18 Dec 2002, Jeff Bluemel wrote: > I have a string that will look like the following; > > data1|data2 > > now - I need to put data1 in a variable, and

Re: [PHP] Question about the exit() command

2002-12-19 Thread Philip Olson
How about: if (!$conn = mysql_connect($host, $user, $pass)) { include 'static_html.inc'; exit; } print "Welcome, yes the database is connected"; exit ends the script, nothing after its use is executed. Regards, Philip Olson On Thu, 19 Dec 2002, Beaufo

RE: [PHP] Problem with sessions.

2002-12-19 Thread Philip Olson
For the record, variables are case sensitive so it's $_SESSION not $_session. And if you're going to use $_SESSION (which you should), do not use session_register(). Regards, Philip On Thu, 19 Dec 2002, Mike Hillyer wrote: > I have recieved a private response, it appears

Re: [PHP] syntax to reference $_POST within function

2002-12-19 Thread Philip Olson
on't care if 'email' comes from GET, POST, or COOKIE ... you could use $_REQUEST['email']. Or, import_request_variables() is another option. For example: import_request_variables('p', 'p_'); print $p_email; See the manual for details, and have fu

Re: [PHP] Alternating Links

2002-12-19 Thread Philip Olson
This faqt answers your question: http://www.faqts.com/knowledge_base/view.phtml/aid/8583 Regards, Philip Olson On Fri, 20 Dec 2002, conbud wrote: > Hi. > Lets says I have 8 links stored in a database, extracting those links is > no problem. Now lets says I have 2 columns, how

Re: [PHP] syntax to reference $_POST within function

2002-12-20 Thread Philip Olson
This is a very important point to understand, I tried (and failed) to explain it. I think Leif made it pretty clear though, here's another :) // $a can be anything when you call the function function bar ($a) { print $a; } bar ('Hello World'); bar ($_POST['something&

Re: [PHP] the numeric key of an array???

2002-12-20 Thread Philip Olson
No, but you can do this: $arr2 = array_values($array); print $arr2[0]; // VALUE1 Regards, Philip Olson On Fri, 20 Dec 2002, Alexander Guevara wrote: > How can i do for printing the value of an array given the numeric key for > example i have this code: > > $array = array (

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-20 Thread Philip Olson
He is referring to a question that is answered here: http://www.php.net/manual/en/faq.html.php#faq.html.encoding Spoiler: htmlspecialchars() -> http://www.php.net/htmlspecialchars Regards, Philip Olson On Sat, 21 Dec 2002, Justin French wrote: > on 21/12/02 2:00 PM, Alexander G

Re: [PHP] Forms and PHP variables

2002-12-21 Thread Philip Olson
Use is_numeric() http://www.php.net/is_numeric See also the ctype functions which can be read about here: http://www.php.net/ctype And yes, regular expressions are another option but aren't needed here. Regards, Philip Olson On Sat, 21 Dec 2002, Beauford.2002 wrote: > Hi, &g

Re: [PHP] Loading modules not compiled in php

2002-12-21 Thread Philip Olson
ynamically, that would be ideal. Regards, Philip Olson On Sun, 22 Dec 2002, Tony Earnshaw wrote: > >I have a site hosted at JTL Networks, and I'm looking into setting up > > a spell checker for my message boards. The problem is, JTL doesn't have > > pspell compil

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Philip Olson
or similar instead for reasons described here: http://www.php.net/variables.external Regards, Philip Olson On Sat, 21 Dec 2002, Beauford.2002 wrote: > Thanks for the info, but . is_numeric does not appear to accept > variables i.e. is_numeric($num) and ctype gives me the foll

Re: [PHP] Tutorials on OOP

2002-12-22 Thread Philip Olson
This tutorial lists many oop tutorials: Know of any basic tutorials on PHP Classes and OOP? --- http://www.faqts.com/knowledge_base/view.phtml/aid/7569 Regards, Philip Olson On Mon, 23 Dec 2002, Wee Keat wrote: > > >

Re: [PHP] forum?

2002-12-24 Thread Philip Olson
Another good one: fudforum: http://fud.prohost.org/ Regards, Philip On Tue, 24 Dec 2002, [windows-1254] Fatih Üstündað wrote: > do you know freeware forum in php I can easly use? > > thanks. > fatih ustundag > > -- > PHP General Mailing List (http://www.php.n

Re: [PHP] Problem with Include

2002-12-24 Thread Philip Olson
I've heard that RH8 decided to disable short tags in their default php.ini If this is true, the people at RedHat deserve a good spanking. Talk about being irresponsible! Regards, Philip On Tue, 24 Dec 2002, Tom Woody wrote: > I have found this to be very true with RedHat 8 (

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
Any chance you can do a somewhat frequent export from informix into mysql or the other way around so all your stuff is in one database? -philip On Fri, 3 Jan 2003, Jeff Bluemel wrote: > ok - here's my problem. I have some data in mysql, and other data in > informix. > > here

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
ecord at a time > upon request which won't be too frequent. > > hoping there's another solution I'm not aware of, or over looked. > > Jeff > > "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTE

[PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Philip Hallstrom
inking about is just not giving the distributors > access to this information, but restricting it to users with permissions to > the entire batch only. > > thanks, > > Jeff > > "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">

Re: [PHP] php4.3.0 & GD library

2003-01-05 Thread Philip Olson
ut anyway 4.1.1 is old so you should upgrade. Like with any version of PHP you download it and follow the install instructions. http://www.php.net/downloads Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HEEELP...please

2003-01-09 Thread Philip Hallstrom
Is register_globals on or off? If it's off on the new machine that explains why $DOCUMENT_ROOT is evaluating to "" which would produce the error message you are getting... On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote: > I absolutely cannot understand the include_path directive. > Can somebody, ple

[PHP] Re: Persistent global data ?

2003-01-14 Thread Philip Hallstrom
http://www.php.net/manual/en/ref.shmop.php On Tue, 14 Jan 2003, Mathias Rockel wrote: > Hi all ! > > It seems I did not state exactly enough what I need ... if I use the > $_SESSION functions or write the stuff myself makes no difference, actually > then I can just leave it in the database and re

[PHP] Re: PHP receiving e-mail

2003-01-14 Thread Philip Hallstrom
You could use fetchmail to get the mail and pipe it into your php script which would see it as standard input... Or look on zend.com for a POP class... On Tue, 14 Jan 2003, David Russell wrote: > Hi all, > > I want to develop a script that can read an e-mail from a pop account, > and then perfor

Re: [PHP] REQUEST_URI, which part of $_ is it from??

2003-01-16 Thread Philip Olson
> Which part of $_ is the REQUEST_URI be found from? It's a web server predefined variable so only lives in $_SERVER. http://www.php.net/variables.predefined Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Acessing $DOCUMENT_ROOT

2003-01-17 Thread Philip Hallstrom
$_SERVER[DOCUMENT_ROOT] On Fri, 17 Jan 2003, Don wrote: > Hi, > > How do I access $DOCUMENT_ROOT when register_gobals is set off? I think > there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't > find it in the documentation. > > Thanks, > Don > > > --- > Outgoing mail is

Re: [PHP] $HTTP_GET_VARS

2003-01-18 Thread Philip Olson
Everyone from this thread needs to reread this: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Acessing $DOCUMENT_ROOT

2003-01-18 Thread Philip Olson
> How do I access $DOCUMENT_ROOT when register_gobals is set off? I think > there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't > find it in the documentation. http://www.php.net/variables.predefined Regards, Philip -- PHP General Mai

[PHP] Re: Cannot show reuploaded image file on page unless manual refresh

2003-01-20 Thread Philip Hallstrom
I wonder if appending time() would be better... granular to a second and you save the filesystem lookup effort?? On Mon, 20 Jan 2003, Jim Lucas wrote: > I would add the modification time of the file in question with > > filetime($filename); > > that way you will be sure to get a unique argurment.

[PHP] Re: fscanf

2003-01-21 Thread Philip Hallstrom
Why not: $array = split("[ ,]", $line); ? On Wed, 22 Jan 2003, Kris wrote: > Hi > > I'm having dramers with fscanf > I have a line: > text, text, text > > I can't work out how to scan removing the comma and whitespace. > the text can be absolutle anything. > > at the moment I have > $array = fs

Re: [PHP] image source from PHP

2003-01-23 Thread Philip Olson
> > Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need Coding Help With getdate()

2003-01-24 Thread Philip Hallstrom
Replace your last line with this... $date = $month . $mday . $year Or take a look at the date() command... something like: $date = date("mdy", time()); would do the same thing (check the man page for sure). On Fri, 24 Jan 2003, Guru Geek wrote: > Hello, > > I'm trying to use getdate() and th

[PHP] Re: linux cpu usage

2003-01-24 Thread Philip Hallstrom
does it hog the CPU and stop other things from running or is it just using 100% of the CPU? If the latter, that's fine. If the former, read the man page for nice or renice (it's renice on freebsd) -philip On Fri, 24 Jan 2003, Gareth Thomas wrote: > Hi all, > > I have a comm

Re: [PHP] Predefined Variables In Classes

2003-01-26 Thread Philip Olson
Read: http://www.php.net/variables.scope Also note that $_SERVER is an autoglobal. Regards, Philip On Sun, 26 Jan 2003, @ Nilaab wrote: > Hello Everyone, > > I am a little confused. Why do predefined variables like $PHP_SELF or > $DOCUMENT_ROOT not process within a class, in

Re: [PHP] Java call on object causes segfault.

2003-01-26 Thread Philip Olson
help to the php-dev team. Also I believe many changes to the Java extension went into 4.3.0 so maybe it'll work for you. Regards, Philip On Sun, 26 Jan 2003, John Wells wrote: > Working on getting Java integration going. I was able to get it to work > with the online example and ca

Re: [PHP] I'm new in PHP

2003-01-26 Thread Philip Olson
com/sql/ http://www.sqlcourse.com/ Learn PHP http://www.faqts.com/knowledge_base/view.phtml/aid/2836/fid/51 http://www.php.net/manual/ http://www.php.net/links.php Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about SSL/php globals

2003-01-27 Thread Philip Olson
On Mon, 27 Jan 2003, Wei Weng wrote: > Is there any environment/Global variable in PHP that indicates whether the > server port you connect to is SSL port? $_SERVER['HTTPS'] Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strip_Tags @ php 4.3

2003-01-27 Thread Philip Olson
ed example that demonstrates your definition of "weird" Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: multiple entry forms !!

2003-01-27 Thread Philip Hallstrom
Use several smaller forms and store the results of each into a session variable. Also store a "got-results-for-form-1" (through 7) that gets set for each of the 7 forms. Once all 7 are set you can do the final processing. Set the action of each form to say "save.php" and pass in a "saving_what"

[PHP] Re: output of fread() is blank

2003-01-27 Thread Philip Hallstrom
I could be wrong, but I'd guess that filesize fails for remote files. If all you're doing is spitting out the text, why not use readfile()? -philip On Mon, 27 Jan 2003, Guru Geek wrote: > Hello, > > I'm a recent convert from CGI/Perl and so am still getting my feet wet

Re: [PHP] output of fread() is blank

2003-01-27 Thread Philip Olson
quot;rb"); > $contents = fread ($handle, filesize ($filename)); [snip] See: http://www.php.net/filesize You cannot use it with urls. Also if you can help it, don't go through http like this. But anyway, see also: file(), fgets(), and include() Regards, Philip -- PHP General

[PHP] Re: mail () format

2003-01-27 Thread Philip Hallstrom
Something like... $body = "blah blah blah\n"; $body .= "Name = $name\n"; $body .= "Address = $address\n"; $body .= "Comments = $comments\n"; mail("[EMAIL PROTECTED]", "subject", $body); would do it. On Tue, 28 Jan 2003, Bruce Levick wrote: > I have a number of field entries that I am trying t

Re: [PHP] output of fread() is blank - FIXED - updated

2003-01-27 Thread Philip Olson
ude_path setting? It's important you know it and what it means as that'll answer the question in your last post: print ini_get('include_path'); http://www.php.net/manual/configuration.directives.php#ini.include-path Also, no need for "exit" here as that happens

[PHP] Re: PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Philip Hallstrom
Unless you've got a compelling reason to switch to Perl, I wouldn't. I like Perl, but like you have used PHP a lot more often in the last couple of years. Where I find it really nice is when my cron scripts need to use the same libraries as my web scripts... -philip On Mon, 27 Jan

Re: [PHP] Allowing . in $_POST variable

2003-01-28 Thread Philip Olson
Regarding keeping . as . and not _ in variables: This isn't going to happen as it seriously breaks BC. This also would affect functions such as import_request_variables() and extract(). There is no worthy benefit here, this will never happen. Regards, Philip -- PHP General Ma

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
One too many $'s in your code, use: $_REQUEST['my_passed_variable'] This is how all arrays work, autoglobals are the same. See also: http://www.php.net/variables.external http://www.php.net/variables.predefined Regards, Philip On Wed, 29 Jan 2003, CF High wr

RE: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
server wasn't restarted or .htaccess/httpd.conf gets in the way or ... ... Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using custom "button" form element instead of standard"submit"?

2003-01-29 Thread Philip Olson
if (isset($_REQUEST['thebuttonname_x'])) { print "The button was clicked"; } Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: __PHP_Incomplete_Class Object

2003-01-29 Thread Philip Hallstrom
I don't see where you include() your class definition in that second file... add include("nycmgMail.php") right before the session_start() line and see if that makes a difference. -philip On Thu, 30 Jan 2003, Weston Houghton wrote: > > Ok, now I'm frustrated. >

Re: [PHP] Using custom "button" form element instead of standard"submit"?

2003-01-30 Thread Philip Olson
o not use them and leave this deprecated directive off. Now what happened in PHP 4.1.0 was the introduction of autoglobals but this is all described in various places in the manual and here's such a place that links to others: http://www.php.net/variables.external May as well read this too: http://www.php.net/release_4_2_0.php Where have you been, hibernating? :) Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php question - query string

2003-01-30 Thread Philip Hallstrom
* (because of the isset($addjoke) call. You could set it to whatever you want, but setting it to 1 is commonly done to indicate "trueness" or "it's on". You could set it to "yes" if you wanted and the script would work the same. Hope this helps. -philip On T

Re: [PHP] mysq_connect()

2003-01-30 Thread Philip Olson
e, and they will now exist. (assuming you already installed the mysql rpm) In short, there are three rpms: php, mysql, and php-mysql. http://www.rpmfind.net/ Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Processing - Multiple inputs of the same name

2003-01-31 Thread Philip Olson
specific faq for each form type, such as checkboxes or select boxes or... Ideally one faq would explain it for all types, checkboxes or otherwise. Making it short/concise and understandable for all user levels (such as newbies) is the tricky part. Well, actually, the tricky part is convincing people

Re: [PHP] 4.3 Install on Solaris

2003-01-31 Thread Philip Olson
is > happening or how to fix it. FWIW, I have compiled 4.23 just fine on > that box. [snip] Are you using the GNU utilities? PHP requires them, for example, sed must be of GNU origin. Same for bison, flex, etc. This is a common problem on Solaris these days as it comes with a broken sed

Re: [PHP] Passing Variables

2003-02-01 Thread Philip Olson
gt; the PHP script gets executed. Yes, use GET: eat an apple See also if() and switch() http://www.php.net/else http://www.php.net/switch http://www.php.net/variables.external print $_GET['fruit']; Regards, Philip -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] any change to see php source?

2003-02-01 Thread Philip Olson
p://lxr.php.net/ Also, the following may be helpful to you: http://www.zend.com/phpfunc/ Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need to set default parameter || How to do in PHP?

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, CF High wrote: > Hey all. > > In cold fusion I was able to define a default value with the "test" default = "myValue"> tag > > When I passed the variable "test" via a form or query string, it would over > ride the parameter value. > > How can I do this in PHP? I looked in

Re: [PHP] using tags with php (IMPORTANT READ)

2003-02-01 Thread Philip Olson
in string phenomena (except the bug hasn't been mentioned as I'm waiting for it to be committed first). http://www.php.net/types.string Sunfire, you aren't seeing this E_NOTICE error because your error level is turned down (by default). Put this on top of your scri

Re: [PHP] using tags with php

2003-02-01 Thread Philip Olson
t;select * from members where company like 'test'"); > while($row=mysql_fetch_array($result)){ > print("\n\n"); // Try this instead, see also: htmlspecialchars()* print ""; Regards, Philip * http://www.php.net/manual/en/faq.html.php#faq.html.encoding > } &

Re: [PHP] Re: Register globals on and off

2003-02-01 Thread Philip Olson
ED Although it doesn't depend on the variables_order directive like register_globals does, it is flexible. Keep in mind that variables are written from first to last so you certainly don't want GET coming after SERVER. Regards, Philip > "Davy Obdam" <[EMAIL PROTECTE

Re: [PHP] help with script!!!

2003-02-01 Thread Philip Olson
t)) { > echo("| %s | %s | %s | %s | %s |", $array[id], $array[username], > $array[password], $array[status], $array[notes]); > } > ?> Maybe this will help: \n"; } ?> Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Line Number function?

2003-02-01 Thread Philip Olson
vailable in PHP for a very long time (along with __FILE__). PHP 4.3.0 introduces the following: __FUNCTION__ Function name __CLASS__ Class name debug_backtrace() Debugging information including the line number See: http://www.php.net/debug_backtrace R

Re: [PHP] help with script!!!

2003-02-02 Thread Philip Olson
mas are okay here but as someone else already stated, echo doesn't behave like printf so no special %formatting% with echo. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP version of ColdFusion CFParam

2003-02-02 Thread Philip Olson
On Sun, 2 Feb 2003, Lon Lentz wrote: > > Is there a PHP version of the ColdFusion tag ? Go here: http://marc.theaimsgroup.com/?l=php-general&s=cfparam Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looping through the mysql_field_name function

2003-02-02 Thread Philip Olson
me please.. Your help is greatly appreciated;-) Please read the example in the manual as well as the user contributed notes. They show how to do this: http://www.php.net/mysql_field_name See also: mysql_num_fields() Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] listbox problems

2003-02-02 Thread Philip Olson
the user name that was selected > in the listbox but after i get how that works then it will load a form with > all user data in it so it can be changed.. Read this: http://www.php.net/variables.external Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Philip Olson
ve > someone have written one already. I have not the skills (yet) to write it > myself See: http://www.php.net/readdir http://www.php.net/filemtime The examples within will help you write this. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] authentication

2003-02-03 Thread Philip Olson
Read this: http://www.php.net/features.http-auth Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Can anyone help me? i'm getting crazy... : |

2003-02-03 Thread Philip Olson
t; in the form. See: http://www.php.net/variables.external Debugging101 would have you do: print $sql; And lastly, posting a TON of code won't get you very far. I just ignored it and based my response on the one above. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exec() in safe mode

2003-02-03 Thread Philip Hallstrom
Add the directory that contains the script you want to run to safe_mode_exec_dir (check the docs to confirm this) -philip On Tue, 4 Feb 2003, [ISO-8859-2] Bc. Radek Krejèa wrote: > Hello, > > I need use function exec or backtick operator, but i have PHP in > safe mode. I need

Re: [PHP] Html forms

2003-02-03 Thread Philip Olson
t; or > or " or whatever ... read this faq: http://www.php.net/manual/en/faq.html.php#faq.html.encoding If the error is something else it's because you did not describe the question very well. Knowing the error would be a huge help. Regards, Philip > > - Original Message -

[PHP] Re: Bi-weekly pay period

2003-02-03 Thread Philip Hallstrom
to do it all the math as the number of seconds since 1970 (look at time() and strtotime()) and you'll be fine. -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Etiquette

2003-02-03 Thread Philip Olson
On Mon, 3 Feb 2003, Chris Shiflett wrote: > --- Philip Olson <[EMAIL PROTECTED]> wrote: > > No offense Sunfire but I don't think you're ready to > > be answering questions. > > Please try to be a little more kind. While his answer does > have proble

Re: [PHP] Is there a way to retrieve an entire source code from aphp file?

2003-02-04 Thread Philip Olson
On 4 Feb 2003, Adam Voigt wrote: > I believe he meant the HTML source of an HTML page. An example in the manual does exactly this: http://www.php.net/file Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help Needed

2003-02-04 Thread Philip Olson
we hope you enjoy this webpage. Or a little heredoc: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >