[PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
something in the PHP conf files. Thanks for any help. Alex James -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
); } ? Thanks Alex James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
John Nichel wrote: On the page that you're trying to serve the Micro$oft Document (index.php), you're going to have to include the content type in the header, something like... header ( Content-type: application/msword ); See here... http://us4.php.net/manual/en/function.header.php

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Alex James
or activeX control it won't work. Right I'm going to save the word docs as txt files and include ? Thanks Alex James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect

2003-10-25 Thread James Hicks
. Thanx. You can either use the php function header() or the HTML meta refresh thing. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recommendation for Unique URL

2003-10-25 Thread James Kaufman
I have an application that does not require a user to log in. But, they do enter their email address and their dept. manager's email address. I want to send an email to the dept. manager that contains a personalized URL so they can click on that and see a page relevant to what the employee

[PHP] Re: .htaccess question protect my php test environment

2003-10-25 Thread James Moe
Frank Tudor wrote: I restart the server and then go to another computer and put in the URL and no password box comes up. Add this to the [virtual]host's section: directory /virtual_0/path/whatever AllowOverride AuthConfig Options /directory and restart httpd. -- jimoe at sohnen-moe dot com

[PHP] Re: New line characters and carriage returns

2003-10-25 Thread James Moe
Jonathan Villa wrote: $msg .= From: [EMAIL PROTECTED] Content-Type: text/plain\r\n PHP is retaining the implicit linefeed in the text so there is a blank line between From and Content-Type, the end-of-header indicator. (You must have a dos-ish system.) Change it to: $msg .= From:

Re: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread James Kaufman
On Sat, Oct 18, 2003 at 03:44:31PM +0300, Burhan Khalid wrote: [-^-!-%- wrote: Yep. It's me again. 96 hours into the battle, and SESSIONS are still winning. I've written my login script and is now getting the following error. Please advise. Warning:

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread James E Hicks III
Try this. mysql_query(INSERT INTO $table ( salutation, name, city } VALUES { \.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\ } James

[PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread James E Hicks III
be displayed upon transfer completion? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions Question

2003-10-15 Thread James Kaufman
On Tue, Oct 14, 2003 at 05:23:54PM -0800, Chris Hubbard wrote: to use php sessions: you will need some place where you set up/create the sessions. typically this is the login page. let's assume you'll use the login page. The logic for the login page goes something like this: 1. present a

[PHP] RE: DAN (Didier McGillis) *** codeSECURE 1.0 - - Protecting PHP code

2003-10-15 Thread James Cox
Ok, can we stop sending this to php-announce please... -- James Cox (Editor) :: [EMAIL PROTECTED] :: http://www.apress.com/ The Experts Voice (tm) Frasier Crane: Y'know, Niles, what say I buy us dinner and a lot of martinis? Niles Crane: Sounds great, except for the dinner part

RE: [PHP] Sessions

2003-10-11 Thread James Johnson
the sess_bbbfa69631155d4097e0b0012c857c4a file and changed the session_save_path to session_save_page(ccb_session);. When going to the test page, it appears to loop several times, then gives me a The page cannot be displayed message. The server is (from phpinfo())Linux gaia 2.2.20, Server API is Apache. Other ideas? Thanks, James

RE: [PHP] Sessions - more testing

2003-10-11 Thread James Johnson
I've read Nelson's message and have added the following lines: ini_set('session.save_path','ccb_sessions'); ini_set('session.use_trans_sid','off'); ini_set('session.gc_maxlifetime', '3600'); And still get the same page not found error. James -Original Message

[PHP] Echoing string with single quote from $_POST

2003-10-10 Thread James Johnson
($_POST['adTitle']);} and that doesn't work. Is there another function that will output the string just as it was input? I've searched through the manual and haven't found anything yet. Just thought you all would know off the top of your head(s). :) Thanks, James -- PHP General Mailing List (http

[PHP] Formatting text in a textarea

2003-10-10 Thread James Johnson
($_POST['adText'])){echo trim($_POST['adText']);}? But, when the form is redisplayed, it is adding tab chars to the beginning of the string. Is this a PHP issue or an HTML issue? Suggestions? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Major wierdness - ack!

2003-10-10 Thread James Johnson
][/home/.paco/campuscb/campuscorkboard.com/search_jobs.php:319]10/1 0/2003 If I comment out the error_reporting include file, the page renders fine. I have checked the DB and the startDate column has a valid date in it. Ideas? Thanks, James -- PHP General Mailing List (http://www.php.net

[PHP] Sessions

2003-10-10 Thread James Johnson
session_start();?. This has been double checked. 1) Do session vars timeout, or can they be set to timeout after a certain length of time? 2) Is there anything other than session_start(); that needs to be done when using session vars? 3) What other things can I check for? Thanks, James -- PHP

