Re: [PHP] Re: header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Kevin Stone [EMAIL PROTECTED] wrote: The Refresh directive is a valid header. I've used it for many years and it seems to be supported by the majority of browsers. My experience has been the same. However I've never read anything that would indicate that Refresh works any differently

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Chris Hubbard [EMAIL PROTECTED] wrote: header('Location: index.php'); The Location header requires an absolute URL. This example demonstrates a violation of the specification and can have unknown results. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Matt Babineau [EMAIL PROTECTED] wrote: In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. In HTTP/1.1, the Host header

Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Chris Shiflett
--- Comex [EMAIL PROTECTED] wrote: $_GET[$username]??? http://whatever.com/whatever.php?username=blahblah=value??? Is this a question? If so, the answer is no. :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses

Re: [PHP] Who knows all the Header attributes.

2003-10-14 Thread Chris Shiflett
--- Gabriel Peugnet [EMAIL PROTECTED] wrote: Could some one tell me where can I find the documentation for the Hedear() function? The manual does not provide it but just some examples. I know Header( Location: http... ), Header( Expires ... ). But want to know about: Content...

Re: [PHP] displaying time on the server

2003-10-15 Thread Chris Shiflett
--- Adam Williams [EMAIL PROTECTED] wrote: I was wondering if someone knew how to display the time on the server to a web page that resides on that server, and have it update the time each second? PHP can't do this. It executes on the server, not on the client. I was looking at javascript

Re: [PHP] mozilla

2003-10-16 Thread Chris Shiflett
--- Joseph Bannon [EMAIL PROTECTED] wrote: Does IE use mozilla? No. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Alternative to die()????

2003-10-16 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. Please explain what you're wanting to do. This question makes as much sense

Re: [PHP] HTML output buffering

2003-10-16 Thread Chris Shiflett
--- Robin Kopetzky [EMAIL PROTECTED] wrote: Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Yes, output buffering: http://www.php.net/ob_start Hope that helps. Chris = My Blog http://shiflett.org/ HTTP

Re: [PHP] converting GET to POST

2003-10-16 Thread Chris Shiflett
--- Kris Yates [EMAIL PROTECTED] wrote: Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header(Location: https://www.fake.com/fake.php?item=$item;); I want to reconfigure my header calls to POST instead of using GET for sending $item to

Re: [PHP] SQL security

2003-10-17 Thread Chris Shiflett
--- Jeremy Russell [EMAIL PROTECTED] wrote: I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed information passed from forms. This probably has been done

RE: [PHP] SQL security

2003-10-17 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Doesn't MySQL automatically protect against attacks like SQL injection? Or maybe it's that it automatically applies addslashes()? Nope and nope. What you might be thinking of is that mysql_query() only allows a single query to be executed. This

Re: [PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Chris Shiflett
--- Comex [EMAIL PROTECTED] wrote: Bas: That tags? It should not be used anyway... what??? Would you two please take this discussion elsewhere? This is about the tenth message that makes no sense to anyone else. Thank you. Chris = My Blog http://shiflett.org/ HTTP Developer's

Re: [PHP] apache httpd + PHP authentication

2003-10-18 Thread Chris Shiflett
--- news.php.net [EMAIL PROTECTED] wrote: I have a web page I wish to restrict access. I prefer to use the standard apache httpd authentication with .htaccess and password file. This method does not seem to work with PHP. This method is independent of the type of resource being used, so it

Re: [PHP] Darken and lighten color?

2003-10-18 Thread Chris Shiflett
--- Leif K-Brooks [EMAIL PROTECTED] wrote: I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. Maybe you mean algorithm? :-) To lighten, increase RGB values by 10% each. To darken, decrease RGB values by 10% each. Maybe replace 10 with whatever the certain

Re: [PHP] PHP within Frames

2003-10-19 Thread Chris Shiflett
--- KB [EMAIL PROTECTED] wrote: Does anyone know why my PHP pages won't work in Frames? I do. Just kidding. :-) I have 5 frames, each of which are displaying PHP pages.and none of the PHP code works. Please be more specific. I assume you mean that your code is being interpreted but that

[PHP] What Is Scalability?

2003-10-19 Thread Chris Shiflett
PHP has been both heralded and criticized on a number of topics. This is to be expected, considering the rate of growth of PHP's popularity. It has given people something to talk about. One topic that seems to come up a lot is scalability. ONJava.com has an interesting article entitled The PHP

Re: [PHP] session hijacking

2003-10-19 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: Somehow 1 person has found out about them and is creating havoc with that damn account by changing those variables to differient numbers ...any idea how he is doing that? I have many ideas. First of all, I bet you are using PHP sessions, and you have done

Re: [PHP] Shiflett-Re: [PHP] session hijacking

2003-10-19 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: Yep, I just created the session and nothing beyond. Am new to PHP and first time/project user with sessions. Right. I think this needs to be made clearer in the manual myself, and I might add something to drive the point home. PHP sessions are a mechanism,

Re: [PHP] What Is Scalability?

2003-10-19 Thread Chris Shiflett
--- Brad Pauly [EMAIL PROTECTED] wrote: Good question! This has been on my mind some for a current project and now I have thought about it even more. Hmm, I'm not sure how to quote a blog. To paraphrase (hope you don't mind), Chris's definition of something that scales well is when resources

