[PHP] session_start... twice?

2002-10-25 Thread James Taylor
I have a single page site I'm working on that displays the contents of your current session. Users can clear the contents by clicking a link that triggers a $PHP_SELF?clear=1 - Before any headers are sent out, the script checks for $_GET['clear'], and if it's set, it does a session_destroy();.

[PHP] processing form checkboxes

2002-10-24 Thread James Taylor
Heya folks, not sure if this is more of a php question or an html question, though I'm right now leaning towards a 50% php, 50% html, so I think this is on topic still. I have a form filled with checkboxes, each representing one of the 50 states. A user can check as many states as they want,

RE: [PHP] SSH (again)

2002-10-14 Thread James Mackie
As this is very OT I have replied privately.. :) James -Original Message- From: Alan Todd [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 12:59 PM To: PHP Subject: [PHP] SSH (again) Question for all you out there .. Trying to do ssh (yes i know i checked the archives) .. i

RE: [PHP] Re: who's in the chat?

2002-10-10 Thread James E Hicks III
My chat stores usernames, timestamps in a table on DB. When refresh script runs, it updates the timestamp on usernames and deletes rows in DB with stale timestamps (no refresh run). Pulling usernames from this table gives current chat users. James -Original Message- From: Oliver Witt

[PHP] Working with dates in PHP

2002-10-10 Thread James Purser
['mday'].br /); $oday = date(d, $odate); print($odate['mon'].br /); $omonth = date(m, $odate); print($odate['year'].br /); $oyear = date(Y, $odate); print($oyear.br /); } Any help would be appreciated. James -- PHP General Mailing

[PHP] Complete development software

2002-10-03 Thread Ray, James A
Other then Abriasoft, is there another complete software package that contains PHP, MYSQL, APACHE and PERL for Windows? Thank you Jim

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
with PHP 4.2.3 that it stops working. -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 12:56 AM To: James Mackie Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3 James Mackie wrote: On most of my servers that are running

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
: [PHP] Apache 1.3.26 + PHP 4.2.3 At 01:54 PM 10/1/02 +0200, Erwin wrote: James Mackie wrote: Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
: Tuesday, October 01, 2002 6:09 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3 James Mackie wrote: Since I installed apache from source and not an RPM I do not have an It would have existed before you compiled/installed from source (assuming apache was installed

[PHP] Apache 1.3.26 + PHP 4.2.3

2002-09-30 Thread James Mackie
Got a strange problem that I can't find any info on. Maybe someone can give me some insight. On most of my servers that are running 4.2.2 (and before) I used 'killall -USR1 httpd' to reload my apache config. Now all servers that I install with 4.2.3 instead of 4.2.2 this shuts down apache

[PHP] Taking a Snapshot of Memory Usage

2002-09-26 Thread Robert James Kaes
-- -- Robert James Kaes--- Flarenet Inc. ---(519) 426-3782 http://www.flarenet.com/ * Putting the Service Back in Internet Service Provider * -- -- PHP General Mailing List (http://www.php.net

[PHP] Relative Paths and file_exists() - Solaris

2002-09-26 Thread James Nikolich
Hello; I'm using PHP 4.2.3 on a Solaris 2.8 (Sparc) system. I've been having some difficulties getting PHP-Nuke 6.0 to work for me. I eventually narrowed the problem down to incorrect results from calls to file_exists(). It seems that file_exists() is having trouble finding an existing file

[PHP] MyPHPNuke1.8.8-1 *** Nuked ***

2002-09-24 Thread James Redfern
. It seems I'm damned if I do and damned if I don't! JR. -- James Redfern [The Redfern Organization] PGP Auto-responder mailto:[EMAIL PROTECTED]?subject=0xCB81E8E8 Fingerprint: 6809 FE89 4CEF E76F C6DF 04BF 46DC 58B9 CB81 E8E8 ...You always suppress momentary anger at something you deeply

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread James E Hicks III
Have a look at this php.ini setting, I think it will help you! ; The domain for which the cookie is valid. session.cookie_domain = James -Original Message- From: David Buerer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:39 PM To: '[EMAIL PROTECTED]' Subject: [PHP

RE: [PHP] basic voting

2002-09-11 Thread James E Hicks III
How bout this for just a little better than IP logging. ? if (getenv(HTTP_X_FORWARDED_FOR)){ $internalip=getenv(HTTP_X_FORWARDED_FOR); } if (getenv(REMOTE_ADDR)){ $externalip=getenv(REMOTE_ADDR); } echo $externalip.-.$internalip; ? -Original Message- From: Adam Williams

RE: [PHP] faxing

2002-08-28 Thread James E Hicks III
system(html2ps document.html); system(hylafax -somedirectives document.ps); I haven't got around to actually figuring this out, but this is my plan. James -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 1:14 PM To: [EMAIL PROTECTED

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread James Green
$loop])) then you know if it's set or not. I think that just about covers it. Apologies if I have misread/misinterpreted what you have asked. James Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] question about executing a bash shell script...

