RE: [PHP] Like ternary but without the else.

2005-02-25 Thread rich
? $that : $this) rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] http$B$G%;%C%7%g%s$r3+;O(B$B$7$?>l9g!"(Bhttps$B$X(B$B9T$C$F$b7QB3$5$l$k$N$G(B$B$7$g$&$+!)(B

2002-11-09 Thread Rich
PHP$B=i?4

[PHP] Using two XSLT stylesheets

2003-10-18 Thread rich
= xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', -- NULL, NULL, $params); $data = xslt_process($xh, $results, 'simple-search-display-results.xsl', -- NULL, NULL, NULL); neither of which work at all. Any ideas? Cheers, rich. -- UEA/MUS::Record Library http

Re: [PHP] Using two XSLT stylesheets

2003-10-18 Thread rich
Ray Hunter wrote: xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', -- 'results.xml', NULL, $params); $data = xslt_process($xh, 'results.xml', -- 'simple-search-display-results.xsl', NULL, NULL, NULL); What happens when you do the above...what is the var_dump of data?

[PHP] Re: Using two XSLT stylesheets

2003-10-19 Thread rich
will find records include 'Boulez', 'Messiaen'). Does anyone know why: xslt_process($xh, 'sample.xml', 'sample.xsl', 'result.xml') doesn't work? (lifted straight from the manual) Cheers, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using two XSLT stylesheets

2003-10-21 Thread rich
); xslt_free($xh); $arg_buffer = array(/xml = $results_xml_string, /xslt = $display_xsl_string); $xh = xslt_create(); $results_html_string = xslt_process($xh, arg:/xml, arg:/xslt, NULL, $arg_buffer); echo $results_html_string; xslt_free($xh); ? Thanks for all your suggestions! -- Rich. UEA/MUS

[PHP] PHP with Frames (cont.)

2003-10-27 Thread rich
No, he's right - this is an issue. Do variables persist between PHP files? In the attached scripts I have a login page which directs the user, on a sucessful login, to a front page which is a frameset. The login.php opens a connection to a MySQL database ($connection) but once the browser has

[PHP] Persisting MySQL connection accross scripts

2003-11-01 Thread rich
How can I establish a connection with a MySQL database and have it persist accross multiple script files? I've found the mysql_pconnect() function but this doesn't seem to do the job - which is fairly logical actually because the connection is stored in a variable: $connect = mysql_pconnect();

[PHP] Problem using substr() and strpos() functions

2003-11-14 Thread rich
Hello List, I'm trying to extract the sub-string from a string which appears between a pair of brackets, e.g. from Mozart Requiem (15) I want to extract the string 15 I tried this: substr($s, (strpos($s, () + 1), (strpos($s, )) - strpos($s, () - 1)) but it returned the error: Parse error:

[PHP] Re: Problem using substr() and strpos() functions

2003-11-14 Thread rich
Oh, sorry I've worked it out! The bug was on a different part of the line! Cheers, Richard -- UEA/MUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread rich
) in c:\apache\htdocs\dbmdata\admin\61646d696e.php on line 2 check you have edited the correct php.ini -- run ? phpinfo() ? and check where the ini file is to make sure you changed the correct one... hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] passing the file back

2004-04-30 Thread rich
basically want a file to be passed back to me, via a web front end Kind Regards Brent Clark not sure what you're after here as mambo gives you an option to download the file to the local computer when you selct backup database... do you not see that option? rich -- PHP General Mailing List

RE: [PHP] http username

2004-05-02 Thread rich
If a user is logged in via http (authentification e.g. with .htaccess and .htpasswd file), how can i get the username of the current logged in user? Thanx Harry try $_SERVER['PHP_AUTH_USER'] rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] executing php scripts via cron

2004-05-18 Thread rich
the cron daemon cannot find the php binary in its path try it like this... 0 6 * * * /full/path/to/php/binary/php /home/www/project/app_cron/follow_up_new_members.php /dev/null hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] count number of occurences of character in a string

2004-06-08 Thread rich
what function can I use to count the number of occurences of a certain character in a string? substr_count() ...? rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Mysql fetch_row()

2004-06-20 Thread rich
the wrong function? ...the wrong function - use mysql_fetch_assoc() rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Eclipse on Linux

2007-04-12 Thread rich
Try setting JAVA_HOME then starting Eclipse. I got a similar error because it was trying to load Java from the wrong directory. Rich Quoting Bagus Nugroho [EMAIL PROTECTED]: Hi All, When I'm trying to use eclipse on Linux, using command java -startup.jar, it was show an error like

