john010117
-
why unlink not working ?
You have a syntax error, for one. /* delete not working */ // You missed the brackets for the function function unlink { if($_GET['action'] && $_GET['action'] == 'delete') { unlink($_GET['.$fil…
-
PHP functions in word press
Look in wp-includes/functions.php file - the get_header(), get_footer(), etc. functions all utilize include() (or require/require_once() - I can't remember).
-
[Solved] .htaccess mod_rewrite
# BEGIN DIRECTORY REDIRECTION RewriteEngine on RewriteBase / RedirectMatch 301 /about/(.*)\.shtml http://trinityportland.org/our-school/about/$1\.shtml # END DIRECTORY REDIRECTION
-
[Solved] .htaccess mod_rewrite
# BEGIN DIRECTORY REDIRECTION RewriteEngine on RewriteBase /about/ RedirectMatch 301 (.*)\.shtml http://trinityportland.org/our-school$1\.shtml # END DIRECTORY REDIRECTION
-
[Solved] .htaccess mod_rewrite
Try any of the following (make sure to do a hard refresh when testing each of these - shift + F5): # BEGIN DIRECTORY REDIRECTION RewriteEngine on RewriteBase /about/ RedirectMatch 301 (.*)\.shtml http://trinityportland.org/our-school/about$1 # END …
-
[Solved] .htaccess mod_rewrite
RewriteEngine on RewriteBase /directory/ RedirectMatch 301 (.*)\.html http://domain.org/directory/subdirectory$1 Put this in a .htaccess file in the /directory/ folder. Make sure to change your domain accordingly.
-
New to wordpress, php and the custom fields
If I'm understanding this correctly, have them create a new post for each video and categorize it under the category you want (ex: Documentaries, Educational DVDs, etc.) Or, if you want them as pages, create a new parent page with no content, …
-
Controlling other website's style, or remake it?
So you basically want to steal the functionality of the site, redesign it and claim it as your own?
-
Random Slogan Displayer
Try: [code=php][/code] or [code=php][/code]
-
[Solved] PHP last.fm API wrapper
Simply add "http://" to the front of each link.
-
Sorting multidimensional arrays?
I need details - how did it exactly not work? Put print_r($array); after the foreach loop and see what it outputs and copy & paste it here.
-
Sorting multidimensional arrays?
http://php.net/array_multisort I believe that's what you're looking for. So, it'll be something like: [code=php][/code] (note: untested)
-
Identify a link from html using PHP regular expressions
http://php.net/preg_match The regular expression should be something like: /^(([A-Za-z0-9\-_]+)\.(mp3))+/ Try experimenting with the regex to get what you want (this would be a very helpful tool). [code=php][/code]
-
Multiple downloads/redirects
Multiple downloading at a single time is just not possible. You should look into dynamically combining files via .zip and/or .rar.
-
Target every element inside another element
Is that seriously the correct syntax? Damn, I'm good. :D Yes, it worked. Thanks.
-
Floating multiple paragraphs around image
Ah... *smacks head* It was because of the overflow:auto element that I set for every element. This is yet another reminder why I shouldn't code late in the night. Sorry for wasting your time, and thanks for the timeliness of your response. I a…