2002-08-16 Thread James E Hicks III
try something like: $bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles pathtogetfiles'); if that doesn't work can you use the system() function instead? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-16 Thread james daily
are not getting assigned the data being passed. QUESTION: has anybody else run across this and what was the resolution? - James Daily Phone : 816 943 9891 Email : [EMAIL PROTECTED] (or hit reply button) Web : http://tellmama.com/ Philosophy

[PHP] apache seg fault (sig 11)

2002-08-14 Thread Pete James
Wondering if any of the gurus out there have any insight... I'm running a set of php scripts using nested output buffering + sessions and I'm getting sporadic seg faults. If I turn off output buffering it seems to work fine, which would be great if I didn't need it. I'd post code, but there's

RE: [PHP] HTML issue... spaces in between images

2002-08-13 Thread James Green
), the fix is provided here: http://developer.netscape.com/evangelism/docs/articles/img-table/ James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include require directive

2002-08-13 Thread James Green
above your first ?php in any of your files. James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] N6: PHP files can't show source

2002-08-13 Thread James Green
files? You may be seeing a problem that affected Mozilla prior to 1.0 release. When it got a page as a result of a POST it wouldn't cache the result to disk, which is where the View Source got it's data from. Something like this may be affecting you. Try it with Netscape 7 or Mozilla 1.0. James

Re: [PHP] Re: controls list menu

2002-08-13 Thread James Green
for this reason. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strip PHP tags

2002-08-12 Thread James Green
://uk.php.net/manual/en/function.strip-tags.php James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include require directive

2002-08-12 Thread James Green
that off?? http://uk.php.net/manual/en/function.include.php Enclose your included scripts in ?php ... ? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Evaluating server date ranges?

2002-08-12 Thread James Green
boundaries. http://www.php.net/manual/en/function.gmmktime.php James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Logging out with authentication

