-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
This is not in a state to critique. It's not finished. You have a left column, right column and a header, thats about it. The fonts need work, the colours need work and some graphics would be nice. Oh, and what is this site even about? The homepage has just some random content on, what are you supposed to be logging in for? Some info on what the site is about somewhere would be nice.
-
please give unbiased review about site design
JonnoTheDev replied to keyur.delhi's topic in Website Critique
Personally, the distinct lack of colour doesn't go in your favour. It looks like i'm viewing on an old black & white tv set. The flash graphic on the landing homepage has no usefulness and probably increases the load time of the page, requiring plugins etc. In fact the landing homepage doesn't even need to exist. You should be straight into the content. As a service offering design, 3D graphics, animation, etc, this site offers little in creativity hence leaving the potential customer with little faith. Use more colour. Lose the flash or use flash sparingly to show off some of your work. Too much flash containing important content and you lose the search engines, bad move. Maybe go for a more modular approach, you have links in the top right, bottom left and left hand column that change on page views. Where am I supposed to go? -
Apple iPad: The Great Pooping Device (Pros and Cons)
JonnoTheDev replied to dealrocker's topic in Miscellaneous
I used to like Apple. In fact I wanted a macbook until I went into the Apple store and just saw how much one of these things cost. You could get the equivilent spec laptop for half the price. And if you wanted a wireless keyboard it was like £60 and £50 for a mouse. Get fu****! A friend of mine bought one and the power cable fucked up. He took it back along with the receipt and would they swap it, fuck no! They wanted the actual laptop brought in, and he had to book an appointment for them to run some diagnostic shit on it just to swap a faulty power lead, my god, are they for real! -
Apple iPad: The Great Pooping Device (Pros and Cons)
JonnoTheDev replied to dealrocker's topic in Miscellaneous
Apple fanboys will still be going through boxes of kleenex over pictures of this overpriced picture frame. Go get a fuckin laptop, with a proper keyboard. Its an iPhone for the blind. Well, you can surf the web like you have never experienced.. Well yeah, ive never had to line Steve Job's pockets with my cash to download shit just to view some flash website, and Internet on 3G. Dont get me started, I would rather stick pins in my eyes, it sucks! But you can buy a keyboard and it has a stand, yeah it will cost about £100 for both. Kiss my ass Jobs. -
I wouldn't say that is a fair response. eBay's features are not hard to re-create, although the logic in an auction system is somewhat tricky. The fact that eBay's development budget is so high is that their system has to cater for millions of users, span across thousands of servers, process billions of images, store billions of database records across god knows how many database servers and have a complete user API. So, if your client said they wanted xyz feature just like eBay does then you cannot say, well it cost eBay a million dollars to do that so how much do you want to pay.
-
Long before my friend! There wasn't a Windows 1.1 anyhow. http://www.worldofspectrum.org/ http://en.wikipedia.org/wiki/Commodore_64 Ah, the memories..
-
I was a ZX Spectrum man! I use it as a fuckin door-wedge now. The load screens used to give you epilepsy.
-
yo, burnside accept my request dude!
-
You are using the getimagesize() function within the scope of the function, so you have 2 options. 1. Get the image size outside of the function and pass the height & width in as parameters 2. Pass the minimum height and width into the function as parameters and ony get the function to perform a resize if the values are above the passed in values after using getimagesize(). If they arent just return false from the function.
-
You have an error in your SQL syntax - help!!
JonnoTheDev replied to runnerjp's topic in PHP Coding Help
What you have experienced is called SQL injection. They have used part of a SQL query as a url parameter. If your site was live they could have dropped the whole database. ALWAYS, ALWAYS, ALWAYS Escape Input & Filter Output! In other words never trust any data that comes from a url parameter, form input, cookie, etc. Look at php's functions to escape & filter data. i.e // strip any html tags $x = strip_tags($x); // escape for database insert $x = mysql_real_escape_string($x); // convert any special tags to their html entity $x = htmlentities($x); // look for certain characters and remove them $x = str_replace("bad word", "", $x); // check if the value is a number if(is_numeric($x)) { } // check if the value contains only letters if(ctype_alpha($x)) { } Search Google for tutorials on making data safe for the likes of database queries. -
Yes. If you detect the User agent as Googlebot then use a proper 301 redirect header. Not Javascript. Why do you need Google to follow this? Does it need indexing? Do you have a sitemap that Google can follow?
-
Wolfmother
-
Browser layout has absolutely nothing to do with php. The fact that it is a php file is irrelevant. The php part is parsed by the web server and the document is served as HTML. This is the same for any server side language. Your issue is with the CSS (cascading style sheet) document linked to the page. You need to work on the style.css file. You will get more help in the CSS board on this forum.
-
Yes, you are looking at their API for this. I'm not sure if there are any event triggers in Ebay where a user buys an item and it will poll your website, however the API will provide an interface to request information from your items listed on ebay. I guess you would set this up as a daily routine. i.e Request data for items listed on Ebay If item is sold, update quantity value in local database for matched product This is certainly not going to be a five minute install some script job. You are better getting involved in the Ebay developers community.
-
The simple fact is that your code is old and probably utilizes global variables which have been switched off since php 5. If your host has switched versions of php then this is your issue. You can re-activate using a .htacces file and adding the line: php_flag register_globals on However, this was stripped out of php for a reason. It is a massive security risk. For that reason you are probably better off having the site re-developed as finding all the global variables in your code and converting them could be a nightmare.
-
yeah, or to simplify: <?php // set counters initial value or use the value in the superglobal $counter = isset($_POST['counter']) ? $_POST['counter'] : 0; if($_POST['submitted']) { $counter++; $destChose = $_POST['destList']; $memChose = $_POST['memList']; $restChose = $_POST['restList']; } ?> <!-- form --> <?php print "You have submitted the form: ".$counter." times.<br />"; ?> <input type="hidden" name="counter" value="<?php print $counter; ?>" />
-
Welcome to the party batubolu.
-
You dont want to destroy the session value on the same page as you would just reset the counter. You could add a global function to all your other pages that will clean out session data that is no longer required. This is why I suggested to just use a hidden field in your form to hold the value of the counter if you don't want to work with sessions and just increment the $_POST['counter'] value. Forget about using session_destroy(). Also in your script speed is not a factor. You are talking microseconds.
-
dont get it. All i'm saying is that if you fomat the PC, reinstall everything its gonna take some time. All running OK and then boom, you get hit with another virus or the same virus. Are you just going to keep formatting the machine each time. Hell, we have about 12 windows PCs on the office network and never had to fomat one, know why, because the antivirus software is kept bang up to date - daily. We have clients coming in with pen drives, portable hard disks, cds / dvds that they make stick into one of our machines. Next thing the antivirus has detected all kinds of shit, and straight away I will say get that away from our machines, but hey I have never had a machine damaged or had to format anything. The network is clean as a whistle. Sure there are some viruses that are so good they will get past all the best defences you have in place and I have seen that happen, but until it does happen just make sure you keep you AV upto date, security updates, etc and you should be fine.
-
Just copy the following section $i++;/* Authentication type */$cfg['Servers'][$i]['auth_type'] = 'cookie';/* Server parameters */$cfg['Servers'][$i]['host'] = 'localhost';$cfg['Servers'][$i]['connect_type'] = 'tcp';$cfg['Servers'][$i]['compress'] = false;/* Select mysqli if your server has it */$cfg['Servers'][$i]['extension'] = 'mysql';/ And add underneath where your first server configuration ends i.e just above $cfg['ServerDefault'] = 1; Then add each servers details into the array as required. It actually states in the comments of the config.inc.php file how to setup multiple server connections.
-
Its just a condensed if else condition. Really it should be $_SESSION['counter'] = isset($_SESSION['counter']) ? $_SESSION['counter'] : 0; Basically, if $_SESSION['counter'] is set and has a value, then keep its value. If not set it's value to 0. When the submit button is pressed increment its value. However you must remember that you will need to destroy the session value somewhere. If a user left the page and then returned later the session value would still persist. Using a session is just one option. You could just use a hidden field within the form to keep the counters value persistent