Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~28.6K People Reached
Favorite Tags

64 Posted Topics

Member Avatar for fheppell

I'v got this code to make a bootstrap navbar <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="brand" id="logo" href="#">picturecamel</a> <ul class="nav pull-left"> <li><a href="/">Home</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="change-password">Change password</a></li> <li><a href="update-email-address">Change Email</a></li> </ul> </li> <li><a href="logout">Logout</a></li> <li><a href="help">Help</a></li> </ul> </div> </div> …

Member Avatar for HAOND
0
4K
Member Avatar for fheppell

Hey, I'm trying to (using bootstrap btw), have a page with a header and an iframe. I want the iframe to take up the remainder of the page's height and 100% width. This is my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> …

Member Avatar for diafol
0
321
Member Avatar for fheppell

I have this function: function (Blobs) { console.log(JSON.stringify(Blobs)); // Make the progress bar here Blobs.forEach(function(Blob) { console.log(Blob); $.post(window.location.href + '/add', Blob); // Increment the progress bar by the correct amount, once above request has completed }); } (This function is passed as an argument, hence no name) I want a …

Member Avatar for fheppell
0
1K
Member Avatar for fheppell

I've got a form, that sometimes needs to have a button allowing people to authorize with stripe. To save their data I'm submitting the form to a php file, that compiles the auth URL and saves their data. This javascript function is run when the button is clicked: function stripeAuth(){ …

Member Avatar for Robert_17
0
237
Member Avatar for fheppell

I have some code that takes a URL and downloads it using CURL. Here's the code: $url= $row['loc']; $path = 'tmp/'; $path .= rand(100,999); $path .= $row['name']; $fp = fopen($path, 'w'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_FILE, $fp); $data = curl_exec($ch); curl_close($ch); fclose($fp); $downloadarray[] = array($path, $row['name']); However the file is …

Member Avatar for Isaac_4
0
290
Member Avatar for fheppell

Hey. I have a function that's run every time a user visits a page, to check that they are logged in. Here is the code: function pageProtect($guestonly = false) { if ($guestonly == false && !User::authenticated()) { $alerts = array(); $alerts[] = array('type' => 'warning', 'message' => "You must sign …

Member Avatar for DJBirdi
0
295
Member Avatar for fheppell

How would I go about appending a character to the end of every line except for the last line? The script won't know the length of the variable, as the last ten lines are loaded via tail. Thanks!

Member Avatar for arunmagar
0
172
Member Avatar for fheppell

As part of my web app, users need to be able to move multiple images from one album to another. I'm writing an UPDATE function, as the current album is stored with the image (helpfully, the albumid is the only value that needs changing). Here is the function: function imageUpdate($image_key_array, …

Member Avatar for diafol
0
120
Member Avatar for fheppell

I've got a file that includes various php files with a rewrite framework. I'm importing a class and registering it, and it functions for all code on that page. However when I try to require() a file, it does not seem to have access to the class. require __DIR__.'/lib/UserApp/Autoloader.php'; // …

Member Avatar for fheppell
0
245
Member Avatar for fheppell

I have this code that loads a file called mailchimp-api and signs a user up to a newsletter: <?php if(isset($_POST['email'])){ $email = $_POST['email']; include("mailchimp-api.php"); $chimp = new MailChimp('XXXXXXXXXX-us7'); echo "API registered"; $chimp = $MailChimp->call('lists/subscribe', array( 'id' => 'XXXXXXXXX', 'email' => $email, 'double_optin' => false, 'update_existing' => true, 'send_welcome' => true, …

Member Avatar for cereal
0
247
Member Avatar for fheppell

On my site, I've been tweaking the remember me checkbox so that it looks like a button, whilst still being a checkbox, my html is: <span class="button-checkbox"><button type="button" class="btn" data-color="info">Remember Me</button><input type="checkbox" name="remember_me" id="remember_me" checked="checked" class="hidden"></span> A fontawesome icon is dynamically changed and the status of the checkbox is modified …

Member Avatar for pritaeas
0
215
Member Avatar for fheppell

I'm writing a script that downloads files for web design, and this line produces Traceback (most recent call last): File "bootlace.py", line 60, in <module> download(data['jquery'], 'Downloading jquery. (File size %s)', 'js/') File "bootlace.py", line 11, in download file_size = int(meta.getheaders("Content-Length")[0]) IndexError: list index out of range That line is …

Member Avatar for snippsat
0
2K
Member Avatar for fheppell

I'm learning django and for the latest version of the tutorial i'm using, you must have python 3 installed. Despite the fact I have python 3 installed, python 2.7.6 is being loaded. My path originally had no reference to python, so I added it. C:\Ruby200-x64\bin;C:\Users\Freddy\AppData\Roaming\npm;C:\python33\python.exe However, python 2.7.6 is still …

Member Avatar for slate
0
354
Member Avatar for fheppell

I'm using a bootstrap pseudo-button (a link that looks like a button). It links to a page using PHP that downloads the file (the user is never shown the linking page). When the link is clicked I want it to be replaced with something to indicate progress is happening (for …

Member Avatar for fheppell
0
253
Member Avatar for fheppell

I bought a steelseries keyboard and I can't find a matching keymap. The key to the left of 1 contans a tilde and a hash. I've tried UK, US and US International but none of them work. Is there anything I can type into to tell me my layout?

Member Avatar for Deep Modi
0
99
Member Avatar for fheppell

I have this code for my site, the zip is generating (but corrupted because of the 0 byte files...) but the actual curled files (in the tmp/ directory) are there, just with nothing in them. if ($_GET['download']== 'true'){ $downloadarray = array(); while($row = mysql_fetch_array($res)){ $url= $row['loc']; $path = 'tmp/'; $path …

Member Avatar for fheppell
0
2K
Member Avatar for fheppell

The output of this code is a 0 byte file: if ($_GET['download']== 'true'){ $downloadarray = array(); while($row = mysql_fetch_array($res)){ $url= $row['loc']; $path = 'tmp/'; $path .= rand(100,999); $path .= $row['name']; $fp = fopen($path, 'w'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_FILE, $fp); $data = curl_exec($ch); curl_close($ch); fclose($fp); echo print_r($data); $downloadarray[] = array($path, …

Member Avatar for fheppell
0
326
Member Avatar for nadiam

This will involve quite a bit of code so I'll walk you through it. 1. When the delete button is pressed, somehow send the row to be changed. 2. Check if the user has authority to do so - if the username of the creator is the same as the …

Member Avatar for diafol
0
203
Member Avatar for João_5
Member Avatar for Jacobpaulio

Just to be clear, how did you restart. There are two ways of restarting: pressing the button or yanking the cable out the back. NEVER, EVER, EVER, EVER DO THE LATTER!!!!. Also how many attempts did you make? Finally if it is worth half your grade, take it into an …

Member Avatar for tompatrick
0
810
Member Avatar for fheppell

I'm changing some things around on my webapp and one of the major changes is assets are now stored in S3 (via filepicker.io) rather than locally. Here is some code I have to generate a zip file from an array of files //example values //loc could be uploads/1/7878837474test.jpg //name coule …

Member Avatar for pixelsoul
0
1K
Member Avatar for Walter Faber

PHP is server side which means there is no way to actually refresh the data without reloading the page unless you use AJAX which is releativley complicated, and it's more of a JS thing so you'd be better of asking there. Hope this helps!

Member Avatar for noelthefish
0
217
Member Avatar for fheppell

I wrote this code to integrate with filepicker.io, it takes the URL of the file and gets the header information: $info = curl_init() or die('error 1'); curl_setopt($info, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($info, CURLOPT_PORT , 8089); curl_setopt($info, CURLOPT_URL, $url); curl_setopt($info, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($info, CURLOPT_NOBODY, true); //curl_setopt($info, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($info); if(!curl_errno($info)){ $response = curl_getinfo($info); …

Member Avatar for diafol
0
627
Member Avatar for fheppell

When I open a page the page loads for a very long time and no errors appear in the logs. I've run it through a syntax checker which told me there was one more opening parenthasis than expected, but didn't give me a line number, so I have no idea …

Member Avatar for iamthwee
0
316
Member Avatar for fheppell

I've got a page that requires a file called config.php, this file is included in several other files, all in the same (root) directory. PHP gave me the error `[16-Nov-2013 12:30:17 UTC] PHP Fatal error: require_once(): Failed opening required '/models/config.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/things/picturecamel/uploader.php on line 70` however the file is …

0
290
Member Avatar for fheppell

I have some c# code using the tweetsharp library and when I run it with mono it gives this error: Missing method .ctor in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/TweetSharp.dll, type System.Runtime.CompilerServices.ExtensionAttribute Can't find custom attr constructor image: /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/TweetSharp.dll mtoken: 0x0a000019 Missing method ToList in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/c_backend/ConsoleApplication1.exe, type System.Linq.Enumerable Unhandled Exception: System.IO.FileNotFoundException: Could not …

Member Avatar for deceptikon
0
311
Member Avatar for fheppell

I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box …

Member Avatar for fheppell
0
177
Member Avatar for davy_yg
Member Avatar for davy_yg
0
171
Member Avatar for Indians

I have built a couple of apps with this api but as above, I can't help you with anything unless I know the exact error.

Member Avatar for iLikePHP
0
440
Member Avatar for fheppell

I have an array coming from a mysql statement. It is being convered into an array using mysql_fetch_array. This is then fed into a while loop. I want the array to be reversed. Currently it is printing the results as Bob, 23 Steve, 26 However I want it to echo …

Member Avatar for pritaeas
0
126
Member Avatar for fheppell

I have a problem with one of my php scripts. I've got a file called view.php. If I go to test.com/view?id=7575 it comes up with a 404 error. However if I go to test.com/view.php?id=7575 it works. Why is this?

Member Avatar for gogs85
0
205
Member Avatar for fheppell

I installed zsh instead of bash and quite like it. However today I was changing the php path and I messed it up. I know what I did wrong, and I would just edit the file and fix it but my mistake has stopped any commands working. I could access …

Member Avatar for fheppell
0
177
Member Avatar for fheppell

I know how to only log php errors but how can I set the error handling up so that it echos some custom text eg- We're sorry, but something went wrong. Please try again later Thank you

Member Avatar for jkon
0
151
Member Avatar for fheppell

I have the following file structure. Some files are dynamically added to a zip file and downloaded. uploads ----- 1 ---------- test.jpg ---------- another-test.jpg ----- 2 ---------- yetanotherfile.jpg ----- 3 ---------- evenmorefiles.jpg However, when I unzip the downloaded file it keeps that same structure (only with some files missing) and …

Member Avatar for fheppell
0
283
Member Avatar for royal.torres
Member Avatar for fheppell

How can I delete a file using php? Using a linux server (if that matters). Thanks for any help

Member Avatar for Eng. Hadi
0
281
Member Avatar for furalise

Generally for beginners HTML is easier because XHTML requires everything to fit the rules. HTML is more lenient.

Member Avatar for furalise
0
258
Member Avatar for fheppell

This php code updates a database entry. The form consists of a checkbox (name = download) and a hidden field so I can check it has actually been sumbitted(name = updated). When I run this code it gives me the success message but the database remains unchanged. Why is this? …

Member Avatar for fheppell
0
164
Member Avatar for OdinSmasher
Member Avatar for fheppell

I have a snippet of mysql which is filled in with two variables: SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' The `$url` variable comes directly from a URL variable. This input should only ever contain alphanumeric characters, if this helps. Thanks for any help

Member Avatar for fheppell
0
213
Member Avatar for fheppell

I've got a mysql query that should return a single cell SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' How would I echo the result of this? Thanks for any help

Member Avatar for minitauros
0
240
Member Avatar for fheppell

I've got an upload script that generates some stuff in relation to uploads eg File foo.jpg uploaded succesfully<br /> File bar.tiff failed to upload! ... This is all part of a variable called `$message`. How could I pass this to another php script? Thanks for any help

Member Avatar for fheppell
0
200
Member Avatar for fheppell

I've made this table for my web app, which shows a list of images: http://f.cl.ly/items/0B2d0y2d241v1J0a0D1N/Screen%20Shot%202013-05-12%20at%2016.11.32.png How do I vertically center the items in the table? Thanks for any help

Member Avatar for crescendo
0
145
Member Avatar for fheppell

I need to make a forgotten password system, which works like this * User puts email in * Email sent to user with a link * Link goes to a one time page which allows the user to change their password I understand about php mail() but haven't got the …

Member Avatar for Squidge
0
195
Member Avatar for fheppell

I'm trying to find the errors in this sql statement INSERT INTO images(user, server, img-name, download, download-url, image-loc) VALUES(test@test.com, 3, Penguins.jpg, no, GaNfT, 69Z8PwE0uJLfRNDijPenguins.jpg) I also have an auto increment column but as I understand it you shoudln't supply a value It comes out with this error You have an …

Member Avatar for fheppell
0
270
Member Avatar for fheppell

I've written this code that takes two variables via POST. Some file and a checkbox to say whether the image can be downloaded. I then have this processing code to upload multiple files: <?php require_once('Connections/koding1.php'); if(isset($_FILES['file']['tmp_name'])) { // Number of uploaded files $num_files = count($_FILES['file']['tmp_name']); /** loop through the array …

Member Avatar for fheppell
0
194
Member Avatar for scarletfire
Member Avatar for florent99

The message you got, where did it come from. Could you send a screenshot? (Use the print screen key then paste it in a word doc and upload)

Member Avatar for jithinjohny
0
84
Member Avatar for minata

First of all read this http://botcrawl.com/how-to-remove-the-easy-life-app-virus/ Please note the part that says: > It has been reported that search results displayed by search.easylifeapp.com may contain links to malicious and/or suspicious websites, with a history of hosting malware, and or participating in unethical tactics.

Member Avatar for fheppell
-4
237
Member Avatar for fheppell

I've run this code to generate two encrypted passwords from a plaintext password echo crypt("TestingTesting123"); echo "<br />"; echo crypt("TestingTesting123"); The two strings are identical but when I run it I get this output $1$/PGpeshL$UhmiaU/jlaJTWZV8g7Ze4/ $1$MnRnzohZ$zh9VpHPOwYejI.XR76vmC/ Some people have reccomended crypt() as a good password encryptor, but how are you …

Member Avatar for annaharris
0
185

The End.