php-general@lists.php.net

2002-11-09 Thread Rich
PHP$B=i?4http://www.mydomain.com$B$G%;%C%7%g%s$r3+;O$7!"$=$N8e!"(B (Bhttps://www.mydomain.com/regist.htm$B$X0\F0$7$?$H$-$K!"%;%C%7%g%s$O7QB3$5(B $B$l$k$N$G$7$g$&$+!)(B (B $BJL%5!<%P!<$X0\F0$9$k$H%;%C%7%g%s$O=*N;$9$k$HJ9$-$^$7$?!#%I%a%$%sItJ,$,F1(B $B$8$G$b(Bhttps://$B$K$J$k$3$H$G!"JL%

[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

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

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

[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 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] 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] 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] 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] 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] 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] 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
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] using cookies

2002-11-23 Thread Rich Gray
can remove them by using stripslashes() or switch off magic quotes in your php.ini file. But I would repeat *don't* continue down the path you are going unless you like being hacked! HTH Rich -Original Message- From: Ken Nagorski [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 11:

RE: [PHP] using cookies

2002-11-23 Thread Rich Gray
Try the system() or passthru() functions... Rich -Original Message- From: Paul Marinas [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 13:09 To: Rich Gray Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] using cookies dose anyone how to send a "ping" in loc

RE: [PHP] Passing Variables

2002-11-23 Thread Rich Gray
Is your register_globals setting set to Off? This is the default setting in v4.2.x upwards. Rich -Original Message- From: Craig Edgmon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 11:43 To: [EMAIL PROTECTED] Subject: [PHP] Passing Variables I am sure this question has been answered

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Rich Gray
Answer is No. 2) Use cron to run the mysqldump utility instead of a php script. Let me know if you need more info. Cheers Rich -Original Message- From: See Kok Boon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 07:35 To: PHP Subject: [PHP] getting mysql dump using php hi, can

[PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
( [userpic] => Array ( [name] => garden.jpg [type] => image/pjpeg [tmp_name] => C:\\WINNT\\TEMP\\phpC0.tmp [error] => 0 [size] => 59501 ) ) Not Uploaded The copy() function works in that the temp file is copied to c:\test.jpg. So why is is_uploaded_file() returning false? TIA Rich -- PHP

RE: [PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
Don't bother to respond people... worked out the issue - the double backslashes in the name... Cheers Rich -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 21:14 To: [EMAIL PROTECTED] Subject: [PHP] File upload on Win2k ... PHP v4.2.3 Win2K Sp2 A

RE: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Rich Gray
Stephane http://www.php.net/manual/en/security.registerglobals.php http://www.php.net/manual/en/faq.php Substitute 'fr' for 'en' if your prefer it en francais Use: $_GET['id'] or $_REQUEST['id'] Ciao Rich -Original Message- From: Stéphane G

RE: [PHP] Newbie Mail() Question...

2002-11-27 Thread Rich Gray
Er yea - just call the mail() function at the appropriate time in your script... http://www.php.net/manual/en/function.mail.php However IMO if you need to log this sort of information then using a database is far more appropriate than sending emails - especially on a busy site... Rich

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Rich Gray
support at any time or delete/tamper with cookies so don't make your code reliant on the stuff stored in them... In effect it is up to you what you save and process from persistent cookies... HTH Rich -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not worried about them using the q

RE: [PHP] session problems again

2002-11-27 Thread Rich Gray
Jason session.cookie_lifetime set to 0 means the session cookie persists until the client browser is closed... I'm not clear if you are still having session problems now or the advice you got earlier sorted it? Rich -Original Message- From: Jason Romero [mailto:[EMAIL PROTECTED]]

RE: [PHP] Bizarreness with htmlentities() and other things

2002-11-28 Thread Rich Gray
Hi James There is a bug in PHP for the capitalisation problem http://bugs.php.net/bug.php?id=14655 If you check the link then a workaround was posted by someone. HTH Rich -Original Message- From: James Coates [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 13:11 To: [EMAIL PROTECTED

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 a

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 200

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'

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 20

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 to

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

2002-12-10 Thread Rich Gray
e expected 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

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

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

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

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

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] 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] 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] 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] 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
_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] $_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] $_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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
> 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[PHP] Case Sensitivity

2002-08-11 Thread Rich Hutchins
doesn't seem to matter with the elements of the path, just the target filename. Help is appreciated. Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] easy things - forms, variable sending

2002-11-22 Thread Rich Gray
Hi Some suggestions below... Cheers Rich >This is a trivial question - what function can I use to automatically >proceed to some link, one that can be executed without any user input. header('Location: http://www.newurl.blah') >How can we, most efficiently, send all the da

RE: [PHP] session trouble

2002-11-22 Thread Rich Gray
ssion related calls were made. HTH Rich -Original Message- From: empty [mailto:[EMAIL PROTECTED]] Sent: 22 November 2002 14:22 To: [EMAIL PROTECTED] Subject: [PHP] session trouble hi guys ; I can't use session bla..as on my site. PHP Code ... Warning: Cannot send session cac

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

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

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

[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

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

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

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

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

[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

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

  1   2   >