[PHP] Error catching script

2003-10-08 Thread James Johnson
Hello, Is there a way, on a hosted server, to prevent PHP errors from showing in a browser? Instead of error whatever at line 107 in filename.php to have it redirect to a Sorry, please report this error page Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Outside help

2003-10-08 Thread James Johnson
-list to help out? I WILL make it worth your time. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Outside help

2003-10-08 Thread James Johnson
Ok, thanks for the input everyone. I've received several replies to this message. Thanks again, James -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Outside help Hi, Don't know

[PHP] PHP and .HTACCESS

2003-10-03 Thread James D. Stallings
I am new to learning PHP and have learned a lot over the last few weeks. One thing that I can not find anywhere is how to code it so a user can click logoff and have it route them to another page and remove their authentication that was set. ie... I user goes to www.mysite.com and clicks on

RE: [PHP] Formatting a string for entry into MySQL

2003-09-23 Thread James Johnson
= '%s' WHERE subid = 43, $esAdContact); $r = mysql_query($q, $CCB) or print(mysql_error()); Thanks, James -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:45 AM To: James Johnson; [EMAIL PROTECTED] Subject: Re: [PHP] Formatting a string

Re: [PHP] GD problem

2003-09-23 Thread Pete James
You're outputting a blank PNG image, in binary form. In order to display it (not that you'd see anything since it's blank), you need to output a Content-Type header first, like so: header(Content-Type: image/png); THis will instruct the browser to treat the incoming data as image data. HTH.

Re: [PHP] help with arrays

