get cookie of other website on my webpage [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to get the facebook cookie on my webpage, but I am being unabe to do this.
I tried this but it returned null.
Please give me the php script if you know.

You are trying to do the impossible.
You just can't read other websites cookies, you may just could read their headers though.
You could grab their headers like this.
<?php
file_get_contents('https://www.facebook.com');
var_dump($http_response_header);

That would be a huge security issue on both Facebook's end and the browser's end.
You should never be able to do that ever for any reason ever.

Related

how to prevent video download by user in php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I hope you are fine
I want to write a simple php code that the user cant download the movie like youtube site and can only see, I came across a series of results such as hls, ffmpeg, rtmp in my search, but I do not know which one is useful or has a library for php at all or not.
Thank you for your time.
It’s not possible. The server can not differentiate between “downloading” and “playing”.

Reposting to other websites from my own [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm creating a wordpress website, and I want that when I or an user make a post it gets automatically reposted to other sites.
I know that there is API for major websites, for example facebook and twitter. But what if I want to make a post in olx.com? they have no API. Is there a way to create a php function that logs into olx, post and logs out? It doesn't have to be a php function, i'm open to ideas.
There is a lot of reasons to not do that.
Better stay safe and play with the websites that have api, allow feeds or already implemented a way for you to post on their sites.

Using PHP to change HTML permanently [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want my client to be able to log into their website, fill out a form and then have that webpage permanently have whatever they put into that form. Is there a way to use php to take whatever is submitted in that form and replace the html content with it? Im new to php, which functions could I use? And is it possible for php to permanently change anything on a site? Im not terribly concerned with security
Start with wordpress and if you don't like it, then there are other content management systems out there. Google can help you find one too.
Wordpress site

How do I make a comment system for my website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What would the code be to have a comments section on my website where logged in people can place a comment. I got a database and want to use html and php only. No 3th party involved.
Something simple and not to advanced.
You should check out some tutorials:
http://www.youtube.com/watch?v=KGmEZY6DBhw
http://www.2my4edge.com/2013/05/comment-system-using-php-and-mysql.html
We are not going to place an entire code here, you should show us that you've tried instead of just asking us to write all of your code.

remote web server compilation? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I'm kind of tossing an idea around in my head... is it feasible to write a webapp that asks for a user to input a snippet of code, and then compiles it remotely on a server, and returns the output back to the user?
feasible sure, you could definitely make this work from a technical point of view. but in terms of security, it sounds very dangerous.

Categories