Re: [PHP] Session hijacking

2003-10-19 Thread Chris Shiflett
--- Chris Wanstrath [EMAIL PROTECTED] wrote: Lots of great information in this thread as far as solutions go, but what I'm wondering is the concept behind how someone actually can hijack a session if register_globals is off. I proposed a talk on this at ApacheCon (in addition to my PHP Attacks

Re: [PHP] Session hijacking

2003-10-19 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: i setup my sessions to be transparent, can it still be hacked ? Yes. If you can be more specific, I will try to be more specific also. :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses

Re: [PHP] Session hijacking

2003-10-19 Thread Chris Shiflett
--- John W. Holmes [EMAIL PROTECTED] wrote: Either way, what if a bad guy visits this URL: http://www.example.org/foo.php?PHPSESSID=12345 Called session fixation. Here's good paper on this and how to deal with it. http://www.acros.si/papers/session_fixation.pdf Actually, I didn't

Re: [PHP] mktime trouble

2003-10-20 Thread Chris Shiflett
--- Peter Torraca [EMAIL PROTECTED] wrote: print date (m/d/y h:m:s A, mktime(16, 30, 0, 10, 10, 2003)); gives the output: 10/10/03 04:10:00 AM Where did the 4:10 come from? It should be 4:*30*. 10 is the month, which is what the m means. Use i for minute: http://www.php.net/date Hope

Re: [PHP] Session migration problem...

2003-10-20 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: $result = mysql_query(SELECT * FROM `users` WHERE `uname` = '.$_POST['username'].'); Don't put uname in single quotes. Aside from that, don't forget that you can interpolate variables with curly braces. Depending on your personal preference, you might

RE: [PHP] Session migration problem...

2003-10-20 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: I took the single quotes off of the field name, uname, but still getting the same error at the same line in the file... Any other suggestions? Sure. Let's look at your original code: $result = mysql_query(SELECT * FROM `users` WHERE `uname` =

RE: [PHP] Session migration problem...

2003-10-20 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: Is there any advantage to the curly brackets over the '..'? There's not enough difference between the two to choose one over the other based on performance, if that's what you mean. Personally, I find that concatenation looks clearer in some cases, and

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
Perhaps Marco can try an Ask Jeeves type of Web app. Is that the sort of thing you are suggesting? So, as another feature of this mailing list archive, there could be a place where people can ask a question, and Ask Marco will try to come up with some suggested posts to read. This would give

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: However, the only issue with that is that many users do not search the archives, faqs, or internet for the answers before posting to the list. This always seems the case. Many users are unaware of the ethics around mailing lists. I think many users are also

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris Shiflett
--- Marek Kilimajer [EMAIL PROTECTED] wrote: My suggestion would be to use iframe for the message. It would load much faster then. How would that make it load much faster? Surely not because it requires an additional HTTP transaction, increasing the load. I'm curious to know what you mean. The

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- John Taylor-Johnston [EMAIL PROTECTED] wrote: Can someone recommend a good URL on cookies and security issues please? I can program them, but am told I'm putting others at risk, forcing people to use cookies on my site. I have a free chapter about cookies from HTTP Developer's Handbook on

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- Marco Tabini [EMAIL PROTECTED] wrote: However, we do not share the contents of our cookies with any third party, under any circumstances. I'm no lawyer, but that seems like a risky statement. There are many circumstances that can cause the contents of the cookies you set to be disclosed to

