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. Talking just php that will depend what php version had installed and what functions are used in your code. See the differences depending your versions. http://php.net/manual/en/appendices.php On that page is the migration differences. http://php.net/manual/en/migration56.php http://php.net/manual/en/migration55.php http://php.net/manual/en/migration54.php and so on...
  11. I see, you want to allow a user or yourself to post their channel and they collect on your site? Let me say in a nutshell that lots changed since the api version 2 was deprecated, most everything youtube wants you to access through api version 3. Youtube no longer supports the old feeds as of April 2015 https://docs.google.com/presentation/d/1ZBCl6MGc4-JZYVbaq0z-CB8Uxh3nzgkOmMOVkM5eCdQ/edit?pli=1#slide=id.g9ca1da998_0_4 Feedburner will throw errors on many feeds. Here is a good example. https://www.youtube.com/user/JimmyKimmelLive https://www.youtube.com/feeds/videos.xml?channel_id=JimmyKimmelLive It's actually this that can find in the source of the page. https://www.youtube.com/feeds/videos.xml?channel_id=UCa6vGFO9ty8v5KZJXQxdhaw <link rel="alternate" type="application/rss+xml" title="RSS" href="https://www.youtube.com/feeds/videos.xml?channel_id=UCa6vGFO9ty8v5KZJXQxdhaw"> There is still a few ways can go about it. If the channel is a vanity url, have to visit the page and discover the actual url, the feed url is in the source of the page. Something like simplepie can discover the new url and get this content. Alternately you can extract user,video or playlist id's and visit them directly with following types of urls I have below. Parse it with dom, simplexml is the best bet, although you can scrape the page other methods like curl/file_get_contents, preg_match user channel feed: https://www.youtube.com/feeds/videos.xml?channel_id=UC-rYhqY2vWalkWSPGhYFZHA playlist feed: https://www.youtube.com/feeds/videos.xml?playlist_id=PLs4hTtftqnlDb1HQ1cbYkwyVTB5X3p7v5
  12. Make your own feed for your site.
  13. In your php.ini file set your date.timezone =(your timezone) http://www.php.net/manual/en/timezones.php
  14. To try and do what you want need to use js/ajax or jquery. Php can not communicate with the javascript because is processed client side in the browser after the php script is completed. So this needs to send the data and be redirected back for php to see it.
  15. Seems your issue is a timeout though. If that's true are trying to do too much work..or have to increase memory or timeout limits on the server, that's if the server will not puke doing the work. That's why I suggested a different approach and baby steps, query just the data you need with limited results and store it, then do the next set. Do you have proper indexing on the columns? , that could speed it up.
  16. If you don't get the answer you were seeking just be more specific as you just did, nobody said to search for anything. Doing it in chunks in a single script is still "all at one time" as far as the php script is concerned. I saw a lot of people trying to help, information and advice "should" be help. When people come here looking for help is no badge next to their names stating their coding levels, at times merely telling them how gets them on the right track....sometimes not. We volunteer our free time here to help others...honestly, not kidding.
  17. I've use text based files for some projects just because mysql was overloaded to begin with. They were very specific though. Databases have many more advantages over flat file systems. I would even say at least try a nosql solution versus trying to do it this way. But to answer your question do it by the files date. filectime fileatime filemtime If you have them in an array can use ksort or any other sort function you require.
  18. Not stumping anyone, all the solutions are in the post. If you have a ton of records refresh the script with a header or meta refresh, or set a cron job, limit your results and this will get completed. Don't beat your head against the wall trying to do this all in one go.
  19. Create a new table. Fetch only the desired results you want. Insert the results from that query or do an Insert/Select in one query.
  20. Sorry to hear that, is a rough thing for sure. People change and sometimes do what they want and have no control over it. One day she may regret it and try to get together again, you may even forgive her. Some confuse different and new as being better and end up realizing they already had the best. You have your daughter that can pass all that love onto, be strong for her.
  21. For the answering system, the original poster is capable of marking their own response and gets shown as the best answer. Would be nice if the user can not mark their own. When multiple people are helping it does not reflect the others that helped.....so the "best answer" could not be the complete solution. Not sure if these are modules/plugins or custom coding, something better would be nice, like voting up and down.
  22. 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.
  23. 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/
  24. It could be the use of short tags <? ?>, use full <?php ?> tags http://php.net/manual/en/language.basic-syntax.phptags.php
  25. I would just do as a deactivation with option to reactivate. It seems there could be workarounds as in cheating to your system? Not to say someone can come in with a fresh ip,user name and email and start over. For the record I made an account when facebook first started just so a person could not use my name, I deleted the account a short while after, just recently I was able to log back in and use the same account, so was not deleted as they claimed.
×
×
  • 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.