|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi All,
I've been trying to figure this one out and everything on the web points to "whitespace" being sent to the browser before the call to session_start(); So here's my problem. I have two PHP pages, searchresults.php and shoppingcart.php. The searchresults.php page doesn't have any problems and runs fine. The shoppingcart.php page is where I get the "Cannot send..." error. However, I created the shoppingcart.php FROM the searchresults.php page which is, as I said before, working without error. Both pages have calls to "echo" so I just don't get why I'm having an issue with the shoppingcart.php page when the page it was created from (searchresults.php) doesn't have any problems. The tops of the pages are identical as shown below: searchresults.php ==== PHP Code:
shoppingcart.php ==== PHP Code:
Thanks in advance for any help you can offer. Cheers, Mike Last edited by Jordan; 05-06-2008 at 04:26 PM. Reason: Added code tags |
| Sponsored Links |
|
|
|
|||
|
I figured it out from a post I found elsewhere:
http://www.pragmattica.net/node/10 For my files that weren't working they were saved with the encoding set to UTF-8 and not ANSI. Once I saved the .php files as ANSI they started working. Cheers, Mike |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Xav | ........ | 1097.16 |
| MeTh0Dz|Reb0rn | ........ | 986.37 |
| morefood2001 | ........ | 850.04 |
| John | ........ | 841.93 |
| WingedPanther | ........ | 684.54 |
| marwex89 | ........ | 638.26 |
| Brandon W | ........ | 492.36 |
| chili5 | ........ | 292.12 |
| Steve.L | ........ | 188.37 |
| orjan | ........ | 187.41 |
Goal: 100,000 Posts
Complete: 79%