2003-09-23 Thread Pete James
Of course, you could do it in a much more cryptic way... just for fun. :-) INPUT: ?php $a = array( '0' = 'j', 'fname' = 'j', '1' = 'j', 'lname' = 'j', '2' = 'jj', 'state' = '', '3' = '[EMAIL PROTECTED]',

Re: [PHP] non-php issue

2003-09-22 Thread Pete James
] Cc: Peter James [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Monday, 22 September, 2003 01:08 Subject: Re: [PHP] non-php issue On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote: relax guys, I have been dying to say You can fix all of your problems by formatting your computer

Re: [PHP] non-php issue

2003-09-22 Thread Pete James
Chris Shiflett wrote: There has been research to support that Linux is attacked more than three times as much as Windows (http://www.internetnews.com/dev-news/article.php/3076701). This makes sense, too, because Linux is more likely to be protecting important data. The argument that those who

[PHP] Formatting a string for entry into MySQL

2003-09-22 Thread James Johnson
shows the correct format in the browser. I've looked at printf() and sprintf(), but can't quite figure the syntax. I want the br in the string so it will output correctly in the browser when that data is retrieved from the DB. Suggestions? Thanks, James -- PHP General Mailing List (http

Re: [PHP] non-php issue

2003-09-21 Thread Peter James
You guys running Linux sure are cocky about these sorts of things. I have no doubt that Linux' time will come, and then it will be the MacOS X users, or FreeBSD users, or [insert random-os-that-still-remains-under-the-radar here] users that think they are untouchable. If Linux enjoyed the same

Re: [PHP] non-php issue

2003-09-21 Thread Peter James
question... Cheers, Pete. - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Raditha Dissanayake [EMAIL PROTECTED] Cc: Peter James [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Sunday, September 21, 2003 11:08 PM Subject: Re: [PHP] non-php issue On Mon, 2003-09-22 at 01

Re: [PHP] non-php issue

2003-09-21 Thread Peter James
Hey, man. This is NOT AIDS. Oh, sorry... wrong list. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another code check

2003-09-18 Thread James Johnson
, $CCB) or die(mysql_error()); header(Location: . Success.php); exit; } } ? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Another code check

2003-09-18 Thread James Johnson
Hi John, Thanks, that was it. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Code check please

2003-09-17 Thread James Johnson
with one value (99,45, etc) will work. Very strange... Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Code check please

2003-09-17 Thread James Johnson
Hmm, ok I took out the $row_CampusIDList = mysql_fetch_assoc($CampusIDList); and it works But how come? J -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Code check please

[PHP] Repost - Cookie advice

2003-09-13 Thread James Johnson
Reposted, as it appears it didn't go thru. Hi, I have a Remember me on this computer check box, which sets a cookie for future logins. What's the consensus on when a cookie of this type should expire? I currently have it set for 30 days. Thanks, James -- PHP General Mailing List (http

[PHP] Cookie advice

2003-09-12 Thread James Johnson
Hi, I have a Remember me on this computer check box, which sets a cookie for future logins. What's the consensus on when a cookie of this type should expire? I currently have it set for 30 days. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Mysql Authentication problem

2003-09-11 Thread James Hamilton
to connect, from localhost, as a valid user, it is not authenticating. The user has both localhost and % host privileges in the mysql permission schema. Where do I look next? Cheers James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Mysql Authentication problem

2003-09-11 Thread James Hamilton
[snip] The user has both localhost and % host privileges in the mysql permission schema. [/snip] Add the same user with 127.0.0.1 as the host. Make sure you reload (flush) the users table Any other thoughts? [/snip] What is your connection string? (code) current

Re: [PHP] Mysql Authentication problem

2003-09-11 Thread James Hamilton
On Thu, 11 Sep 2003, CPT John W. Holmes wrote: current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not connect : . mysql_error()); print Connected successfully; mysql_select_db(name) or die(Could not select database); print connected; with

RE: [PHP] Mysql Authentication problem

2003-09-11 Thread James Hamilton
How did you create this new user? Using mysql grant statements: originally: grant all privilges on name.* to [EMAIL PROTECTED] identified by 'pass'; grant all privileges on name.* to user@'%' identified by 'pass; and just now grant all privileges on name.* to user@'127.0.0.1'...

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Peter James
I thought that maybe with some Apache stuff, but I dont think there something that will help, since directives such as RedirectMatch, etc. rewrite the URL, and I dont want that, I want the URL to remain http://www.domain.com/directoryX/whatever.php mod_rewrite allows you to do internal

[PHP] Unregistering several variables at once -- how?

2003-09-06 Thread James Johnson
(all)? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] String formatting function - First char Upper, rest lower

2003-09-06 Thread James Johnson
Hi, Newbie question. Does anyone know of a function or script that will capitalize the first char and lowercase the remaining chars of each word in a string? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Backup Database

2003-09-02 Thread James Lobley
Hi Shaun, DevShed's last weekly newsletter had the following: Daily Scheduled Backup of MYSQL Databases - Looking for a free tool or utility to handle scheduled MySQL backups. http://forums.devshed.com/t74513/s.html Haven't tried any of the solutions yet, but will be soon! James

[PHP] PHP SESSION timeouts

2003-08-31 Thread James Johnson
Hi, Can't find this in any of my books. Is there a default for when the $_SESSION array times out i.e., it's no longer available for the code? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with copy()/uploading a file

2003-08-31 Thread James Johnson
: open_basedir restriction in effect. File is in wrong directory in /home/.paco/campuscb/campuscorkboard.com/upload.php on line 28 Couldn't copy the file Any help would be appreciated. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] PHP equivalent to MOD

2003-08-30 Thread James Johnson
Hi, I need to see if a number is divisible by 2. I don't see the math function mod in my PHP Functions reference manual. Is there another way to do this? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP equivalent to MOD