RE: [PHP] Session hijacking

2003-10-21 Thread Chris Shiflett
--- Robert Cummings [EMAIL PROTECTED] wrote: What is a transparent session? I don't know if it's the same for the original poster (whoever that is, since they were cropped :) For me it's when I bind a session variable to an object such that the session variable is referenced using

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- Marco Tabini [EMAIL PROTECTED] wrote: IMHO, by storing the user's name and password in a cookie, you may be exposing that information to unnecessary risks by letting it go back and forth continuously on the Net (assuming, of course, that you're not under SSL and/or are using some

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- Marek Kilimajer [EMAIL PROTECTED] wrote: John W. Holmes wrote: You're not even allowed to use persistant cookies in public government sites unless you get permission from the Secretary of the Defense. Hi, this is interesting. Can you post the guidelines? I've never heard of the

Re: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- John W. Holmes [EMAIL PROTECTED] wrote: So let's say the first user comes along and is given the userid 1. We then create their random id by adding 241757219 to their userid. We get a random id of 241757220. Then within the login page I can subtract 241757219 from their random id

RE: [PHP] Using cookies

2003-10-21 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Not a good method. If I get on your site and see my cookie has the value 241757219 in it, I just need to subtract one from the number and revisit your site. Now I'm the user who registered before me. Using the rand() or uniqid() method above

Re: [PHP] Session within a session lock?

2003-10-21 Thread Chris Shiflett
--- Steve Wardell [EMAIL PROTECTED] wrote: I have a page on my PHP site that needs to access itself. I open a socket connection and pass in the HTTP request header including a cookie string such as: Cookie: PHPSESSID=766bc531e9185be6b54206c944f258d9 With the session name and id of the

Re: [PHP] Whats more efficient? ( echo ; or ?php echo ? )

2003-10-21 Thread Chris Shiflett
--- John W. Holmes [EMAIL PROTECTED] wrote: Use a template engine to separate your presentation from your logic. :) Isn't PHP a templating engine? :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses

Re: [PHP] Whats more efficient? (Conclusion)

2003-10-21 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: Just one last question, you guys can reply to this off list or on: does using a templating engine slow down pages a lot (as i have heard) or increase speed (as i have heard again) ? :-D Things like Smarty are slow in terms of performance alone, yes. The

Re: [PHP] The page you are looking for cannot be displayed because the page address is incorrect.

2003-10-21 Thread Chris Shiflett
--- AMC [EMAIL PROTECTED] wrote: I'm trying to post from an asp page to a php and I get this error: The page you are looking for cannot be displayed because the page address is incorrect. then later on in the same page I get the error: http 405 resource not allowed internet information

Re: [PHP] Whats more efficient? (Conclusion)

2003-10-21 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: My main pages are basically querying the databases for hosting plans depending on what the client chooses what do you suggest? and any urls for reading up on caching? Caching is a generic term, so it's tough to search for documentation about a specific

Re: [PHP] The page you are looking for cannot be displayed because the page address is incorrect.

2003-10-21 Thread Chris Shiflett
--- Amanda Clark [EMAIL PROTECTED] wrote: Thanks for the info. You are correct that I am using iis. I am posting from one asp page to other asp pages so doesn't that mean that the post method is allowed? You're saying that you can send a POST request for an ASP page, but IIS won't let you do

Re: [PHP] The page you are looking for cannot be displayed because the page address is incorrect.

2003-10-21 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: My only guess is: 1. You are using IIS 2. IIS doesn't know that 405 is the status code for Method Not Allowed 3. IIS is configured to not allow the POST request method hmm.. I thought 'only' implied singular :) It was a composite guess. :-)