2002-08-01 Thread Pete James
?php if(!isset($PHP_AUTH_USER) || (isset($logout))) { header(WWW-Authenticate: Basic realm=\Your Realm\); header(HTTP/1.0 401 Unauthorized); echo Your custom 401 message here\n; exit; } else { echo pHello $PHP_AUTH_USER./p; echo pYour password is $PHP_AUTH_PW./p;

[PHP] problems with func_get_arg()

2002-07-26 Thread James Nord
Stable (PowerPC) /James -- Technology is a word that describes something that doesn't work yet. Douglas Adams -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Doing an HTML POST using header()

2002-07-22 Thread Pete James
Don't redirect, use curl to post your data to the new page. Francis wrote: I'm trying to redirect to another website but doing a post to that website at the same time. (ie POST rather than a GET (eg: header(Location: www.anothersite.com/index.php?page=22); ) How do you do an HTML post

[PHP] Re: Doing an HTML POST using header()

2002-07-22 Thread Pete James
, its gonna be quite simple but whats the syntax? there must be a way to do it... Pete James [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Don't redirect, use curl to post your data to the new page. Francis wrote: I'm trying to

Re: [PHP] upgrade 4.1.2 to 4.2.2 (passing vars problem with 4.2.2)

2002-07-22 Thread Pete James
Evan Nemerson wrote: If you need register globals on for your old stuff, but want to write better new code, you can just use ?php ini_set(register_globals, 0); ? in your new stuff. You can't do this in a php file... by the time it gets to this line, it's too late. According to the set_ini

Re: Re[4]: [PHP] Submitting to cgi script

2002-07-21 Thread Peter James
This worked now my question is. Is there a way to force it to submit with POST rather than GET Look at the CURL functions on php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about using if elseif ...

2002-07-18 Thread Pete James
Is there any problem with leaving out the last else and just ending it with an elseif such as ... if($a == '1'){ echo '1'; } elseif ($a == '2'){ echo '2'; } Nothing syntactically, but surely you wouldn't want a rogue '3' or '0' to fall through the cracks... that wouldn't be very good,

[PHP] Re: Sessions / logins / cookies / security

2002-07-17 Thread Peter James
There's a good article on authentication at phpbuilder.com http://www.phpbuilder.com/columns/tim2505.php3 that may provide an idea or two. - Original Message - From: Chad Day [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 10:30 AM

RE: [PHP] two way encryption

2002-07-14 Thread James Cox
sorry to step in, but did you consider base64_[encode|decode] ? -- james Justin French wrote: Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so there's very little point

[PHP] LDAP Objects

2002-07-09 Thread Stewart James
Hi All, Just wondering if some can explain this to me. Lets assume I ahve retrieved a person entry from an LDAP server. It contains uid, and cn with 2 values. I would expect the object when assign to $entry to look like. $entry['uid'][0] = Jsmith $entry['cn'][0] = john smith $entry['cn'][1]

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Pete James
You could also try using Javascript to popup a window when they close the current one, and reset your cookies (and/or destroy your session) in that window. Pete. Kevin Stone wrote: Okay sorry for the misunderstanding. You can set the lifetime of the cookie to die when the browser window

[PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Pete James
I also would like to hear the answer to this... I try set_time_limit(3600), but my script still appears to time out early Jay Blanchard wrote: Good afternoon, We have some cases where we run PHP as a standalone executable for scripting certain processes that can be called from CRON, and

Re: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-07 Thread Pete James
From the php.net manual for pg_fetch_array: Note: From 4.1.0, row became optional. Calling pg_fetch_array() will increment internal row counter by 1. Ilia A. wrote: On July 5, 2002 07:54 pm, Pete James wrote: Ilia A. wrote: The biggest annoyance I've come across is the fact

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
was fine. Jim Drabb -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] iptables logging

2002-07-06 Thread James Drabb
can send it to a seperate file say /var/log/firewall.log? Thanks, Jim Drabb -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] iptables logging

2002-07-06 Thread James Drabb
Opps, I sent to the wrong list : ) Sorry, Jim Drabb -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Stored Procedures

2002-07-06 Thread James Drabb
. -- James Drabb JR - Programmer Analyst - Orlando, FL - [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] png image doesn't show

2002-07-05 Thread James E Hicks III
. graphit.php should do two things; First send the header, Second send the PNG data. -- James E Hicks III Noland Company 2700 Warwick Blvd Newport News, VA 23607 757-928-9000 ext 435 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: opening pdf file in new window with a POSToperation

2002-07-05 Thread Pete James
Tom Rogers wrote: Hi get data is insecure by nature so the whole page is insecure and no warnings, as soon as you post you invoke the security. You probably have a url on your page that is coming from an insecure server (http:// instead of https://) Tom Believe me when I say that there

[PHP] Re: total (slightly OT)

2002-07-05 Thread Pete James
more specific? What fields... from a database? [EMAIL PROTECTED] wrote: Hey everyone, Am working late as usual before the weekend and so I fear i'm a bit braindead! Anyway,heres my problem I have fields named total and avg and no idea how many records how do I get the total and

[PHP] Re: opening pdf file in new window with a POST operation

2002-07-05 Thread Pete James
Thank you, Richard. I think I understand now... I experienced this HTML behavior when trying to debug this problem, but figured it had little to do with the problem. HTML coming up in that page (even the pdf, as garble) was not producing a warning... Now I understand. One last question,

[PHP] opening pdf file in new window with a POST operation

2002-07-03 Thread Pete James
This is a strange one... h1test/h1 form action=https://my.server/reports.php; method=post target=_blank input type=text value='1' name=pdf_client_num input type=text value='q1_2002' name=pdf_time_period input type=text value='reports' name=task input type=text value='pdf' name=report_type input

[PHP] Re: Script Security: Best coding practices

2002-07-03 Thread Peter James
A suggestion would be to make sure that the variables you're receiving are coming from where you think they're coming from... For instance, $_SESSION['logged_in'] is also (generally) $logged_in but so is $_GET['logged_in'] A smart user could fake it if they wanted to... check the $_SESSION or

[PHP] User Enviroment Vars

2002-07-02 Thread James Brisland
Has anyone her got any idea how I could access the User Env Vars so I can get processor type, speed, ram etc. Is there any way to do this? Or would be be something other than PHP. Also I need to do this over the web and not on their machine. Any ideas? James. -- PHP General Mailing List

Re: [PHP] Compiling PHP with XML????

2002-06-27 Thread James Clifford
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- James Clifford [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
sruption and maintaining maximum happy users. Thanks Zim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- James Clifford [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
on register_globals being *on*'. =/ -- James Clifford [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Truncation

2002-06-25 Thread James Drabb
- James Drabb JR Programmer Analyst Darden Restaurants Business Systems [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Whos online at the moment in PHP

2002-06-24 Thread James E. Hicks III
Why not; 1. Record each visitors IP that connects and the connect time. 2. Delete from this table all records that are 5 mins old. 3. Count the remaining records as people currently viewing page. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] PHP with IIS

2002-06-24 Thread James E. Hicks III
do windows. James -Original Message- From: Dave Leather [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 3:52 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP with IIS OK made some headway... Made my network drive that I wanted to access a virtual directory on my IIS

[PHP] Profiling

2002-06-23 Thread James Drabb
and slowly back away - James Drabb JR Programmer Analyst [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output_buffering

2002-06-23 Thread James Drabb
buffering faster? Jim Drabb -- - Never ask a geek why, just nod your head and slowly back away - James Drabb JR Programmer Analyst [EMAIL PROTECTED] -- PHP General Mailing

[PHP] Log files.

2002-06-21 Thread James E. Hicks III
being root. Then when the website users started creating errors (later in the morning), apache was unable to write to the file because it was owned by root. Duhhh!! Maybe this will help someone in the future. James E Hicks III -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Post

2002-06-20 Thread James Drabb
- James Drabb JR Programmer Analyst Darden Restaurants Business Systems [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ascii Value

2002-06-18 Thread James Drabb
-- - Never ask a geek why, just nod your head and slowly back away - James Drabb JR Programmer Analyst Darden Restaurants Business Systems [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General

Re: [PHP] PCRE Problem

2002-06-13 Thread James Clifford
want to change it to $string = bTest/b How? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- James Clifford [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP version 4.2 and above

2002-06-06 Thread Opere, James
: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:20 AM To: Opere, James Cc: PHP Windows Discussion List; PHP General Discussion List Subject: Re: [PHP] PHP version 4.2 and above On Wed, 22 May 2002, Opere, James wrote: I have aproblem with php = 4.2.I'm working on graphics

[PHP] Is this possible

2002-06-05 Thread James Edgar
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below. Any help would be greatly appreciated. class myfirstClass { function Track($tracknum) {

[PHP] Is this possible

2002-06-05 Thread James Edgar
I am trying to run a class inside a class, it says that the object is there but when I go to get the info, it is not there. I have attached the code below and attache the xml.inc file. Any help would be greatly appreciated. class myClass { function myFunc($var)

RE: [PHP] OT - php/mysql/cron

2002-06-03 Thread James E. Hicks III
Here's a little tweak to gzip the backup results. I put this into another script that gets called by crontab. Are my DB userid and password still visible when run this way? I'm never here to see it run, because it happens late at night. /usr/bin/mysqldump --user=DBUSER --password=DBPASSWORD

RE: [PHP] Re: PHP can not connect to mysql

2002-05-31 Thread James Holden
@mysql_connect(localhost:/tmp/mysql,user,pass); - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 31 May 2002 15:19 To: Michael Davey; [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Global variables

2002-05-30 Thread James Holden
Look at the auto-prepend or auto-append feature. -Original Message- From: serge gedeon [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 14:35 To: [EMAIL PROTECTED] Subject: [PHP] Global variables Dear sir, I would like to know if I could create using PHP, global variables that I could

RE: [PHP] How can I remove the last character from a one line file?

2002-05-30 Thread James Holden
Function StripLastChar( $file ){ $fp = fopen($file,r); if ($fp){ $contents = fread($fp,10); fclose($fp); } $contents = eregi_replace(o$,,$contents); return

RE: [PHP] user auth.. with mysql and cookies.. help

2002-05-30 Thread James Holden
, which to PHP is considered outputted text and you wont be able to set any headers. Other than that you might be setting cookies after you have echo'd templates or some such. - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message

RE: [PHP] Design Problem

2002-05-30 Thread James Holden
Does it matter? The search engine doesnt know your producing dynamic content, its just requesting a page to scan, regardless of the way your producing it. - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From

RE: [PHP] Design Problem

2002-05-30 Thread James Holden
or .htaccess Files) to run our stuff through what looks like a directory but is in fact just a script. - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 15:18

RE: [PHP] Design Problem

2002-05-30 Thread James Holden
I dont deliver alternate content, I track when they visit which is a different thing all together. - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002

RE: [PHP] MORE Design Problem

2002-05-30 Thread James Holden
http://www.phpbuilder.com/columns/tim2526.php3 - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 16:12 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

RE: [PHP] nested if parse error

2002-05-30 Thread James Holden
) { echo Hello; } } else { } - James -- W: www.londontown.com @: [EMAIL PROTECTED] -- -Original Message- From: Miroslav Figlar [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 13:05 To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] mail() function

2002-05-29 Thread James Holden
RTFM! mail($email_address,$subject,$message,$header); You can use @mail to supress any errors produced. Example: @mail([EMAIL PROTECTED],This is a Test,My Message,From: James [EMAIL PROTECTED]); Look at: http://uk.php.net/manual/en/ref.mail.php - James www.LondonTown.com -Original

RE: [PHP] mail() function

2002-05-29 Thread James Holden
knowledge -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED]] Sent: 29 May 2002 16:26 To: r; [EMAIL PROTECTED] Subject: Re: [PHP] mail() function lol.what does that return? At 09:08 PM 5/29/2002 -0700, r wrote: That may and may not work, I would suggest you add the

RE: [PHP] Show an image

2002-05-29 Thread James E. Hicks III
I found a solution to this on the web somewhere. What they did was create image.php wich extracts your image from the DB and echo's it to the page after sending the correct content type header. Then in your other .php's/.html's use... img src=image.php?name=TEST.jpg James -Original Message

[PHP] RE: [PHP-WIN] Re: Passing Variables

2002-05-24 Thread Opere, James
or select field, count(id) from table group by field Check your query, Nicole Amashta www.aeontrek.com James Opere wrote: Hi All, I'm trying to pass variables from one form to the other.I have a problem when i want to do the the following: 1.COUNT($variable) 2.DISTINCT($variable

[PHP] Passing Variables

2002-05-23 Thread Opere, James
Hi All, I'm trying to pass variables from one form to the other.I have a problem when i want to do the the following: 1.COUNT($variable) 2.DISTINCT($variable) . I realise i can not use the brackets in my query and the variable be recognised.When i add COUNT without the brackets i

RE: [PHP] tmpfile() errors?

2002-05-22 Thread James E. Hicks III
I'd check the owner of the directory you are trying to write to. It needs to be owned by the same user as the httpd process runs as. James -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] tmpfile() errors

[PHP] PHP version 4.2 and above

2002-05-22 Thread Opere, James
Hi all. I have aproblem with php = 4.2.I'm working on graphics but when i install php4.2, i get an error that it doesn't support GD library. Is there anybody who has any idea as to how it can be possible to use the above versions and still run my scripts successfully? Currently i'm using phpdev4

RE: [PHP] Using php as a scripting language within cron jobs?

2002-05-17 Thread James E. Hicks III
#!/path.to/php -q I'd like to suggest the -q option for PHP shell scripts, which I rely on every day. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP PDF

2002-05-17 Thread James E. Hicks III
:00 STOP - 08:09:19 James -Original Message- From: peter tatischev [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP PDF Why not mail it as MIME?? if that's not the case, refer to http://www.php.net/manual/en/ref.pdf.php

RE: [PHP] PHP PDF

2002-05-17 Thread James E. Hicks III
I've gotta be able to do either one. Sometimes the script just stops with the PS and sends that in the email based on a flag. It depends on what format the customer prefers his invoices in. James -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002

[PHP] Security in virtual host server

2002-05-15 Thread James Arthur
Hi I have a server with multiple users, each with user space that may contain a public_html directory. The main site also has a web page, but I'm having trouble configuring PHP securely. Anyone with access to PHP can write a script to find and print out any file in the main page, and one of

[PHP] Who's having a good hosting experience these days?

2002-05-05 Thread Marcus James Christian
Hello, My hosting service which WAS cool about 2 years ago has grown into a bloated mess of zero logic. My clients are going nuts, I'm sick of having mistakes and problems created by the hosting service be the only reason I have any problems to deal with at all!!! My clients aren't rich big

RE: [PHP] Is it possible to verify that a form submision is not being spoofed?

2002-04-30 Thread James E. Hicks III
This random number, because it is being sent to the user is just as easy to forge as the rest of the fields on the form. The only thing you can do is check the refferer on the submitted page, but alas even this can be forged with enough technohow. Good luck! James -Original Message

[PHP] PHP4.2.0 + Apache2 prints code

2002-04-28 Thread James Stuart
be greatly appreciated. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regex

2002-04-22 Thread James Taylor
I'm trying to come up with a regular expression that will match the TL and Second Level domain names in someone's email address ONLY. So, say someone's address is [EMAIL PROTECTED], I need to match ONLY pacbell.net. It shouldn't matter what the address looks like, I'm looking for any number

RE: [PHP] Open Download-Box

2002-04-18 Thread James E. Hicks III
try header(Content-type: application/pdf); James -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 9:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Open Download-Box Hello! I have a PDF-File, which the user should download (it should

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread James Cox
but to do so, they would need to be on the box, and there are a bunch of better methods in that situation. given that php's default install sets a max time limit of 30 seconds on a script timeout, it can't have run for 10+ minutes, nor is that a reasonable length of time for a DoS on a monitored

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread James Cox
so why not upload a binary file and execute that ? quick root-kit later and you're in. -Original Message- From: Dustin E. Childers [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:22 AM To: Jason Murray Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Nasty DoS in PHP If the user

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread James Cox
Well, if you were able to upload a PHP script, you'd also be able to upload a binary file, which would have the ability to run exec(yourbinary); ... -Original Message- From: Dustin E. Childers [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:41 AM To: James Cox Cc: [EMAIL

RE: [PHP] email attachments

2002-04-16 Thread James E. Hicks III
You need a Content-Disposition in yer $mime variable. I'll leave it up to you to figure out where, because I've forgotten where it goes exactly. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 8:46 AM To: [EMAIL PROTECTED] Subject

RE: [PHP] Performance question

2002-04-16 Thread James E. Hicks III
I think you've got the best set up already. I have a PDF library that I do a similar thing with. To update the site I just dump the new PDF's into their directory and the users reload the page to see the new content. James -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED

RE: [PHP] attachment filename

2002-04-16 Thread James E. Hicks III
$mime .= Content-type: application/octet-stream;\r\n; $mime .= Content-type: application/octet-stream; name=\$attach_name\\r\n; -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 2:45 PM To: [EMAIL PROTECTED] Subject: [PHP] attachment filename

RE: [PHP] Re: Cross DB application

2002-04-15 Thread James Cox
(and any other option you would like to choose). you're much better off either picking one DB system, or use both but maintain seperate SQL for each, to provide full optimization. james -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread James Cox
Chuck, what exactly is your situation? what has happened, step by step? what OS are you on? Thanks, James -- James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -Original Message- From: Chuck

<    5   6   7   8   9   10   11   12   13   14   >