2003-08-30 Thread James Johnson
Nevermind, I found it in the archives. Thanks -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2003 12:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP equivalent to MOD Hi, I need to see if a number is divisible by 2. I don't see the math

[PHP] Multiple word strings getting truncated - help please.

2003-08-30 Thread James Johnson
: (partial as the query is quite long) $tr_addr1 = $_POST['addr1'] $query = INSERT INTO subscribers (addr1) VALUES('$tr_addr1'); The MySQl table is as such: addr1 = varchar(50) Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Solved. [PHP] Multiple word strings getting truncated - help please.

2003-08-30 Thread James Johnson
name=addr1 size=32 value=?php echo $a1; ? In some of the input tags, I hadn't put quotes around the value. Thanks, James -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Saturday, August 30, 2003 3:24 PM To: James Johnson Cc: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] PHP Interview questions

2003-08-29 Thread Pete James
Binary search. I'd say I have too much time on my hands, but I don't. ?php $eggs = array(1,1,1,1,1,2,1,1,1,1,1,1); $eggs1_6 = array_slice($eggs, 0, 6); $eggs7_12 = array_slice($eggs, 6, 6); if (array_sum($eggs1_6) array_sum($eggs7_12)) $half_eggs = $eggs1_6; else $half_eggs =

Re: [PHP] disable notice errors

2003-08-29 Thread Pete James
You have two solutions, one of which is better. A. Fix the problem, and define your indexes. B. Set error_reporting = E_ALL ~E_NOTICE I'd strongly recommend doing A before B, as PHP doesn't carp for the sake of carping. fatih olcer wrote: how to disable notice error output i have set

Re: [PHP] Gripe

2003-08-29 Thread Pete James
Cuz the the way the PHP parser is written makes it impossible to discover the error before it gets to the end of the file, and realizes that there are no more braces to go around. It definitely sucks... almost as badly as a stray backtick. Try finding that little bugger at 1600x1280...

[PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
; } ? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
To: James Johnson; [EMAIL PROTECTED] Subject: Re: [PHP] Looping through a list - Newbie question From: James Johnson [EMAIL PROTECTED] I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value

Re: [PHP] PHP Interview questions

2003-08-26 Thread Peter James
a big difference between talking and walking. My 2 cents. -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Micheal Harris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: [PHP] auto_prepend_file

2003-08-23 Thread Peter James
Check out php_admin_value, highlighted in the link below http://216.239.33.104/search?q=cache:mpDXuwrDs_gJ:www.php.net/configuration.changes+php_admin_value+site:www.php.nethl=enie=UTF-8 -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP

Re: [PHP] OT-Re: worm on th list

2003-08-22 Thread Peter James
As an aside... I wonder what the ratio is of emails *from* the virus vs. emails *about* the virus. The latter certainly doesn't help the impulse response of the attack. :-) -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals

Re: [PHP] virus on the list

2003-08-21 Thread Peter James
address). This version also looks through the victim's cached webpages, so any email address found on websites that many people visit have discovered that their getting hundreds or thousands of virus emails. -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect

[PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread James Johnson
Hi, I need to make a date that is 30 days from the current date, and, am having problems with mktime Here's what I've tried: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with mktime, need to add 30 days to current date

2003-08-20 Thread James Johnson
this? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with parse error

2003-08-20 Thread James Johnson
Hi, I'm trying to figure out this error I'm getting in my code: Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9 This is the code on line 9: $sDate = date('Y-m-d',time()); Does this look valid? Thanks, James -- PHP General Mailing List (http://www.php.net

Re: [PHP] Help with parse error

2003-08-20 Thread Peter James
Can you give us a couple lines either side of this? This could be due to a missing semicolon on the previous line. -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message

RE: [PHP] Help with parse error

2003-08-20 Thread James Johnson
Yup, that was it. Missing a semi-colon on line 8. Thanks, James -Original Message- From: Peter James [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 1:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with parse error Can you give us a couple lines either side

[PHP] Code formatting issue

2003-08-19 Thread James Johnson
Is there a way I can make this type of code neater? $thing = new whatever (); $thing-doStuff (); $thing-anotherThing (); $thing-doThis (); $thing-doThat (); $thing-doThis (); $thing-doThat (); $thing-anotherThing (); $thing-doThis (); // etc. etc. Some

Re: [PHP] Sharing PHP(Apache) session with JSP session (Tomcat)

2003-08-14 Thread Pete James
Check out http://php.net/session_set_save_handler, and save your session data in a database, or leave it as is and access the session file directly. Here's an example of sharing php sessions with perl... it may provide some ideas.

[PHP] PHP and quickcommerce.com

2003-08-14 Thread James Johnson
Hello, Has anyone had experience dealing with quickcommerce.com? I'm having some problems submitting Credit Card info to them and could use some help. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What does - mean?

2003-08-14 Thread James Johnson
Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this-vendor = $vendor; What does the - mean or do? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Array to List

2003-08-14 Thread James Johnson
Ok, that's working. I realized tho that some campuses will have a , in their name (University of California, Riverside) so changed $c = implode( ', ', $c ); To $c = implode( '; ', $c ); Thanks, James -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, August

Re: [PHP] string concatenation from array

2003-08-14 Thread Peter James
Of course, in this case, it would be much easier replace all of the above with echo join(' ', $search_string); and be done with it. :-) -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com

Re: [PHP] how to use array_map() with a class callback function?

2003-08-14 Thread Peter James
array_map(array('Maker', 'sGetNameId'), array(1) ) Have a look at the callback type, here: http://www.php.net/manual/en/language.pseudo-types.php -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com

Re: [PHP] string concatenation from array

2003-08-14 Thread Peter James
); -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Matt Giddings [EMAIL PROTECTED] To: 'Micah Montoy' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 12

Re: [PHP] how to change index.php?passwd to index.php in the address bar

2003-08-14 Thread Peter James
Use the post method? -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: murugesan [EMAIL PROTECTED] To: Robert Cummings [EMAIL PROTECTED]; Kris Reid [EMAIL

RE: [PHP] Array to List

2003-08-14 Thread James Johnson
looked in the manual on implode, but don't see how to surround each value with single quotes. Is there another function that will do this? Thanks, James -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 11:50 AM To: James Johnson; [EMAIL PROTECTED

[PHP] Array to List

2003-08-14 Thread James Johnson
= ,; $campusList = strrchr($campusList,$chr); } But it removes everything from the list, except 1 , Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling to a page without having to load it

2003-08-14 Thread Peter James
Make your request, but send a 204 HTTP response header back. http://ppewww.ph.gla.ac.uk/~flavell/www/status204/results.html -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Creative Solutions New Media

RE: [PHP] Array to List

2003-08-11 Thread James Johnson
Chris, thanks that works perfectly -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 11:50 AM To: James Johnson; [EMAIL PROTECTED] Subject: Re: [PHP] Array to List Coming from ColdFusion, this is difficult. CF has an ArrayToList() function

RE: [PHP] Array to List

2003-08-11 Thread James Johnson
. When playing around with the Query in PhpMyAdmin, I found that I needed to surround the values in the IN clause with single quotes. Perhaps I'm going about this the wrong way. Any advice or suggestions would be appreciated. Thanks, James -Original Message- From: CPT John W. Holmes [mailto

RE: [PHP] Array to List

2003-08-11 Thread James Johnson
... James -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 1:32 PM To: James Johnson; [EMAIL PROTECTED] Subject: Re: [PHP] Array to List on page one do this instead. ?php session_start(); if(isset($_POST['Submit'])) { $_SESSION

[PHP] MySQL field data type for ISBN numbers

2003-08-10 Thread James Johnson
, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Flash Actionscript List or Forum

2003-08-09 Thread Peter James
Not sure about a list, but this site has a boatload of tutorials and answered lots of questions that I had. http://actionscript.org/tutorials.shtml -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Joe

RE: [PHP] problem using unlink()

2003-08-07 Thread James Brash
thanks for your help, I have already its 777 You need to chmod or chown the directory where the file is located. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem using unlink()

2003-08-05 Thread James Brash
tried using the full path, and CHMODing the files but no luck. Thanks for any help/advice you can give me. James Brash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with Session var

2003-08-02 Thread James Johnson
['sv_adCatText'] and it prints the var fine. If I do a var_dump($HTTP_SESSION_VARS); I can see all of the session vars, except this one. Is there a limit or something to the number of Session vars that can be used? I've even tried setting a Session var called foo and that doesn't work. Thanks, James

RE: [PHP] Trouble with Session var

2003-08-02 Thread James Johnson
DOH! Nevermind, I mis-spelled session_start(). :( -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Trouble with Session var Hello, This one has me stumped. I'm setting a session var

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Peter James
Via: http://www.google.ca/search?q=Crime+Perfect+2003ie=UTF-8oe=UTF-8hl=enmeta= Found: http://www.zone-h.org/ Search: Crime Perfect See: Results (doesn't look good) :-( -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original

[PHP] is there a way?

2003-07-31 Thread karl james
Hello guys, This may be off subject but not sure! Is there a way to have your html table represent one color, Cause when I click the link it turnes purple, and I want it to stay 336699 no matter what state. I tried to use css, but it does the whole page. And I want the 336699 to be in this

Re: [PHP] capturing reloads

2003-07-30 Thread Pete James
My personal favourite is to logically separate actions and views, which is very easy to do and is virtually foolproof. This way a user submits a form to a page that outputs nothing. This page does its work, then redirects to another page which only shows data. This is invisible to the user,

Re: [PHP] Re: looking for some kind of CMS breakthough (slightlyOT)

2003-07-30 Thread Pete James
Why not use a wysiwyg edit box? There are quite a few of them... unless you don't want to restrict your users too much. http://www.labs4.com/htmleditbox/2.0/demo.php Mark wrote, On 2003/Jul/30 11:11 AM: But isn't this just defining your own version of something like bbcode? And wouldn't you be

Re: [PHP] debuging and getting mor information about failures

2003-07-29 Thread Peter James
when encountered. Move this up a few lines at a time, until the original parse error goes away, and this one starts. This will help you identify where your problem is. This is a very frustrating error message, but the above should take some of the pain away. :-) HTH. Pete. -- -- Peter James

Fw: [PHP] debuging and getting mor information about failures

2003-07-29 Thread Peter James
Just forwarding this reply back to the list. - Original Message - From: Chris W. Parker [EMAIL PROTECTED] To: Peter James [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 10:26 AM Subject: RE: [PHP] debuging and getting mor information about failures Peter James mailto:[EMAIL PROTECTED

Re: [PHP] Curl alternative?

2003-07-29 Thread Peter James
You can do anything (almost) with fopen() and fsockopen()... but it won't necessarilybe easy. It depends what you want to do. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Steven Kallstrom [EMAIL

Re: [PHP] DB resource as Session var

2003-07-29 Thread Peter James
to persist any type of resource from one request to the next. Cheers, Pete. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Jackson Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 29

Re: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Peter James
I wonder if something like mod_filter, that would be able to access each request before it hit PHP, would work for this. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Nicholas Robinson [EMAIL

Re: [PHP] memory consumption from a script

2003-07-27 Thread Peter James
/manual/function.memory-get-usage.php HTH. Pete. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: Torsten Rosenberger [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

Re: [PHP] small request

2003-07-27 Thread Peter James
Yes. . -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 27, 2003 8:34 AM Subject: [PHP] small request Hi, I want to find out

Re: [PHP] Please HELP me

2003-07-27 Thread Peter James
be referencing your uploaded file with $_FILES['util']['tmp_name'] 3. You should read the manual here:http://ca2.php.net/features.file-upload HTH. Pete. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: Rausch

Re: [PHP] memory consumption from a script

2003-07-27 Thread Peter James
I think it's pretty standard. It just means that you can control how much memory your script uses. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: John W. Holmes [EMAIL PROTECTED] To: Peter James

<    2   3   4   5   6   7   8   9   10   11   >