Re: [PHP] Avoiding blank lines in HTML when field is empty

2003-10-23 Thread Chris Shiflett
--- Robb Kerr [EMAIL PROTECTED] wrote: Here's the problem. Some of the fields are empty (for instance 'Address') and the way my code is configured a blank line appears in the returned data when the field is empty. How do I change this code to add a conditional that only echos the field

Re: [PHP] PHP not remembering sessions

2003-10-23 Thread Chris Shiflett
--- Daniel Guerrier [EMAIL PROTECTED] wrote: Use $_SESSION['var'] instead of $_SESSION[var] That won't make any difference. As for the original question, I don't notice any immediate problems with the code: in page1.php: ? session_start(); $_SESSION[var] = Please help; ?

RE: [PHP] PHP not remembering sessions

2003-10-23 Thread Chris Shiflett
--- Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED] wrote: I am sorry to call it a cookie.. I see the data in a session file (not a cookie) OK, so you just look in this file manually? I don't have a html file. I simply call the .php file by typing the url as

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-23 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: What does the word, 'parse' meant when you do a XML parse? http://dictionary.reference.com/search?q=parse http://en.wikipedia.org/wiki/Parse Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] php header function

2003-10-24 Thread Chris Shiflett
--- Shaun van den Berg [EMAIL PROTECTED] wrote: I have tried the net , googling ect. but i cannot get a good description of what the header function is al about ? Can anyone please define the header function. It allows you to specify an HTTP header to be included in the response to the Web

Re: [PHP] HTTP request contents

2003-10-24 Thread Chris Shiflett
--- Hanuska Ivo [EMAIL PROTECTED] wrote: I need to know, if there is a possibility to read full contents of HTTP request. I know, the response can be sent by header() function. But can I get the request of the client for server? In a way, yes, although most of this information is nicely parsed

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Chris Shiflett
--- Timo Boettcher [EMAIL PROTECTED] wrote: I am trying to get my pages through the w3c-validator for html. It doesn't like my FORM action=mypage.php?para1=val1para2=val2 Changing to amp; got my page through the validator, but broke my app, which seems not to be getting any parameters over

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Chris Shiflett
--- Nathan Taylor [EMAIL PROTECTED] wrote: This problem should be handled by modifying the php.ini. In my experience W3C is a whiney bitch that always gets it's way. Just throw this code on all your pages (or better yet, in a header) and the problem will go away. // The communists at W3C

Re: [PHP] w3c-compliant form-action parameters

2003-10-24 Thread Chris Shiflett
--- Matt Babineau [EMAIL PROTECTED] wrote: All this aside what about using the ASCII value of the symbol. (I think its ASCII). You know how sometimes links with spaces in them are %20 instead of the actual space? I'm not sure what it is but I am pretty sure there is a %something for and

Re: [PHP] w3c-compliant form-action parameters

2003-10-25 Thread Chris Shiflett
--- Marek Kilimajer [EMAIL PROTECTED] wrote: FORM action=mypage.php?para1=val1para2=val2 method=get Get variables in action URL don't work with get method, at least in Mozilla. Marek's right, and this is the case for every browser I know of. In this case, you can specify para1 and para2 as

Re: [PHP] w3c-compliant form-action parameters

2003-10-25 Thread Chris Shiflett
--- Timo Boettcher [EMAIL PROTECTED] wrote: I find that *very* hard to believe. I'm not aware of any browser that mishandles HTML entities. Basically, when you say this: action=/mypage.php?para1=val1amp;para2=val2 Your browser's HTTP request line will appear as:

Re: [PHP] w3c-compliant form-action parameters

2003-10-25 Thread Chris Shiflett
--- Timo Boettcher [EMAIL PROTECTED] wrote: It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? It would if you use the GET method as someone had suggested. Basically, this is how

Re: [PHP] w3c-compliant form-action parameters

2003-10-25 Thread Chris Shiflett
--- Timo Boettcher [EMAIL PROTECTED] wrote: http://shiflett.org/dev/php-general/ampersand.php can you put the source of that online, too? You can view the source in your browser to see the HTML, which is the relevant part. If you see the HTML entity for an ampersand in your browser's location

