i have pure virgin html pages, and i need to put some php code given to me in those pages. i remmeber reading somewhere that i can add some lines in the .htaccess to make all the pages parse as php or soemthing. anyone knows?
Same problem here. the page is htm or html, but i need to add <php> code is it possible. or what if i save the whole page as .php now and add the code , will i lose the SERPS?
If it's shtml and your host supports server side includes then you can simply <!--#include virtual="path/file.php" --> Code (markup): or the other method is to change it in the htaccess file: AddType application/x-httpd-php .php .htm .html Code (markup):
i think the second one is what im looking for. so the line basically tels the server to parse ALL pages as php? what effect will this have on SERPs, performance, etc?
Should have no effect on SERP's but it could have a minor performance impact as all your html pages will have to go through the php parser.
lets try with this site. www.earn123.info If i save all the pages to .php will i get any type of problems? regarding SERPS and adding the php code?
Stupid question maybe, but you do have PHP set up on your server correctly? If you make a PHP file with the following three lines: <?php phpinfo(); ?> does it work as expected when called in your browser? If not, then you need to sort that out first. If so, maybe try adding: RemoveHandler .html .htm before: AddType application/x-httpd-php .php .htm .html in your .htaccess file...
Well i will tell you clearly . Check my site earn123.info i want to keep some PPC code which they gave me in php form. Now what can i do as simple to make the code work.
No offence, but you told me nothing... You want free help? You have to be a bit obliging. I asked you to run a simple test and you can't even be bothered to do that... I could tell you that I decided to be a bit more helpful, but I'm sure it won't be appreciated. You're hosting off 50 Webs and I'll assume you're using the free plan. On the FRONT PAGE of the 50 Webs site there's a compare plans link which shows that all but the free plans support PHP. Assuming I'm right that you're on the free plan, you can't do it. But I mean, surely you did what I would consider to be the most basic of basic things and confirm that your host does PHP, especially when that was the one simple thing you were asked to do. Sorry that you happen to be the one to get this but it just seems as though at the moment there's a lot of people who ask questions and want help, but just can't be bothered to actual do any work when asked to. Seriously: you were asked to run a test for us... why didn't you do that? If you had done it, 2 minutes later you would have known that it wasn't possible. Instead you come here and tell me to check your site. How about you do some own checking yourself? Hmm... does anyone else feel this way, or is it just me??
Well i asked you directly because the last time i played with the code the site was totally down. Iam not interested in giving the original domain link so i gave this one. The original site is hosted at polurnet.com and thanks for the compliments and help.
Twistmyarm I 100% agree. If you ask for advice at least try what is being offered. In this case I think Amitpatel was not very gracious as to the support offered. Why should we do the checking for him when he has full control of the server and can run a 1 second test to give us an answer.....sheeesh
totally agreed,, you give him help, but he didn't even read...how about i do it for you? huh? is that what you want? what's the big deal? Doing some illegal ?
I also support TwistMyArm and Danny - AmitPatel has been ungrateful . It's always tough helping people who do not want to understand the process on their servers. All the want is the end result without much work and will grumble if there are side effects.
Dharma was a prime example of how to be helpful when asking a question in his thread. Despite porr english we got throughh it and he is doing further research. A lot of new users should be the same. I know when I was teaching myself PHP I was greatful for any knowledge anyone passed on to me and one person in particular helped me a lot and still does to this day. cheers Lincoln
have yet to try TwistMyArm's suggestion, but what happens if i were to rebuild that ONE page (the main page, unfortunately) in php? will i lose PR, SERPs, de-indexed, etc?
yes and yes. tried and succeeded. but when i add that line in .htaccess i got something like this: "; $columns = 2; for ($i = 0; $i < count($arr_xml['URL']);) { echo ""; for ($j = 0; $j < $columns; $j++) { if ($arr_xml['URL'][$i]) { echo "".$arr_xml['BeforeText'][$i]." ".$arr_xml['Text'][$i]." ".$arr_xml['AfterText'][$i].""; } else { echo " "; } $i++; } echo ""; } echo ""; } } function updateLocalXML($url, $file, $time_out) { $xml = file_get_contents($url, $time_out); $xml = substr($xml, strpos($xml,'(.*?)', '"'); $n = 0; while (isset($out[$n])) { $retarr[$out[$n][1]][] = str_replace($search_ar, $replace_ar,html_entity_decode(strip_tags($out[$n][0]))); $n++; } return $retarr; } ?> Code (markup): at the section where i've placed the code.
why do you care. BTW there is nothing illegal, problem is if i show the original domain,the content may get copied within seconds And please dont jump in between others problems. Don't create two sides by supporting some people. I never said Twistmyarm is wrong as such. He helped in his way he could and i could not catch his point, so i repeated my question.
amitpatel_3001: Speaking of jumping in between problems... why didn't you start your own thread? It's really simple and no-one gets confused about who's helping who! The reason we care is because it's things like this that we need to know. You said: That means that we all assume that that's the site we're talking about. So then I went and spent some time for you, despite the fact that you didn't answer my question. Now I find out that when you say "check my site" you actually mean "check out this site as an example that really has nothing to do with my question". That gets confusing. Now... if you just told us your site to begin with, then maybe we could have done what I did and told you some information about what you needed to know. And what the hell is it with people these days worried about people stealing content? a) what's the point of having a site if you don't want people to know about it in case someone steals your content? b) what makes you think that your content is that valuable? c) if you don't trust us to not steal your content, why should we help you in the first place? It's called 'give and take' in some parts. Anyway, back to jumping in between problems. Seriously, start your own thread. Poor devin09 has to put up with all this chatter and we all end up ignoring his original post. Secondly, don't expect help if you're not going to be liberal with your information. Saying 'check my site...' when it's not the one you're talking about just wastes everyone's time. It's unappreciated, unprofessional and down right annoying. Not only that, but if it takes days to get all the information from you, then I for one get bored with the thread and ignore it. You do those two things right and you'll be amazed at how helpful people will be. In fact, you'll be amazed at how helpful even *I* will be. But if you are so secretive about everything, don't expect people to persevere. That's my 0.02c, anyway.
alright, i think i should say something. amit asked me if he can hitch a ride at this thread, because we're both having the same problem. i said he could, no problem with that. now i admit that amit probably picked the wrong words to use. it all started with this: what he meant was that he is trying to clarify his question, but as i said, he picked the wrong words. he should have said something like "let me clarify myself", "check THIS site", "what can i do, put simply, to make the code work?". what followed was a host of, well, unfortunate posts that got a little defensive. amit's choice of words suck, that i can say, but he means well. he's very helpful most of the time, but all of you have not been here long enough to have seen most of his posts. i didn't post this because he asked me to, but i just feel that, let's just make things not get out of control, alright? amit, i think you owe them an apology, your choice of words made them misread your intentions as snobbishness. because if i were to read it objectively (not as someone who knows you), i would've think you're arrogant too. i hope you take my advice. so back to my question how do i solve it?