-
Content Count
41 -
Joined
-
Last visited
Community Reputation
2 NeutralAbout Petrucho
-
Rank
Newbie
- Birthday 04/27/1988
Previous Fields
-
Languages
xhtml,css,js,php
-
Problem fixed! Ingolme, dsonesuk - thank you both for the kind assistance! I used netBeans as my editor and only for this example, I've tried Notepad. As I said, I have no code in the test.php file. only the 3 lines of code I wrote which are the opening php tag, closing tag and in the middle, the session_start(); function. After googling about BOM, I've decided to install Notepad++ (version 6.9.2) which gives you the option of saving the file without the BOM. Problem got fixed. For someone who bumped into this thread in the future: It seems the only problem was indeed,
-
the only lines of code in the .php file I've created are: <?php session_start(); ?> No, this file is not included. I've created this file, just to check if I still get the warning, and yes, I do. It doesn't make any sense and that's why I came here. What else could send something to the buffer? maybe settings of the server? php.ini configuration? I can't find any solution and yes, I think, something's adding the <br /> prior to the session_start(); which makes it impossible to send any headers. Edit: Maybe this would help; Link to test.php: link Code
-
I guess this is the source of the problem. the escaped <br /> As I mentioned earlier, I opened a new .php file (using Windows Notepad [saved in UTF8]) and written nothing but the session_start(); It's really confusing
-
Hi dsonesuk, Yes, I've saved it as UTF8 encoded. When I try to open the .php page, I find an extra at the top of View Source. I have no clue, where did it come from.
-
Hi, I had to use Session cookies for a little web application I'm working on, but I can't find solution to the problem mentioned above. I get the warning: This warning points to line 1. I've tried to create a new .php file, with the following code: <?php session_start(); ?> Only 3 lines of code, using nothing but Windows Notepad and I still get the same warning. I've tried to find solutions but couldn't find any in here, nor in Google. The only explanation I could think of, is a server problem who send headers in each call. It doesn't make any sense thoug
-
It has to be something with your php version or configuration. I have just tried the code on my server. output: Try the function phpinfo();
-
This code should work. What you see in your browser while trying to load the page? it show's you anything?
-
"TEXT and CHAR or nchar that will typically be converted to plain text so you can only store text like strings. BLOB and BINARY which mean you can store binary data such as images simply store bytes." Here
-
I don't understand why you use the INSERT INTO SELECT statement. You have the value from your html form and you can use: INSERT INTO(..) VALUES(..)
-
I'm not sure why you need it, but, time() return how many seconds have passed since January 1 1970 00:00:00 GMT. If you want to know how many days have passed since a particular time() you saved before, then you should subtract the time() you saved earlier, from the the time() now. Then a little math: 60 seconds = 1 minute 60 minutes = 1 hour 24 hours = 1 day
-
Ensuring Directory has read and writer permissions for everyone
Petrucho replied to DirkDiggler's topic in PHP
After changing the folder chmod, you have no reason to keep using the chmod() in your code. Remove it, then it should work the way you wanted. -
Ensuring Directory has read and writer permissions for everyone
Petrucho replied to DirkDiggler's topic in PHP
Look here , you might find it helpful. -
Ensuring Directory has read and writer permissions for everyone
Petrucho replied to DirkDiggler's topic in PHP
I'm not sure if it's possible to fix it through PHP or not, but you can try change the chmod with your FTP-CLIENT. For instance, if you use FlashFXP, right click on the folder -> Attributes (CHMOD) -> *your setting*. -
Is it possible to change my username somehow? I searched the Setting-page and found nothing. Thanks in advance,