Re: [PHP] Post variables getting lost

2003-10-27 Thread Chris Shiflett
--- Joao Andrade [EMAIL PROTECTED] wrote: form method=post action=\basics\quotation-add Windowsitis? Mind your slashes. Also, you should quote HTML attributes (though this isn't your problem). So, try this: form action=/basics/quotation-add method=post tdinput type=text size=30

Re: [PHP] POST variables, funny thing

2003-10-27 Thread Chris Shiflett
--- Joao Andrade [EMAIL PROTECTED] wrote: if ( $_POST['nova'] =! ) Equal not? Perhaps you mean not equal? :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing

Re: [PHP] register_globals

2003-10-27 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: In the php.ini I have set the registr_globals=3D Off I'm assuming that 3D was put in there by some faulty mail client? Also, make sure you spell it register_globals. php_flag register_globals on for only this site. With the function phpinfo I have see that the

Re: [PHP] Post variables and mysql queries

2003-10-27 Thread Chris Shiflett
--- Luis Lebron [EMAIL PROTECTED] wrote: $query=Select * from users where userid='$_POST['userid']'; Use curly braces: $query = select * from users where userid = '{$_POST['userid']}'; Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] register_globals

2003-10-27 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: The problem concern: The correct site is: www.gardafun.com with apache.1.3.27 and php-4.0.6 with register_globals = On The new webserver is 213.21.138.119 with suse8.2 apache1.3.27 and php-4.3.3 with register_globals=off in the php.ini and in the .htaccess

Re: [PHP] register_globals

2003-10-27 Thread Chris Shiflett
Please include the list in all of your replies. I skim message subjects and don't read all messages. If you reply only to me, there's a good chance it will not be read, and no one else will have a chance to answer your question. --- [EMAIL PROTECTED] wrote: As i know, if register_globals is

Re: [PHP] function problem (simple redirect)

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: function $payment{ You probably mean payment, not $payment. header (location:test_page.html); The Location header has an uppercase L, a space after the colon, and an absolute URL after the space. Your example violates all three. Hope that helps.

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: I am getting a elseif parse error. Let me clean up your code a bit, and hopefully the error will stand out. function payment() { global $payment; if ($payment == '0'); header ('Location: http://example.org/test_page.html'); } global

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: function payment() { global $payment; if ($payment == '0'); header ('Location: http://ftudor/test/test_page.html'); } elseif ($payment == '1') { header ('Location: http://ftudor/test/test_page2.html'); } Your code looks

Re: [PHP] Re: function help simple redirect

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: I am putting in the $payment=1; so it will automatically go to test_page2.html but it just sits there. [snip] header ('Location: http://ftudor/test/test_page2.html'); What happens when you type it into your browser manually?

Re: [PHP] RE: function help redirect help

2003-10-27 Thread Chris Shiflett
--- DvDmanDT [EMAIL PROTECTED] wrote: Can you see the problem(s) now? Never underestimate the benefits of writing clean code. :-) Hehe, you should see my code.. Yes, very messy and disorganized. Is this an admission of guilt, a cry for help, or what? Chris = My Blog

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: a) echo td bgcolor='{$bgcolor2}'nbsp;/td/tr; The curly braces are superfluous here, since you are using double quotes. I'm not sure if you like having them there, but I think that less syntax yields a simpler and cleaner appearance. However, I hate

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Exactly what is the problem with: echo td bgcolor=\$bgcolor2\nbsp;/td/tr; I don't see the problem. I agree with you, actually. The only things I don't like are: 1. The use of the bgcolor attribute 2. The name of the variable :-) 3. The fact

Re: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- DvDmanDT [EMAIL PROTECTED] wrote: It's said that you shouldn't use tables for layout, but does people accutually listen to that? And what instead? You can use stylesheets. These work well with PHP. Well, that's my attempt at getting this thread back on topic. :-) Chris = My Blog

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: p.s. And yes Curt you touched on why I put my td/td's all on one line. Some browsers (I know IE does) like to add whitespace if the td and /td are not all on the same line. Which is why I didn't complain about that. :-) You had your closing tr on

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- S.P.Vimala [EMAIL PROTECTED] wrote: How to create a unique session for every new browser instance? I'm not sure if this fits your definition of new browser instance, but there is no way for a remote Web server to distinguish between two instances of the same browser running on the client

