Jump to content

QuickOldCar

Staff Alumni
  • Posts

    2,972
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by QuickOldCar

  1. That site inserts a url in a post form, a script visits the url and saves the html as a local file, records saved in a database linking the url to html file.
  2. Not always possible if they check same domains or js redirects trying to prevent that. Some websites want to force users to use their own site directly. As for extracting the data, it's frowned upon and should get their permission or see if they have a feed or an api.
  3. Also read the comments. https://css-tricks.com/snippets/css/sticky-footer/
  4. include() the file/script
  5. set a height? Need to post the css and some example of the html are using, maybe a picture or explain what your goal is. You may need to use a page wrap container.
  6. IMG_FILTER_COLORIZE
  7. A lot of schools to advance your degree more don't even require a GMAT or GRE, also they claim not to care what the score is, but some use it for evaluation for acceptance. Some employer down the road may see it and judge you in the same manner. I suppose it matters what sort of score you get if it was worth it or not.
  8. Welcome, and it is a great place.
  9. Make sure the folder permissions are set so can access it. Also edit your apache configuration file, under the <directory> tag edit everything you see as "None" ... set it to "All" If you still have an issue in that same area try changing "Deny from all" to "Allow from all" Be sure to restart apache to see the changes
  10. In your php.ini file set your date.timezone =(your timezone) http://www.php.net/manual/en/timezones.php
  11. Sometimes I wish there was an agree/disagree versus the like, possibly with even a comment as to why. Especially when is bad advice...even if it's me giving such bad advice. I don't think it would be rude, but more accurate, maybe even promote more conversation or educate others as to why.
  12. If you want multiple page numbers and links need to get a theme with it built in or download a pagination plugin. Here is a tutorial to add it yourself into the theme if does not exist. http://www.wpexplorer.com/pagination-wordpress-theme/ A plugin that works. https://wordpress.org/plugins/wp-paginate/
  13. Welcome to the forum. Be sure to visit the php manual as it has all the current uses and plenty of information to read over.
  14. Welcome to the club Fastol.
  15. If I wanted my girlfriend to learn this I would walk her through the manual the same way I learned php, except she would have you to help and explain as well. http://php.net/manual/en/index.php Her asking any questions she is not fully understanding at the time is a good thing, promote that while teaching her. You don't always find out an answer if never ask the question. Spend more time going through and playing with functions and knowing what works better certain situations or know there is many options, be creative using a few together. http://php.net/manual/en/language.functions.php Can browse through some of the extensions and get even more ideas. http://php.net/manual/en/extensions.alphabetical.php Create along with her a "what did I learn so far" and store into a database. Making something useful gives a goal and sense of accomplishment. Math related are always fun right? Making forms and retrieving POST,GET,SERVER,REQUEST Uploading files or images Folder and file based functions Creating sessions and cookies, accessing them. Playing with many date functions and modifying them for display. Creating simple functions. Show how can echo within the function or return results. Adding multiple parameters. Explaining arrays and key values, different array types. foreach and for loops, accessing arrays. using various string manipulation functions how to concatenate and escape php/html database usage I posted a fairly long "do and don't" list for another member. http://forums.phpfreaks.com/topic/293447-echo-hello-world/?do=findComment&comment=1501111
  16. I do give you some credit, to think this all out and create it all in a day, top of that to share it. Good for you.
  17. I'd say so, lots of work to show a random image on a page with 2 buttons. To copy and host them is like image theft. loading a huge image isn't fun for many, I would hotlink from imgurl If I was to do such a project: simple image scraper using curl and php, most likely using dom and domxpath set a cron job to run the script scrape hyperlinks/alternately image tags and (match imgurl pattern if just want those, extract just the codes and normalize links the same for all imgurl) store full href links to expand upon this a day to other sites set a unique index on the url to prevent duplicates If the site scraping has adequate data just use their titles and or descriptions, otherwise go to the image source pages and obtain that data. In this case imgurl has all the opengraph meta data. I would hotlink from imgurl, cache smaller thumbnails and do a gallery in pagination or some lazy loader jquery or js/ajax If cached image exists load that...otherwise scale the image down or merely use css for a max width or height as a thumbnail. The frontend would be a mobile css design and more on the page than just a gallery.
  18. That is a vague question. Is many variables to them that could make them slower. By default they are fast. A big helper would be to cache the results or pages somehow. Optimize queries and create an index for the database. Only fetch data you are using Don't load lots of images or large ones, cache smaller thumbnail versions of them when can. Use gzip or any other compression for js and css Can test your pages out here and try to find out what is making it slow. http://tools.pingdom.com/fpt/
  19. That's why having it a string would be better, don't need to deal with these issues.
  20. It's said that char is 50% faster than varchar, I've never done any performance tests on it. Although if stored larger with varchar and the data is less, it will only use as large as the data is, so some space savings and room to breath, possible less problems (like if had a space and didn't trim, change in code,etc...).
  21. Stick with char(60) then, no sense doing as binary if is not binary data, would need to do string to binary conversions
  22. I use varchar(255) because mine vary in length If the values are always the same length go with char, if they will vary use varchar varchar will trim the spaces if is less characters than assigned, char will not and pad with spaces
  23. A tool for testing your htaccess rules online http://htaccess.madewithlove.be/
  24. I thought it would be a cool idea to have a member to member donation. Members could buy credits from this website using whatever payment method. 1 credit equals one US dollar The credits can be given to other members easily by clicking a donation button under their name. Would want to have a waiting period before a member can cash in the credits due to cancelled paypal and such.
  25. Smart programmers make computers not be dumb.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.