Jump to content

txmedic03

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by txmedic03

  1. [!--quoteo(post=362493:date=Apr 7 2006, 06:52 AM:name=HostFreak)--][div class=\'quotetop\']QUOTE(HostFreak @ Apr 7 2006, 06:52 AM) [snapback]362493[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hey, thanks for your reply Barand. I have pm'd you the code. [/quote] The whole point is to post the problematic code, minus any sensitive information of course, and get input from all members that come across your post. Perhaps Barand has an answer that will work, in fact I am fairly confident this is the case, but perhaps someone else has a better one or may see something that both of you over look. Posting the code keeps you from having to PM multiple people with your code and it keeps people from having an inbox full of code. I know I would just delete it if someone starting PMing me code unless I specifically asked them to PM it to me.
  2. [code]if (file_exists('photo/'.$_SESSION['photo'])) {    unlink('photo/'.$_SESSION['photo']) or die("Unlink problem!");   echo "File removed successfully."; } else {   echo "Someone beat me to it.  The file does not exist."; }[/code] This might help. Also you can't unlink a file on a remote server. You must use relative paths, so no unlink('http://myserver.com/filename'). Check Appendix M on the [a href=\"http://www.php.net\" target=\"_blank\"]http://www.php.net[/a] site for more information. Let us know if you have any further problems.
  3. [!--quoteo(post=362483:date=Apr 7 2006, 06:17 AM:name=jcombs_31)--][div class=\'quotetop\']QUOTE(jcombs_31 @ Apr 7 2006, 06:17 AM) [snapback]362483[/snapback][/div][div class=\'quotemain\'][!--quotec--] why's that? [/quote] Well simply put. For the quality of work we see on the design company's own site, $285 is WAY more than a three page site is worth.
  4. Well a PHP script requires a request to run it can't just be set to execute itself at intervals. Someone has to send an http/https request to the server to start the script executing and then there is the 30 second time out, which you do not want to change, that you might exceed. My suggestion would be to write a VB/C++ application that crawls the site then uploads them to your server. You can build a small app that will execute on a time interval and crawl the pages looking for images that meet the criteria and replace/ignore multiple instances of the same image. This is of course if you are running a windows based system. If you are running linux you could probably just write a script or something and use cron to set it up on an interval. These are just the things I would look into. You could do what you are trying to do with PHP, but I am sure there is probably a better way. If you use PHP and linux you could setup a cron job to load the page on an interval to make it find and copy images.
  5. For future reference, this is an (x)HTML question. This has nothing to do with PHP.
  6. I would use MySQL instead of uploading text files. A nice interface with a MySQL database on back-end would do what you wanted for that anyway. I must ask what the reason is for downloading JPEG files from one server and placing them on another and do you have FTP access to the two servers? If you are just trying to crawl the site and grab images PHP may not be the choice for you, though it could do it. There are other methods that would probably work better in that case. Ultimately PHP can do what you have asked for.
  7. To me the layout seems as if it is not quite right and the graphics are not the clean professionalism that I would expect from a design company. I am of course refering to the logo image. Then there is the price that was previously meantioned...drugs are bad...don't do drugs...The audio behind the site is in poor taste.
  8. Sorry about that, didn't notice the dreamweaver help bit. I use the RSS feed and just look at the message title most times. I still say for this particular problem you can just as easily open the xhtml file in notepad insert the php and name it with php extension and be done, but I am biased against dreamweaver and all other WYSIWYG editors because I have yet to find one that formatted xhtml the way I want it done. I am very particular about my code.
  9. I'm not suggesting dropping dreamweaver because of one error. I'm suggesting dropping dreamweaver because it does not properly format xhtml and php. At least not in Dreamweaver MX.
  10. You could use a javascript/dhtml menu and use PHP to extract the information you need from the database and build the menu from that or look into AJAX, but I have not played with AJAX any so you are kind of on your own there.
  11. Well quit trying to use Dreamweaver to do PHP. Take what you already have and insert your PHP includes using notepad.
  12. Well you have posted this in the wrong forum. This is not the "We write custom scripts for free forum". If you want help then ask specific questions otherwise go to the Freelancing forum and hire someone to write the scripts for you. If you want a generic script that you can edit then go to [a href=\"http://www.hotscripts.com/PHP/Scripts_and_Programs/\" target=\"_blank\"]HotScripts.com[/a]. They have lots of pre-built PHP scripts and probably have one that will fit your needs.
  13. [!--quoteo(post=362055:date=Apr 5 2006, 04:44 PM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Apr 5 2006, 04:44 PM) [snapback]362055[/snapback][/div][div class=\'quotemain\'][!--quotec--] Um... what was the point of that post? That's already been posted. [/quote] Where?
  14. The reason the query, didn't work is as you have no realized because you didn't use mysql_query(), but do you understand what you actually did? What you did was define a variable the contents of which was a string. That string was a SQL statement, but you must actually do something with the statement hence the need for the mysql_query(). Saying $query = "SELECT * FROM table"; is no different than saying $myname = "James";. Now for the $link, $mysql and $query...those are just more variables and can be anything. You can use $myreallypoorlynamedvariable = mysql_connect();. It now holds the reference to the open database server connection. This works just the same as if you had used $link or $conn. [a href=\"http://www.php.net/manual/en/function.mysql-connect.php\" target=\"_blank\"]mysql_connect()[/a] [a href=\"http://www.php.net/manual/en/function.mysql-query.php\" target=\"_blank\"]mysql_query()[/a] What I meant was for you to go and read the mysql_ functions you needed to get a more complete understanding rather than someone telling you it was wrong and this is the correct way, but you not knowing why. If you don't fully understand something you can't expect to use it to its full potential. My comments aren't always meant to give you the answer on a silver platter.
  15. Try getting the md5 of the password you are sending to the table and get what is stored in the table and double check to make sure they are the same thing. If you used different encryption then they are not going to match and your login will of course fail. Check that then you can worry about the code being wrong.
  16. I believe this topic is better suited for "Core PHP Hacking", though, that forum could probably be better named. Personally I don't want to get into core modding because that means other servers will have to have my updated core before my scripts will work with their server and I figure if I have to change the existing core to make my scripts work then they are really too much trouble and not worth my time. If you want to make some good changes to it more power to you, but personally I am too busy to even begin to think about making core mods.
  17. I don't think you fully grasp the concept yet, but hopefully you are at least headed in the right general direction.
  18. [!--quoteo(post=361510:date=Apr 4 2006, 02:58 AM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 4 2006, 02:58 AM) [snapback]361510[/snapback][/div][div class=\'quotemain\'][!--quotec--] yes but if you're not bothered whether it's you who does the coding or not, get phpnuke or mambo and get the included forums and shoutbox. [/quote] Based on the original question I doubt they care who does the coding.
  19. It all still comes down to the fact that you can lead a horse to water, but you can't make him drink. Just because you put the information there for easy access doesn't mean that people will take advantage of it.
  20. I hate WYSIWYG HTML editors. They try to predict my code and they don't always properly conform to xhtml standards and on occasion I have had other odd problems. While I am trying to correct their mistakes I could already be working on another file. Then of course I've been at this for quite a number of years, and I am fairly comfortable with the syntax and a plain text editor and I am very particular about my code and the format of it.
  21. Now you have three examples. lol...Anyone else think of some more?
  22. And for the question about dreamweaver, no. Dreamweaver is for design not scripting. If you want to write PHP use a text editor like notepad, gedit, kate, etc...If you want to write 100% standard compliant xhtml refer to a reference manual and use on of the previously meantioned text editors. If you are absolutely clueless about xhtml and PHP and really don't care then dreamweaver is an excellent tool. Other than that I totally agree with footballkid4.
  23. Scrolls inside of scrolls...that has got to go. Either make the page fit into a single window or do away with the inner scroll. Secondly iframes?!?! Frames are bad. I don't linger on any frames page longer than it takes me to click the back button. Now if you insist on using these things then [code]<a href="#" target="iframe">Link</a> <iframe name="iframe" id="iframe" src="news.html"></iframe>[/code] or [code]<a href="#" onClick="top.iframe.location.href = 'http://www.google.com'; return null;">Google</a> <iframe name="iframe" id="iframe" src="news.html"></iframe>[/code] I would use a div instead of the iframe and user overflow: auto. In the second example you could replace the # with the address to the page and the address to use in the iframe so the link would work even if the user does not have javascript enabled in their browser. [code]<? if ( isset($_GET['iframesrc']) ) {   $iframesrc = $_GET['iframesrc']; } else {   $iframesrc = "news.html"; } ?> <iframe src="<? echo $iframesrc; ?>"></iframe>[/code] Just some random thoughts on the matter.
  24. How about going to a second page which calls a fsock_open() to send the data to the paypal page and write the other data to the flat file and pull up the flash page. I'm really not sure exactly what you want to do with all of this, but you could use a socket connection to send the request to the pay pal server and possibly return the results back to the browser. I haven't used sockets under PHP very much or in quite some time for that matter. I used them a lot under other languages.
×
×
  • 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.