Re: [PHP] Possible query problem

2003-10-28 Thread Chris Shiflett
I didn't look into your problem, but I want to mention one thing that stands out to me. --- Frank Tudor [EMAIL PROTECTED] wrote: $query=SELECT payment FROM payment WHERE dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and users.password='.$_POST[password].'; Never, ever build an SQL query

Re: [PHP] URL Variables

2003-10-28 Thread Chris Shiflett
--- Jed R. Brubaker [EMAIL PROTECTED] wrote: Is there a way to preserve URL variables and have a link simply add a new variable to the end? Sure, just use $_SERVER['QUERY_STRING'], which is the current query string, and append whatever new URL variables you want. Chris = My Blog

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- Rob Adams [EMAIL PROTECTED] wrote: I'm not sure if this fits your definition of new browser instance, but there is no way for a remote Web server to distinguish between two instances of the same browser running on the client machine. That can't be true. It can, and it is. The only

Re: [PHP] OT - Quick JavaScript Question

2003-10-28 Thread Chris Shiflett
--- Jake McHenry [EMAIL PROTECTED] wrote: I know this is a bit off topic, but does anyone know of a way I can take the server time in php and get it into javascript? Well, that part isn't off-topic, in my opinion. JavaScript and HTML are the exact same thing from the perspective of PHP;

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- Rob Adams [EMAIL PROTECTED] wrote: Test it yourself. With all due respect, it seems you should be doing the testing. Login to a PHP app using a standard browser and session cookies and see for yourself. I understand the philosophy of the web server only seeing what the client sends it,

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- CPT John W. Holmes [EMAIL PROTECTED] wrote: If you are not relying on a cookie based session, then this will work. Each login could be assigned a different session ID, so the requests for each browser will be different because of the different session IDs. What John is explaining here is

Re: [PHP] php sessions

2003-10-28 Thread Chris Shiflett
--- Rob Adams [EMAIL PROTECTED] wrote: That doesn't seem to be what he's saying. because of the different session IDs. It seems to me a better example of what he is saying would be: http://example.org/foo.php?PHPSESSID=12345 vs. http://example.org/foo.php?PHPSESSID=67890 Perhaps I

Re: [PHP] Echo issue

2003-10-29 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Is this on Windoze or *nix? Sounds like some sort of buffering issue... Yes, it does. what is 'output_buffering' set too in your ini? This shouldn't matter either. I can't think of a reason why he would see the behavior he describes. In fact, this

Re: [PHP] Performance of dynamically generated select boxes

2003-10-29 Thread Chris Shiflett
--- Luis Lebron [EMAIL PROTECTED] wrote: I am rebuilding a php application to handle a higher load. The previous programmer had created a series of dynamically generated select boxes using a mysql table. Would it be faster or less resource intensive to create a series of arrays to generate the

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: I'm having trouble while i try to include a php file. [snip] include ('http://blabla.com/script.php?var1=a'); [snip] script.php should echo some text, but i don't get any output. When you visit http://blabla.com/script.php?var1=a and view source, what

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene [EMAIL PROTECTED] wrote: Is there in php something as a redirect to another page like in asp? Yes, and as with ASP, there are several methods. Make an example script that has only this: ? header('Location: http://www.google.com/'); ? As for your error about headers already

Re: [PHP] redirect

2003-10-29 Thread Chris Shiflett
--- alain dhaene [EMAIL PROTECTED] wrote: I have check my code. I haven't use a echo in my code. It's very strange. I will search more on the manule. I don't think the manual will help you here. You *do* have output in your script prior to the call to header(). Trust me. :-) One way to find

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: i see one line containing the expected html code.The scrip is a counter that outputs the img tags to fecth the images: img src=digit4.gifimg src=digit2.gif that's all i get, and all i would like to get with the remote include. That seems right,