RE: [PHP] Qmail problem

2001-03-08 Thread Rich Cavanaugh
Or you could try this: sendmail_path = /var/qmail/bin/qmail-inject Obviously you'll want to put in your correct path to qmail-inject, but that works fine for me. -- rich -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08, 2001 7:24 PM

Re: [PHP] Apache virtualhosts with different user

2002-01-08 Thread Rich Buggy
of a module. The PHP docs tell you how Rich -- 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] PHP and XML/XLST/WDDX etc

2002-03-29 Thread Rich Buggy
XML/XSLT for content management that I can see are: 1. It's easier to enforce a common look and feel on a site. 2. It's easier to re-target content (different transformations for different browsers). . Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Empty delimiter error - ??

2002-04-13 Thread Rich Pinder
it's already in the list, set found else { $found=1; } } Thanks Rich Pinder

[PHP] Empty Delimiter error

2002-04-13 Thread Rich Pinder
Let me try again: This line of the script: if (!stristr($lines[$key], $email)) { yields the following error: Warning: Empty delimiter in /home/sites/site56/web. Do you know what causes this error ? Thanks r -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Empty Delimiter error

2002-04-15 Thread Rich Pinder
for an error code of this meaning - and odd that all the PHP sources I searched before posting here came up empty for the terminology. Thanks again Rich Daniel Grace wrote: Rich Pinder [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Let me try again: T

[PHP] Case Sensitivity

2002-08-11 Thread Rich Hutchins
filename. Help is appreciated. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Store locator / postcode proximity

2001-12-10 Thread Rich Buggy
to be nearby?) Don't even bother trying that for Sydney. There's a border around Western Sydney where the Eastern suburbs are 21xx and the Western ones are 27xx. For example 2148 and 2767 are next to each other. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

RE: [PHP] something wrong

2001-08-07 Thread Rich Cavanaugh
off people though) a window which would load that PHP script and delete the file. rich -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 1:49 PM To: Chris Cocuzzo Cc: [EMAIL PROTECTED] Subject: Re: [PHP] something wrong I tried it using

RE: [PHP] email templates and str_replace

2001-06-20 Thread Rich Cavanaugh
##',$domainname,$mail_content); ? Something like the above would have the effect you're looking for. -- Rich Cavanaugh CTO, EnSpot.com -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 4:32 AM To: [EMAIL PROTECTED] Subject: [PHP] email templates

RE: [PHP] Calculate # of minutes during working hours between two dates

2001-06-20 Thread Rich Cavanaugh
this is just the way I would do it: generate timestamps for 8.00 and 17.30 for the days you want as long as the timestamps are between the two original timestamps. after that it's all subtraction and dividing by 60. That's about as efficient as I can think of. Rich Cavanaugh -Original

RE: [PHP] Code check please

2001-06-20 Thread Rich Cavanaugh
You're using UPDATE syntax for your INSERT try: $sql = INSERT INTO tabell (fornamn, efternamn, email) values ('{$fornamn}', '{$efternamn}', '{$email}'); Rich Cavanaugh -Original Message- From: Andreas Skarin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 12:00 PM To: PHP

RE: [PHP] Problem starting session

