Im Kinda A Noob With PHP, I want to keep my page accessible only from a link etc. I only want to allow people who clicked a link to my page from example.com and others like from google.com to redirect to another page on my site etc. a error message How Could I Do This?
2659
What is the most reliable and secure way to determine what page either sent, or called (via AJAX),  the current page.  I don't want to use the $_SERVER['HTTP_REFERER'], because of the (lack of) reliability, and I need the page being called to only come from requests originating on my site. Edit: I am looking to verify that a script that preforms a series of actions is being called from a page on my website.
33181
This is fairly easy.  If I go to https://webserver.com/someurl?a=b, will the someurl?a=b part be protected, or just the contents of the site?
42837
We have a couple of developers asking for allow_url_fopen to be enabled on our server. What's the norm these days and if libcurl is enabled is there really any good reason to allow?  Environment is: Windows 2003, PHP 5.2.6, FastCGI
8492
I have seen links in servers that can send you to a page in a browser, is there any way to replicate this with command blocks?  I don't mean command links, I mean web pages.
21709
Most of the time when I follow a user's link, I just want to see their site, look it over, then return to answer their question (not leave SO completely and not come back). Could we make the links users post open in a new window please?  EDIT: I originally wanted this implemented because it's what some other sites did, but I now definitely prefer SO's way. If I want to open a new tab, I middle-click/control-click (or whatever); if not, I just click. I'm in control of what happens. Would never want to go back now.
38456
I created a block and put in some invalid PHP code resulted in entire site not accessible at all.   I'm fairly new to Drupal and I'm not a back-end programmer either. Much appreciated if you can provide a clear step-by-step guide on how to delete that particular block directly from the Database (PhpMyAdmin).
33938
I have one of those "I swear I didn't touch the server" situations. I honestly didn't touch any of the php scripts. The problem I am having is that php data is not being saved across different pages or page refreshes. I know a new session is being created correctly because I can set a session variable (e.g. $_SESSION['foo'] = "foo" and print it back out on the same page just fine. But when I try to use that same variable on another page it is not set! Is there any php functions or information I can use on my hosts server to see what is going on?  Here is an example script that does not work on my hosts' server as of right now:  &lt;?php session_start(); if(isset($_SESSION['views']))     $_SESSION['views'] = $_SESSION['views']+ 1; else     $_SESSION['views'] = 1;  echo "views = ". $_SESSION['views']; echo '&lt;p&gt;&lt;a href="page1.php"&gt;Refresh&lt;/a&gt;&lt;/p&gt;'; ?&gt;   The 'views' variable never gets incremented after doing a page refresh. I'm thinking this is a  problem on their side, but I wanted to make sure I'm not a complete idiot first.  Here is the phpinfo() for my hosts' server (PHP Version 4.4.7):
26196
Let's have some fun shall we??  At the bottom of the content for about 1/3rd of my pages, but not in the footer, I create an internal link for each related IP address to the page on my site for that IP address. This was fine 6 months ago, but now that my database has grown so large, I discovered that it was not uncommon to create 700+ links within this section with one page having 2600. Ooopppsss!! ;-) Houston, we have a problem!  Now this is easy enough to fix. For right now, I put a limit 100 on the query. But this got me thinking and searching for a definitive answer. So far... no luck.  Please understand I do fully know the effects regarding SEO. Most of you know that already. I am not looking for a lesson- just an idea of a range.  Q: How many internal links per page is too many?  There are a lot of answers on the net culled from various nether regions and I have a number in mind (also culled), but I was thinking that there has to be an authoritative answer somewhere. Google says reasonable and MOZ's answer seemed to very arbitrary to me. Some so-called SEO experts say as little as 6 and as much as 200. Yeah. That is useful! One said there is no limit. I know there is a semi-flexible practical limit. I remember reading about this years ago, but cannot remember the mechanics behind it right now. I would have to think on this for a while.  Bonus Q: If given a choice of creating links from a random query (and yes I can do this) or first 100 or so (using limit), which would you prefer/advise and why? Again, I have an idea in mind (again, culled). Is there anything definitive in this regard as well?  My primary concerns are UX, download speed, and lastly, Giigle. (&lt;= please do not edit to change)
36539
I have following links in content.php and i want to display in specific page with condition. Any ideas or suggestions? Thanks.               Home             Director’s speech             Projects             Our Vision             Volunteers             Inquiry
35326
I am new to PHP. In the path of learning PHP language, I notice that, some website would this kind of URL:  www.website.com/profile.php?user=roa3&amp;...  My questions:   What is the "?" symbol used for?  If I were develop a php website, must I use it in my URL? For example, after a user(roa3) successful logged in, I will redirect to "www.website.com/profile.php?user=roa3" instead of "www.website.com/profile.php" What are the advantages and disadvantages of using it?
85460
For example, in the past, links to www.example.com wouldn't have meant Google would pass any value to say, forum.example.com. What is the current status of this? (Please provide a reference if possible).
115983
I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using 'sessions' but it doesn't seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.
10371
I'd like to do some URL rewriting (Why? See .) so that instead of users seeing addresses like   labouseur.com/course-compilers.html    they can instead see and use simply   labouseur.com/course-compilers   (Even better, maybe I should restructure that so that it's courses/compilers.)  I'm using a Linux-based shared hosting service for my website, so I do not have administrative control of the server, but I do have control over .htaccess. The references I've read online seemed less than clear to me, so I'm looking for a little clarity and advice here.
48917
There is a file in my public_html folder called error.log which is viewable by anyone if they just enter the URL in their browser, like: example.com/error.log  I'm running Apache. My question is, how can I hide or perhaps move this error.log so that it isn't visible to regular users?  ErrorDocument 401 default ErrorDocument 403 default ErrorDocument 404 default ErrorDocument 500 default  &lt;IfModule mod_rewrite.c&gt; RewriteEngine On  #   If you are having problems with the rewrite rules, remove the "#" from the #   line that begins "RewriteBase" below. You will also have to change the path #   of the rewrite to reflect the path to your XenForo installation. #RewriteBase /xenforo  #   This line may be needed to enable WebDAV editing with PHP as a CGI. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]  RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^error\.log$ - [F] RewriteRule ^.*$ - [NC,L] RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L] RewriteRule ^.*$ index.php [NC,L]
90974
My question is that I asked a question on stackoverflow.com and  I want to share my question to all other technical stackoverflow linked sites like ,  etc.  I want to share my question on only selected sites related to stackoverflow. I don't want to post duplicates, I just want to make my question visible for the users on the related site, that may not necessarily be the members of the both sites, but may be competent to answer.  Is there any option in StackExchange network to perform this operation?  Can any one suggest me how I can do this?
11642
Someone just edited a link in one of my answers to point to a 'better reference'.    I've no problem with links being changed in general, but this smells like part of a concerted attempt to redirect traffic.   Is this kind of activity acceptable on SO?
71973
I've been asked to work on a system message on an intranet where by there are various URLs (linking to lists of content) that have permission rights attached to them, so only certain users have access to the content.  Currently it's spec'ed so that if a user without permission clicks on one of these URLs a message appears which says 'You do not have Permission to view this content'.  I'm wondering is there a better way to handle this?  I was thinking of maybe disabling the links (the user has no permission for) altogether.  There are pro's/cons here.  Pro:  It will stop users clicking on said link and receiving a message which may leave them feeling stupid and maybe annoyed they don't have permission.  Con:  Maybe the user needs to/would like to be aware that this content exists (so needs to be recognizable as a URL) even if he/she cannot view it.  Anyone any ideas on this/seen any similar patterns in use?