Re: [PHP] Problems with remote include

2003-10-29 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: ? include('http://www.google.com/'); ? That should basically take Google's HTML and make it your own. The image will obviously not work, but it should otherwise look like Google's home page. yes i get Google's HTML. OK, so this proves

Re: [PHP] Favorite Online Language Guide

2003-10-29 Thread Chris Shiflett
--- Robb Kerr [EMAIL PROTECTED] wrote: What's your favorite online Php language guide? http://www.php.net/manual/ Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Chris Shiflett
--- Kim Kohen [EMAIL PROTECTED] wrote: I'm glad to report this is not a PHP issue. It turns out to be a Safari problem with Mac OSX (Safari was updated with OSX 10.3). All my PHP stuff is working correctly in IE so it looks like development will proceed there until Apple gets a fix. I would

Re: [PHP] new install php not working. Please help.

2003-10-30 Thread Chris Shiflett
--- Patrick Fowler [EMAIL PROTECTED] wrote: When I try access the index.php via the web the file it tries to download. Try adding this to your httpd.conf: AddType application/x-httpd-php .php Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] Problems with remote include

2003-10-30 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: I've tried with the simlpest example: --- output.php ? echo Hello World!; ? -- test.php htmlheadtitletesing!/title/head body ?php include ('http://***.com/output.php'); ? /body/html -- Actually, I think the simplest example was

Re: [PHP] Problems with remote include

2003-10-30 Thread Chris Shiflett
--- Pablo Zorzoli [EMAIL PROTECTED] wrote: That's it i cannot wget it from the webserver i get failed: Connection timed out. i tried to wgetit from another machine and i get the desired output. So the server where you're running the PHP script can't connect to the server you specify in

Re: [PHP] PHP 5

2003-11-01 Thread Chris Shiflett
--- Leonel Nunez [EMAIL PROTECTED] wrote: When php 5 is released will there be support for php 4.3.x? Support from whom? What type of support? Do you consider there to be support for 4.3.x now? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: form action='nextpage.php?manifacturer=?=$_GET['manufacturer']?' method='get' Unless I'm mistaken (which is possible), this won't work. When the form method is GET, the query string is constructed using the form fields. Therefore, the manufacturer will

Re: [PHP] applying one function to all array elements

2003-11-02 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: Can someone show me a simple, clean way to apply one function (eg stripslashes()) to every element in an array (eg $_POST)? [snip] I've also seen http://www.php.net/array_walk, but couldn't determine how/if it suited my needs. Maybe you can explain

Re: [PHP] Shared SessionIDs?

2003-11-04 Thread Chris Shiflett
--- Guillaume Dupuis [EMAIL PROTECTED] wrote: We currently have 3 php servers. Can we use the same SessionID to connect across the 3 systems? Yes, assuming I understand you correctly. There are many ways to address this challenge, but one method is to use a database for your session store.

RE: [PHP] Shared SessionIDs?

2003-11-04 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Store the username+password as an MD5 hash in a cookie, also store the user id. Then on the other servers you can read the user id and use that to pull out the username and password hash (you do hash your passwords within the database right?) from a

Re: [PHP] Instant timeout

2003-11-04 Thread Chris Shiflett
--- MIKE YRABEDRA [EMAIL PROTECTED] wrote: What would cause a php page to instantly prompt a timeout error when loading? I bet this would cause that to happen pretty quickly: set_time_limit(1); Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] text input truncated

2003-11-04 Thread Chris Shiflett
--- Daniel Clark [EMAIL PROTECTED] wrote: $xyz = Hello World; echo forminput type=test size=25 value=$xyz/form; The text box shows up with Hello NOT Hello World. How do I get the entire variable? I would try single quotes here. $xyz = 'Hello World'; That's good advice in general,

Re: [PHP] Return mysql_fetch_array($result) from a function

2003-11-05 Thread Chris Shiflett
--- Terence [EMAIL PROTECTED] wrote: I am trying to get the results of a function, which queries MySQL, back into an array for me to order. I only want to print out certain fields (I call the same query, but use different fields in different places). This works is I print out the fields in

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