Mr.Shawn
Members-
Posts
47 -
Joined
-
Last visited
Never
Everything posted by Mr.Shawn
-
$_SERVER['DOCUMENT_ROOT'] would help in a sub-domain situation. I should have thought of that. Thank you so much.
-
[SOLVED] how do i keep line breaks with this code
Mr.Shawn replied to ricmetal's topic in PHP Coding Help
@ricmetal that method would only work after you had use htmlspecialchars() function. It is just to replace the special chars back to tags. -
/home/myaccount/files is the folder that I would like to store files in while the sub-domain actually points to /home/myaccount/something/ So just by using $_SERVER['DOCUMENT_ROOT'] would let me do what I wanted?
-
[SOLVED] how do i keep line breaks with this code
Mr.Shawn replied to ricmetal's topic in PHP Coding Help
So if we use the nl2br() function, the function itself will change \n to <br>? -
[SOLVED] how do i keep line breaks with this code
Mr.Shawn replied to ricmetal's topic in PHP Coding Help
Perhaps you can try this method str_replace('<br>', '<br>', $var); -
Hello all, I would like to ask if I can upload files to a folder in the TLD (top-level domain) from which I access the PHP file from sub-domain. Example: http://something.yourdomain.com/upload.php to store files in http://yourdomain.com/files/
-
Hi readers, I have some problems with Pagination such that if I have 100 pages, the html part of displaying 100 pages button seems so long and occupies a lot of spaces. I have been to some forum which is able to display pages like the below pattern Page: 1 2 3 4 5 .. 20 21 23 Now, may I ask how to do the jumping display page button part? Thanks in advanced.
-
[SOLVED] url rewrite relating to $_SERVER['REQUEST_URI'] problem
Mr.Shawn replied to Mr.Shawn's topic in PHP Coding Help
Okay. It's fixed thanks. -
[SOLVED] url rewrite relating to $_SERVER['REQUEST_URI'] problem
Mr.Shawn replied to Mr.Shawn's topic in PHP Coding Help
Okay this is the case. Normally if I does url rewrite on my software where my software will be located in the root folder, it works all fine. I normally use $page = explode("/", $_SERVER['REQUEST_URI']); to return to a variable and then check $page[1]. In this example, www.example.com/somepages/ where the "somepages" refer to $page[1]. But now if I placed my software in a folder, the $page[1] appears to be the folder name and now I have problems retrieving the rewrited url. www.example.com/folder/somepages/ How can I solve this problem? -
Hopefully this helps. stripslashes($str);
-
[SOLVED] url rewrite relating to $_SERVER['REQUEST_URI'] problem
Mr.Shawn replied to Mr.Shawn's topic in PHP Coding Help
If you guys don't understand what I wrote, can leave a message. Thanks. -
Sorry, kind of blur here. Is there any problem in using ajax to show the extracted data or you do not know how to use ajax to show the extracted data?
-
$page = explode("/", $_SERVER['REQUEST_URI']); The above code is to detect uri variables. I always used $page[1] to see what was the first parameters that was parsed in the browser url. Now, the problem is whether you placed your scripts in root directory or in a folder. If I place my scripts and all files in the root directory it would be like this. The debuuged $page values. Array ( [0] => [1] => ) If I placed my scripts and all files in one folder then it would be like this Array ( [0] => [1] => somefolder [2] => ) I can no longer use $page[1] as the first parameters. Any ideas how I can solve this problem? I want it to be dynamically
-
div { width: 250px; /* any width you like */ margin: 0px auto; position: relative; }
-
Owned. Thanks jcombs_31. It solves my problem.
-
This is what happens when I tried to use relative position. It leaves a huge blank space below. If you use absolute attribute, it will always stay at the bottom.
-
This is the screenshot and the footer div css will make the footer stays at the bottom but it won't work with javascript dynamically.
-
Hello everyone, The footer floats when i used dynamic javascript add table row function. Any solutions to this guys.. #footer { position: absolute; bottom: 0px; width: 100%; min-width: 100%; text-align: center; }
-
saw that before but it's not working. was that considered as ActiveX?
-
Read 619 times and not even one could help?
-
Hi everyone, have anyone tried to use Ajax to check the file type and file size of a form file input?
-
Looks like that's the only way. Thanks lordfrikk.
-
Yea.. I got those by stealing the source and it's from google.
-
It means that the code you provided is not working and it does not validate CGI scripts?
-
Where can I get a list of country list together with country codes without making one myself?