Re: [PHP] Debugging Help Needed

2011-04-13 Thread Rich Shepard
27;s failing as I try to invoke the application and transferring control to the error handler? There has to be something either in the index.php, or a function it's calling, that cannot find the opening display. I need to learn what's happening so I can get this application running her

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Rich Shepard
e page not found error, or how to capture output from debug_print_backtrace. Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Debugging Help Needed

2011-04-12 Thread Rich Shepard
: 404 Not Found"); echo ' 404 Not Found produces: PHP Parse error: syntax error, unexpected '@' in /var/www/htdocs/cmsms/lib/misc.functions.php on line 223 How can I determine where ErrorHandler404() is being called so I can fix the problem and get the

[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 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",

Re: [PHP] str_replace on words with an array

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

Re: [PHP] PHP Frameworks - Opinion

2006-08-01 Thread rich gray
robust, fully 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] 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&

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] Like ternary but without the else.

2005-02-25 Thread rich
I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? is this what you're after? $this = ($something ? $that : $this) rich -- PHP G

Re: [PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
> > Can't you sort the array? > > > Yes of course but that wasn't the point of my post I was trying to show that the same code produces differing results on 2 different versions of PHP ... rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
ces on our provider's server... 4.2.3 Array ( [0] => Zero [1] => One [2] => Two ) and on my development server... 4.3.8 Array ( [1] => One [2] => Two [0] => Zero ) hth 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
my server-software is too > old or am I using 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] 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] executing php scripts via cron

2004-05-18 Thread rich
o change into > the directory > via cron first? It is probably because 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 Li

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread rich
iled: No such file or directory (2) in > c:\apache\htdocs\dbmdata\admin\61646d696e.php on line 2 > check you have edited the correct php.ini -- run 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

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

RE: [PHP] passing the file back

2004-04-30 Thread rich
very much lagging. > I 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 opt

RE: [PHP] JavaScript Enabled?

2004-03-29 Thread Rich Gray
avascript enabled code using document.write() which will be ignored by disabled clients and then use tags to enclose whatever stuff is necessary for the disabled clients? Just a thought Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Rich Gray
tom background script listening on a socket - send a request to that socket from your web page... . IPC through shared memory... . probably loads more... Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] seesions problem

2004-02-27 Thread Rich Gray
> Notice: Undefined index: user_id in > /home/pance/public_html/menu.php on line > 13 > > Has anybody else come accross this problem - and how did you solve it? > > Pance Stojkovski are you using session_start() at start of each page that manipulates $_SESSION ? rich --

RE: [PHP] Uploading Files

2004-02-24 Thread Rich Gray
quot; on your form for file uploads . Watch out for max file size being exceeded -- check the php manual on 'Handling file uploads' . If register_globals is off on your server you'd better start looking at using the $_FILES superglobal (check the manual) . use move_upload

RE: [PHP] Best way to increment an integer column in mysql

2003-12-11 Thread Rich Gray
'update mytable set my_int_column = my_int_column + 1 where blah blah ...'); HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP's MySQL Query Length Limit? (Long SQL failing!)

2003-12-11 Thread Rich Gray
27;ll probably need to check this name as I haven't any docs to hand at the moment) setting in your my.ini file... HTH Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[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

RE: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Rich Gray
u mean exchanging data between PHP and javascript without incurring a page reload ... well it is definitely possible using javascript remote scripting techniques and a hidden iframe however if the browser has javascript switched off then this won't work of course... Cheers Rich -- PHP Gen

