Posts by WillBB • 89 points
24 posts
-
2
votes0
answers449
viewsQ: Return content from a form via Curl
I have this code that login on Instagram, but I want to open in a modal or any other kind of thing for fomulario coming from instagram when checkpoint for required, see: <?php $username =…
-
-1
votes1
answer57
viewsQ: Lock element for about 10 minutes
I’m not going to post my code so I don’t embarrass myself, but does anyone have any idea how to block a div for a set amount of time ? After clicking this div it disappears and after the set time it…
-
4
votes2
answers10833
viewsQ: What are CRON JOBS and how to use them with PHP
Recently asked this question, but I found it kind of vulnerable to use the codes that were answered there, summarizing the best answer: Creates a Cookie with a Time and hides the button, after this…
-
0
votes4
answers506
viewsQ: Ajax, limit time even giving Reload on page
I have the code that does what it has to do, and when it finishes it hides the button and shows the message of success: function getFollow() { $('#btnFollow').click(function(a) { a.preventDefault(),…
-
0
votes1
answer60
viewsQ: Arrays in a single index
I made this question today, helped me a lot, now I have the code: foreach ($tokens as $row) { $token1[] = $row['oauth_token']; $token2[] = $row['oauth_token_secret']; } var_dump($token1);…
-
4
votes1
answer838
viewsQ: Foreach within Foreach PHP
I have the following code: $row = $twitterusers->selectUserAll(); foreach ($row as $fetch) { $users[] = $fetch; } var_dump($users); It takes all users from the table, but when using the var_dump…
-
1
votes1
answer55
viewsQ: Get only part of the Cookie string
I have the cookie: twid that is returning like this in the browser. %22u%3D859186139894337536%22 I’d like to take just this: 859186139894337536 It is possible to do so in PHP. PS: I’m getting it…
-
1
votes1
answer365
viewsQ: Javascript redirect and set cookies
I have the following code with Javascript <script type="text/javascript"> $(function() { $("#loginForm").submit(function(event) { $("#success").css("display", "block"),…
-
0
votes1
answer24
viewsQ: Javascript pass more than one parameter
I have this code: 1 == a.redirect ? window.location = rootUrl + "/options/?welcome=true" : ($("#message").css("display", "block"), $("#message").html(a.message)), $("#signinButton").attr("value",…
javascriptasked WillBB 89 -
1
votes1
answer78
viewsQ: Problem with window.Location
I’m having trouble with window.location = "index.php", he is not redirecting the page login.php for index.php, see the code: <script type="text/javascript"> $(function() {…
-
0
votes1
answer128
viewsA: Script does not continue and hangs
Solved, with help of this question in English. I had to do a check before to return the json, see: if (isset($cookies['auth_token'])) { echo json_encode(array('status' => 'success','message'=>…
-
1
votes1
answer128
viewsQ: Script does not continue and hangs
I have the following code made with javascript: <script type="text/javascript"> $(function() { $("#loginForm").on("submit", function(a) { a.preventDefault(), $("#signinButton").attr("value",…
-
1
votes1
answer59
views -
0
votes1
answer190
viewsQ: Extract data from an array
I have the following code: <?php require_once './app/autoload.php'; if (!isset($_SESSION['twitter_session'])) { header('Location:' . URL_BASE . '/index.php?access=denied'); } if…
-
0
votes0
answers39
viewsQ: Recover Cookies after logging in
I have the following code: <?php if (isset($_POST['ttrSignin'])) { $ttrUsername = trim(filter_input(INPUT_POST, 'ttrUsername')); $ttrPassword = trim(filter_input(INPUT_POST, 'ttrPassword')); if…
-
1
votes1
answer1872
viewsQ: Check input special characters
I’m trying to validate my form and capture special characters using preg_match(..., ...), but unsuccessfully. So much using @ or without it, returns me the following message: Special characters…
-
0
votes1
answer419
viewsQ: Curl returning null value in JSON with PHP
Well I’m studying cURL, because I want to make an application with Twitter using login form and password... yesterday I did this question and was very well answered, based on this I am studying…
-
0
votes1
answer263
viewsQ: How do I get information for Twitter accounts?
Yesterday I did this question here in the Sopt, I am now following what the Inkeliz Said: Cookies will only be obtained if you make the request using login/password. To do this just enter the…
-
0
votes1
answer620
viewsQ: What is Netscape HTTP Cookie File for and how?
I need to save cookies of some accounts that authenticate my APP on Twitter, searched the web and found something like:? # Netscape HTTP Cookie File # https://curl.haxx.se/docs/http-cookies.html #…
-
1
votes1
answer86
viewsA: htaccess file giving Forbidden
Completely different try: RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule . /index.php [L]
-
1
votes1
answer59
viewsA: Ignore folder and classes with __autoload
Try as follows, without using the else with die so it will ignore and will not show errors. Only exceptions of own wampserver. Note: Will show errors if class does not exist, test, enter in your…
-
0
votes3
answers207
viewsA: Question about Twitter API
Squeeze f12 on the Twitter login page, go to network, squeeze f5 ready you will see some necessary information.
-
2
votes5
answers599
viewsA: css properties do not bootstrap effect
Try: .navbar-inverse .navbar-nav>li>a { color: #9d9d9d !important; } Try to add !important on the property CSS to force the CSS to use the property described on that line.…
-
1
votes0
answers762
viewsQ: Script to add songs
Hi, I have a script that plays the songs automatically using the tag <audio> of html5, the problem is that I want to pull all the songs from inside the folder I put the songs into without…