2001-06-20 Thread Rich Cavanaugh
Ben, In your php.ini you should have the following: session.save_path = c:\winnt\temp Currently you have it set to: session.save_path = /tmp -- Rich Cavanaugh -Original Message- From: Ben Edwards [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001

RE: [PHP] how to install pws on win2k

2001-06-20 Thread Rich Cavanaugh
Sagar, Open your "Add/Remove Programs" control panel. Click on "Add/Remove Windows Components". Click the check box next to "Internet Information Server". Click OK. You'll need your Win2k CD. This will install a limited version of IIS. --Rich Cavanaugh -

RE: [PHP] [OT-ish] Optional Extras.

2001-06-25 Thread Rich Cavanaugh
to worst match. again - this is all off the top of my head, I'm sure it's not word for word correct. -- Rich Cavanaugh -Original Message- From: Dave Mariner [mailto:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] [OT-ish] Optional Extras. Please

[PHP] passthru environment variables

2001-02-10 Thread Rich Puchalsky
I'm trying to use passthru in a PHP program to have an external program display some data. The problem is that I was trying to have the external program's environment pick up the form field variables automatically passed into the PHP program as shell environment variables. In other words, if a

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"Richard Lynch" [EMAIL PROTECTED] wrote: http://php.net/setenv Thanks! But when I try this link, or the "Quick Ref" button on the PHP home page, I can't find anything about setenv. And the manual doesn't have anything about it under Program Execution Functions. Is it undocumented? --

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"Rich Puchalsky" [EMAIL PROTECTED] wrote in message 966dad$pkm$[EMAIL PROTECTED]">news:966dad$pkm$[EMAIL PROTECTED]... "Richard Lynch" [EMAIL PROTECTED] wrote: http://php.net/setenv Thanks! But when I try this link, or the "Quick Ref" button on the

Re: [PHP] passthru environment variables

2001-02-13 Thread Rich Puchalsky
OK, I finally found it. Someone else here recommended setenv -- it's actually putenv. putenv was *not* found through any search I could make on the PHP Web site involving the word environment and so on, I found it through Google. And it's apparently documented under "PHP Options and

[PHP] System log in problems

2007-05-24 Thread Rich Peterson
this problem for him? Thanks in advance Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Frameworks - Opinion

2006-08-01 Thread rich gray
featured) and the ZF is still in beta I think... cheers rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace on words with an array

2006-10-29 Thread rich gray
regular expression syntax - you'd need preg_replace() for that rich

Re: [PHP] how to kill session id without closing the window?

2006-04-07 Thread rich gray
[chop] How can I create new, other sesssion id (after I, for example, click on 'Log Out' button) without closing window? Thanks for any help. er .. session_regenerate_id() hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] looking for shopping cart

2006-04-22 Thread rich gray
Try Zen cart http://www.zen-cart.com/modules/frontpage/ it is a fork of osCommerce which is a very popular OS cart. I've used it and customised it on a few sites without problems. Cheers Rich Lisa A wrote: I'm still looking for an inexpensive shopping cart to use on my client's website

RE: [PHP] Different output on two different servers

2002-12-09 Thread Rich Gray
command... Does the query that populates $cat_array run OK if executed directly in MySQL? Rich -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: 09 December 2002 13:11 To: PHP General Subject: [PHP] Different output on two different servers Hi all, I have set-up

RE: [PHP] Script not working from one computer

2002-12-09 Thread Rich Gray
Does a print_r() of the superglobal arrays differ in any significant way when posting the username/password from the troublesome client when compared to the superglobals for a well behaved machine? -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 09 December

RE: [PHP] server problems.

2002-12-10 Thread Rich Gray
A wild guess: Are you using a database abstraction class or configuration file? Is it still pointing to the live server database instead of the production server database? Rich -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 12:34 To: PHP General

RE: [PHP] run query

