PHP - Moved: Formatting Problem On A Php Page
This topic has been moved to Third Party PHP Scripts.
http://www.phpfreaks.com/forums/index.php?topic=315372.0 Similar TutorialsThis topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=346474.0 Hi, In my .htaccess I have used the following code to provide an error page for my site: ErrorDocument 400 /error.php ErrorDocument 401 /error.php ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php If I access a page which doesn't exist at www.example.com/unknownpage.php then the error page will appear formatted correctly with css etc. If I however access an unknown page in a subdirectory e.g. www.example.com/directory/unknownpage.php then the site will appear as text only without any formatting or image. I know this can be resolved by linking the css file via it's full URL (along with all the other media on the error page) is there a better more efficient way? Thanks I have a dynamic menu (jglidemenu) installed on my site. It works fine on my HTML pages but on my PHP pages the font formatting from the menu's style sheet isn't working and I haven't been able to figure out why. Here's a page where the menu is working correctly: http://www.greenbayeasthighschool.com and here's a page where the formatting fails: http://www.greenbayeasthighschool.com/staff_by_lastname.php This is my first attempt at creating a page with PHP. Is it not possible to use CSS formatting on a page that includes PHP content? Thanks in advance for any help. Hi all.. I'm grabbing the following date format from an rss feed: Sun, 16 Jan 2011 00:00:00 -0800 What's the best way to strip away the first 5 characters (Sun, ) and the last 15 characters ( 00:00:00 -080)... but still keeping this as a date (not a string) to store in my database? Thanks in advance for any ideas! This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=323045.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=343063.0 About a year ago I wrote a mod_rewrite in at sites htaccess file. It was to call a page that queried the database based on a unite code that was assigned to a member. If the member was assigned a code that was FL1001, the URL www.marketingteammates.com/FL1001 would bring up a page that quaried that member and displayed their database content.
In the users table of the site, it quaried the field webPageID and the information was called. It called a page webpage.php that quaried the info. The URL in the address bar still displayed www.marketingteammates.com/FL1001. Here are the lines of code in the htaccess file.
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([A-Za-z])([A-Za-z])([0-9]+)$ /webpage.php?webPageID=$1$2$3 [NC,L]I now have a second page completely different from the webpage.php. It is a page storeNumber.php and would query a field storeNumberID. This field could contain any kind of string such as Store#101, or mystore101, or #101 is my store. I tried using the same rewite rule just replaceing the webpage.php and variable with storeNumber.php and $storeNumberID. This doesn't work. It also leads me to wonder if there can even be two different pages in the mod_rewrite. How would it diferentiate one from the other. Thanks for any help in advance. Mike This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=359321.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321550.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=358157.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=320495.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=327233.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=354853.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=314980.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=345218.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=315463.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=350931.0 This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=342818.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=347558.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=321494.0 |