[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(); a

[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 be

[PHP] Re: Using two XSLT stylesheets

2003-10-21 Thread rich
;arg:/xml", "arg:/xslt", NULL, $arg_buffer, $params); 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&

[PHP] Re: Using two XSLT stylesheets

2003-10-19 Thread rich
xml! See http://www.cursus.uea.ac.uk/cdlib/ for error messages in action (search terms which 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

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_

[PHP] Using two XSLT stylesheets

2003-10-18 Thread rich
'simple-search-display-results.xsl', NULL, NULL, NULL); and: $results = xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl', --> NULL, NULL, $params); $data = xslt_process($xh, $results, 'simple-search-display-results.xsl', --> NUL

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Rich Fox
But *why* does logic.php need html.php? There is no recursion issue, or endless nesting of includes, because html.php refers to logic.php as an action for a form... this does not "include" the logic.php code into the html.php page. Rich "Karina S" <[EMAIL PROTECTED]

Re: [PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
Yeah, that did it, thanks "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 17 Oct 2003 11:29:41 -0400, you wrote: > > >I hope this question is not too stupid! When I have an error in my script, > >it seems to me that the web server, or in my case the php CGI modu

[PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
script and the browser just shows me a blank page. Is this because I am running php as a CGI module? Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Nested queries don't work

2003-10-15 Thread Rich Fox
enting this for MS SQL Server? Thanks Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
robably doing something very stupid. Marek Kilimajer wrote > Output from action.php: > > opener.location.reload(); > close(); > > > Rich Fox wrote: > > Warning for server side purists: My php scripts use javascript to popup and > > close windows. So this question, al

[PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
ript']."?ID=".$_POST['ID']); exit; } ... This reloads the popup window, and then I have a "close" button to close the popup. Then I have to refresh the browser window manually to see the updated table from the database. Can I get some advice on how to

[PHP] documentation on "<<<"

2003-10-01 Thread Rich Fox
Can someone point me to documentation on the <<< operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. 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
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 sl

Re: [PHP] for loop break and continue

2003-09-25 Thread Rich Fox
ila, you've taken the first step 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

[PHP] for loop break and continue

2003-09-25 Thread Rich Fox
e rest of the code in the for loop 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

[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
'); 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 General Mailin

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" <

[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}. > >

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

2003-09-19 Thread Rich Fox
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 tr

[PHP] popups, parents, parameters, and php

2003-09-19 Thread Rich Fox
ppreciated. Thanks, 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
And if you are not in a form? My current code is: where popup is my javascript function. But as I said below, the popup doesn't work as expected and I do not want to use javascript. I can also not be in a form. Suggestions? Rich "Marek Kilimajer" <[EMAIL PROTECTED]

[PHP] Opening new browser window

2003-09-19 Thread Rich Fox
to run search.php. 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

[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] Returning FORM vars from popup

2003-09-18 Thread Rich Fox
lling page? Many thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 righ

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

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-17 Thread Rich Gray
#x27;test'] to -1 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($_S

RE: [PHP] Session data getting lost

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

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 tags. > Hope that helps! > >

RE: [PHP] Session data getting lost

2003-09-17 Thread Rich Gray
here? 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_glo

[PHP] Session data getting lost

2003-09-16 Thread Rich Gray
ever 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 Initial script load ... $_SESSION value is '.(isset

RE: [PHP] Microsoft SQL Server varchar(500) field text concatenated at 255 characters.

2003-03-28 Thread Rich Gray
t; > Has anyone got an idea why this might be hapenning? > > Many thanks. > > Scott Hi Scott I believe this is a problem because of the relatively old TDS libraries used by native access methods... Possible workarounds are... . cast the data to TEXT before returning it . use ODBC whic

RE: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Rich Gray
mktime() to help you generate unix timestamps. HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] string replace problem!!

2003-03-28 Thread Rich Gray
,slideimages[1],slideimages[2]"; > $string = preg_replace('/^./','',$string,1); > > wich results in slideimages[0]slideimages[1]slideimages[2] > Can somebody help me out here?? > > thnx > Thijs $string = substr($string,1); Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file

2003-03-28 Thread Rich Gray
string - unless this is a typo in your post . fwrite() returns an int - you are assigning this int to $contents - what exactly are you expecting $contents to be set to? . Does your user or web server process have the permissions to create files in the directory? . What does readfile('sandrew.html

RE: [PHP] Persistent values between executions

2003-03-10 Thread Rich Gray
gt; way. > > Any thoughts? Comments? RTFM suggestions? > > Mike > Use a 404 handler to build static html pages from the database. To refresh the content just delete the static content - this could be done automatically at predetermined intervals using cron or similar. FFT Rich -- PHP

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Rich Gray
hnks > Charles > I presume you mean area_name... Try this -> SELECT a.area_name as area_a, b.area_name as area_b FROM tbl_1 x, tbl_2 a, tbl_2 b Then you can refer to the columns as $array['area_a'] and $array['area_b'] HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
t; > > Take out the @ sign so you can see what the PHP error message is. > > > > ---John Holmes... Try using move_uploaded_file() as well... Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
needed. > > Thanks, > Amanda >From what you say above I'd check the permissions on the 3rd target directory to check if it allows writes by the web server process. Are all 3 files going into the same directory? Is the server *nix or Windows? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] submit button

2003-03-06 Thread Rich Gray
p.php has only the following: > echo "hi how are u"; > ?> > > please help, > diksha. Can you post the form code? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] question about smarty

2003-03-04 Thread Rich Gray
sible on the target server. It can be outside the document root though if it bothers you... HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] quick echo output

2003-03-03 Thread Rich Gray
.. I think it's because the '=$blah' syntax relies on short tags ... and short tags can upset XML parsers... as a result short tags aren't supported by all hosting providers so your code could break if ported to another site... Cheers Rich -- PHP General Mailing List (

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Rich Gray
t problem so fix the bad session temp directory and they will probably disappear. HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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. &

RE: [PHP] Random not working?

2003-03-01 Thread Rich Gray
ySQL list but there was a known issue with RAND() on 3.23.54 - can you upgrade? If your table has an auto_increment ID column then a workaround would be to use rand() 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] mysql replication + mysql_pconnect

2003-03-01 Thread Rich Gray
l connecting 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 i

RE: [PHP] php.ini

2003-03-01 Thread Rich Gray
stall GD libraries greatly appreciated. > Thank you. > Tony Ritter Hi Tony Still battling GD I see :) Are there any errors in the Apache error.log? 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] 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 unsubscrib

RE: [PHP] Get variable from PHP before submit

2003-03-01 Thread Rich Gray
es > $teller. > > Anyone know a way to make this work? > > Thanks alot! > > 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] 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.ph

RE: [PHP] Automatically included file?

2003-02-27 Thread Rich Gray
this may suit your needs. Cheers 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 ... Rich > -Original Message- > From: rentAweek support [mailto:[EMAIL PROTECTED] > Sent: 27 February 2003 17:32 > To: [EMAIL PROTECTED] > Subject: [PHP] Counting table fields having specific values > > > I have a table where the row named "

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

2003-02-27 Thread Rich Gray
; Stephen Ford, Surrey, UK Try any of these to see if it is what you want - some are absolute some are relative ... 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
unning the PHP 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] ftp browsing

2003-02-23 Thread Rich Gray
. Thanks. > > Matt What version of PHP are you running on your personal ftp server? 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] online tutorial

2003-02-19 Thread Rich Gray
nd/tut/ http://www.php.net/manual/en/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] Block direct image loads but allow them in PHP

2003-02-19 Thread Rich Gray
rror: Couldn't decode image URL\n"; > } Michael Have you tried header('Content-type: image/jpeg') ? Note the 'e'... 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
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 > -Origi

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.'; } e

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
_FILES['attach']['tmp_name'])) { // Blah Blah Blah } 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
omething > it still goes through but with all the error messages 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' metho

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
in > /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_mess > age.php on line 30 > > 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] session id

2003-02-06 Thread Rich Gray
ssed via the url if cookies are being refused. But then of course 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] If... Else.. I'm not getting it!

2003-01-25 Thread Rich Gray
You are using the post method not get so $_GET[] should be empty. Does this version of your code work? Input yourname Rich -Original Message- From: Frank Keessen [mailto:[EMAIL PROTECTED]] Sent: 25 January 2003 11:33 To: Johannes Schlueter; [EMAIL PROTECTED] Subject: Re: [PHP] If

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

2003-01-24 Thread Rich Gray
Phil It should be as easy as .. You'll need a session_start() on all pages that will be using the $_SESSION[] array. Is your session.save_path pointing to a writable directory? Do you see any errors in the server logs when you try to start a session? Rich -Original Message- From:

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 Me

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] 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 Tho

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 It fails immediately after clicking

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] 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 PROTEC

  1   2   >