2002-12-10 Thread Rich Gray
Er... but the original poster wanted a count of rows returned by a particular query... your method just returns the number of rows in the table... Rich -Original Message- From: @ Edwin [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 17:21 To: Jon Haworth; 'Diana Castillo' Cc: [EMAIL

RE: [PHP] Help Need in PHP File Upload

2002-12-10 Thread Rich Gray
probably register_globals is off on the client's machine - use $_FILES[][] instead of $HTTP_POST_FILES[][] BTW I would upgrade your local Linux box from v.4.0.3 it is pretty old now and unsupported... Rich -Original Message- From: ppf [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 13

RE: [PHP] Can anyone help? PHP script/MySQL problem

2002-12-10 Thread Rich Gray
Hi Steven so what exactly is the problem then? Rich -Original Message- From: Steven M [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 14:25 To: [EMAIL PROTECTED] Subject: [PHP] Can anyone help? PHP script/MySQL problem Hi, i am trying to create a member login/authentication script

RE: [PHP] Can anyone help? PHP script/MySQL problem

2002-12-10 Thread Rich Gray
which implies the data is hitting the database ok... Rich -Original Message- From: Steven M [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 14:47 To: [EMAIL PROTECTED] Subject: Re: [PHP] Can anyone help? PHP script/MySQL problem Hi Rich The prob is that the data isn't stored

RE: [PHP] How to upload a file

2002-12-18 Thread Rich Gray
What does print_r($_FILES) tell you? Is $_FILES['userfile']['error'] set to a value? Rich -Original Message- From: Somesh [mailto:[EMAIL PROTECTED]] Sent: 18 December 2002 11:18 To: [EMAIL PROTECTED] Subject: [PHP] How to upload a file Hi, I am using the following code to upload file

RE: [PHP] How to upload a file

2002-12-18 Thread Rich Gray
As others have suggested does it make any difference if you up the script timeout limit with set_time_limit() or via the max_execution_time in php.ini? -Original Message- From: Somesh [mailto:[EMAIL PROTECTED]] Sent: 18 December 2002 13:37 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: RE

RE: [PHP] How to upload a file

2002-12-18 Thread Rich Gray
then is there anything created in the upload directory after teh submit is clicked and before it fails...? -Original Message- From: Somesh [mailto:[EMAIL PROTECTED]] Sent: 18 December 2002 15:52 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How to upload a file No difference On Wed, 18 Dec 2002

RE: [PHP] PHP and MySQL queries

2002-12-19 Thread Rich Gray
Does it work if you put quotes around the array keys as follows... echo $line['idn']; echo $line['total']; echo $line['idp']; echo $line['position']; echo $line['points']; Rich -Original Message- From: Beauford.2002 [mailto:[EMAIL PROTECTED]] Sent: 18 December 2002 20:28 To: PHP General

RE: [PHP] Check Uploaded File

2002-12-19 Thread Rich Gray
Shaun Run getimagesize() on the uploaded file - if a valid jpeg the returned array[2] will be set to 2... http://www.php.net/manual/en/function.getimagesize.php HTH Rich -Original Message- From: shaun [mailto:[EMAIL PROTECTED]] Sent: 19 December 2002 02:24 To: [EMAIL PROTECTED] Subject

RE: [PHP] How to upload a file

2002-12-20 Thread Rich Gray
And if you select a small file it works fine right? -Original Message- From: Somesh [mailto:[EMAIL PROTECTED]] Sent: 20 December 2002 12:29 To: Rich Gray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How to upload a file post_max_size 8M upload_tmp_dir didn't set to any value It fails

RE: [PHP] PHP Sessions

2003-01-21 Thread Rich Gray
Sorry I'm a bit late in on this thread but I know there is a problem with sessions with 4.1.2 with IIS 5 over Win2K... is that your platform? I encountered it a while back and there is a hack/workaround which I can dig up if you need it... HTH Rich -Original Message- From: Tim Thorburn

RE: [PHP] Form Validating Class (OOP misunderstandings...)

2003-01-21 Thread Rich Gray
PHP does not yet support private methods ... your problem with getValue() is most probably because register_globals is off in your php.ini try substituting $_POST[] for $HTTP_POST_VARS[] and it may start to work... HTH Rich -Original Message- From: Nicholas Wieland [mailto:[EMAIL

RE: [PHP] setcooke(...) before header(Location: XYZ) - Cookie doesn't set!

2003-01-21 Thread Rich Gray
Mike IIRC this is a known bug with IIS (not PHP) when it gets the http redirect it junks the cookie - sorry I can't remember much more detail than that... Workaround maybe is to spit out an HTML based META refresh redirect tag instead of using the header() call. HTH Rich -Original Message

RE: [PHP] Starting sessions, registering variables, destroying sessions with global_variables off....

2003-01-24 Thread Rich Gray
? Rich -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: 24 January 2003 13:36 To: [EMAIL PROTECTED] Subject: [PHP] Starting sessions, registering variables, destroying sessions with global_variables off I just switched from a 4.06 server with global_variables

RE: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Rich Gray
/tdtdinput type=text name=vname/td/tr trtd colspan=2input type=submit name=submit/td/tr /table /form ?php } ? Rich -Original Message- From: Frank Keessen [mailto:[EMAIL PROTECTED]] Sent: 25 January 2003 11:33 To: Johannes Schlueter; [EMAIL PROTECTED] Subject: Re: [PHP] If... Else.. I'm not getting

[PHP] Session data getting lost

2003-09-16 Thread Rich Gray
get assigned to the $_SESSION array ... it seems to be picking up the initialised value of the variable that gets assigned to the array... It works fine on Win2K albeit v4.3.0 of PHP. Anybody come across this before? Cheers Rich ?php session_start(); $test = -1; echo 'htmlbodyInitial script

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
? Thx Rich --- Rich Gray [EMAIL PROTECTED] wrote: I'm running v4.2.3 on RedHat v7.0 and am getting some strange behaviour with the $_SESSION superglobal... ... It works fine on Win2K albeit v4.3.0 of PHP. Maybe you have register_globals enabled on your Linux server and not on your Windows

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
Jan Sorry - no that doesn't help - as you can see from the code snippet I posted the session_start() is at the very top of the code... Thx anyway. Rich You have to put session_start(); at the VERY TOP of your code. even before alle the html tags. Hope that helps! Jan --- Rich Gray [EMAIL

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
session_register(), it will not work in environments where the PHP directive register_globals is disabled. Cheers Rich [snip] ?php session_start(); $test = -1; . [/snip] I think you need to register test http://us3.php.net/session_register HTH! -- PHP General Mailing List

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
in my code example ... Rich [snip] Thanks, but no I don't think so ... session_register() is deprecated ... [/snip] Not depricated, just doesn't work when register_globals is off in the .ini Have you done a print_r($_SESSION) to see if in fact the $test variable is contained? -- PHP

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think [snip] Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... To answer your

RE: [PHP] Session data getting lost

2003-09-18 Thread Rich Gray
* Thus wrote Rich Gray ([EMAIL PROTECTED]): Well a functon that doesn't work under certain conditions should be deprecated IMO ... I haven't used it for a long time now... this makes absolutly no sense. So if I use a function improperly, it should become deprecated? Er ...I'm not using

RE: [PHP] Session data getting lost

2003-09-18 Thread Rich Gray
* Thus wrote Rich Gray ([EMAIL PROTECTED]): So your telling me that all variables defined in the global scope are automatically added to the $_SESSION array...? Not true I think no. read the documentation, in full. you're right - I'm sorry I hadn't read it in full

[PHP] Returning FORM vars from popup

2003-09-18 Thread Rich Fox
and newparam doesn't get passed. What, please, is a good way to accomplish passing newparam (and other form vars) back to the calling page? Many thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Returning form vars from popup

2003-09-18 Thread Rich Fox
I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with -- PHP General Mailing List (http://www.php.net/) To

[PHP] Opening new browser window

2003-09-19 Thread Rich Fox
. What is the accepted way to do this in php? tia, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opening new browser window

2003-09-19 Thread Rich Fox
javascript. I can also not be in a form. Suggestions? Rich Marek Kilimajer [EMAIL PROTECTED] wrote in message form target=searchwindow Rich Fox wrote: I would like to open a new browser window from within my php script (edit.php), a window in which another php page is run (search.php

[PHP] popups, parents, parameters, and php

2003-09-19 Thread Rich Fox
. Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: popups, parents, parameters, and php

2003-09-19 Thread Rich Fox
the select1 list. I am going to try this, but I would still greatly appreciate any advice. Thanks, Rich Rich Fox [EMAIL PROTECTED] I have been asking specific questions, and getting helpful answers, but I realized I am getting ahead of myself and thinking about the trees when I don't see

[PHP] Re: forcing variable expansion

2003-09-21 Thread Rich Fox
That's not Eugene from the dojo is it? Rich Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I have a block of text saved in an external text file, e.g.: All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}. after reading the text into a string

Re: [PHP] Re: forcing variable expansion

2003-09-22 Thread Rich Fox
Sorry, we have a Eugene Lee at my aikido school and it's such an unusual name I thought you might be him. Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, Sep 21, 2003 at 03:01:41PM -0400, Rich Fox wrote: : Eugene Lee [EMAIL PROTECTED] wrote: : : If I have

[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
: so = window.open('','$callerWin'); This does not work, of course, but you get the idea: I want to use the value of the $callerWin php variable in my javascript. Can someone tell me the syntax for this? My reading of the documentation and trial-and-error have not met with success. thanks, Rich

[PHP] for loop break and continue

2003-09-25 Thread Rich Fox
and immediately goes on to the next iteration? Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] for loop break and continue

2003-09-25 Thread Rich Fox
towards helping yourself. Cheers, Rob. On Thu, 2003-09-25 at 11:42, Rich Fox wrote: Hi, Is there an equivalent to the C++ 'break' command to stop execution of a for loop? I know I can use 'goto' but I don't want to unless I have to. for ($i=0; $i$n; $i++) if (some condition

Re: [PHP] for loop break and continue

2003-09-25 Thread Rich Fox
Can't you let me have a shred of programming self-respect? Rich (I should have cracked the book) Fox On Thu, 2003-09-25 at 12:04, Rich Fox wrote: DOH! This is a new addition to PHP because it wasn't there before! Thanks for the slap. PHP has supported break for as long as I can

RE: [PHP] session id

2003-02-06 Thread Rich Gray
your session support is gone for that particular browser/user. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
After upgrading from 4.0.6 to 4.3.0 Most probably because with 4.3.0 register_globals is set to OFF by default - where does $attach get set? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
and an empty attachment at the recieving end. Only thng that has changes was upgrading PHP from 4.0.6 to 4.3.0 Hi Brian Why are you using $_GET[] when your form is submitting via the 'post' method? Secondly for file uploads why are you not using the $_FILES[] superglobal array? Rich -- PHP

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
'])) { // Blah Blah Blah } Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $_SESSIONS and printing off..

2003-02-18 Thread Rich Gray
Er... well I've seen a lot worse code than that but maybe you could use ... if (isset($_SESSION['username']) !empty($_SESSION['username'])) { echo 'Welcome '.$_SESSION['username'].', you are still logged in.'; } else { header... etc etc } Rich -Original Message- From

RE: [PHP] $_SESSIONS and printing off..

2003-02-18 Thread Rich Gray
Um... how about... echo 'Welcome '.$_SESSION['username'].', you are still logged in and your authentication level is '.(isset($_SESSION['level']) ? $_SESSION['level'] : 'unknown'); Or am I missing something here? Rich -Original Message- From: Frank Keessen [mailto:[EMAIL PROTECTED

RE: [PHP] Block direct image loads but allow them in PHP

2003-02-19 Thread Rich Gray
(Content-Disposition: attachment; filename=.$link); $fp = fopen($link, 'r'); fpassthru($fp); fclose($fp); } else echo Error: Couldn't decode image URLbr\n; } Michael Have you tried header('Content-type: image/jpeg') ? Note the 'e'... Rich -- PHP General

RE: [PHP] online tutorial

2003-02-19 Thread Rich Gray
/tutorial.php http://www.devshed.com/Server_Side/PHP Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ftp browsing

2003-02-23 Thread Rich Gray
? Is your personal server Win32? There was a bug with ftp_nlist()/ftp_rawlist() on Windows that wasn't fixed till v4.3.x IIRC Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ftp browsing

2003-02-23 Thread Rich Gray
scripts on and what version of PHP is it? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I display the script file name?

2003-02-27 Thread Rich Gray
of these to see if it is what you want - some are absolute some are relative ... ? echo $_SERVER['SCRIPT_NAME'].' '. $_SERVER['SCRIPT_FILENAME'].' '. $_SERVER['PHP_SELF']; ? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Counting table fields having specific values

2003-02-27 Thread Rich Gray
Mike Try ... ? $res = mysql_query('select count(*) from names where not hide'); $row = mysql_fetch_row($res); echo $row[0]; ? Rich -Original Message- From: rentAweek support [mailto:[EMAIL PROTECTED] Sent: 27 February 2003 17:32 To: [EMAIL PROTECTED] Subject: [PHP] Counting table

RE: [PHP] Automatically included file?

2003-02-27 Thread Rich Gray
. Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Destroying COM objects

2003-02-27 Thread Rich Gray
When using the COM functions in PHP what is the equivalent of ASPs set object=nothing? I am using the Crystal Report objects and I cannot seem to destroy my Report object. Have you tried setting it to NULL? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] Get variable from PHP before submit

2003-03-01 Thread Rich Gray
! Lars I've probably misunderstood but can you not use an HTML anchor...? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parse exec output

2003-03-01 Thread Rich Gray
If I exec a command like ifconfig, I'd like to be able to parse. What is the best way to go about thihs? An example output from ifconfig is: Check http://www.php.net/manual/en/function.passthru.php Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] php.ini

2003-03-01 Thread Rich Gray
? What happens if you change your php.ini directive to ... extension_dir = C:/php/extensions HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mysql replication + mysql_pconnect

2003-03-01 Thread Rich Gray
to the master , and if i shut down the master it wont goto the slave :| Not sure I understand ... are you saying that mysql_connect('localhost:3307','user','password') connects to the master server? Can you describe the problem in more detail? Rich -- PHP General Mailing List (http://www.php.net

RE: [PHP] php.ini

2003-03-01 Thread Rich Gray
Rich, I've checked my php.ini files on my drive and all I've got is one. The php_gd2.dll file is in: C:/PHP/extensions There was no default folder called extensions when I installed PHP so I made a directory called extensions under PHP. Everytime I take out the semicolon in the .ini

RE: [PHP] Random not working?

2003-03-01 Thread Rich Gray
() in PHP to generate a random ID then use that with a 'where id = '.$id in your query... HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Rich Gray
. HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >