Jump to content
xisto Community

Houdini

Members
  • Content Count

    565
  • Joined

  • Last visited

Everything posted by Houdini

  1. You do not need XAMPP or WAMP (both are installation tools) but you do need the PHP executable for PHP Designer to be able to debug the script. HTML Kit will not do this but PHP Designer does. If you do not have a webserver with PHP and you are trying to write and test PHP you will not get anywhere with any kind of editor. PHP is a server side language meaning that to use it you must have a server that has PHP installed on it. Unlike HTML where you can just double click the file and it will open your default browser with PHP you must have a server running and use a URL to access it. Normally on your PC the servers address will be localhost (or the name of your computer) or if you use an IP address it would be 127.0.0.1. So to run the default index page on your local PC you would open your browser and type into the address bar LOCALHOST/ or http://forums.xisto.com/no_longer_exists/ and what ever is the index page will display.
  2. Well under normal circumstance the code you have would work, but as written the variable 'action' is a POST variable. so to pass the hidden field variable 'action' you would have to change your code to method-'get' like the below. <?php echo "<form action='blah.php' method='get'><input type='hidden' name='action' value='login'>";echo "<input type='submit'></form>";?>then use the following to access the variable blah.php <?php echo $_GET['action'];?>Does that help answer your question?
  3. Here is an interesting link (that some people say is a MYTH) about those scientist that say that Global warming is a crock of poo poo. Read this link Scientists that refute the Global Warming Theory. There are now about 17,200 that have signed this petition, and if you read the entire article then you will see that any one of them has forgotten more about the climate of the world than Al Gore has or will ever know. Do not believe his propaganda in the slide show (they call it a movie) An Inconvienient Truth (an inconsistent truth), and really don't even watse your money for such tripe, just because you try to convincengly state something a fact it does not make.
  4. If this is what you typed it wont find the file it is xampp NOT xammp
  5. Well you could always right click the logo and save the logo (like I did) and play areound with it. That ought to give you something to play around with. It is their logo after all.
  6. The most commonly searched terms are those that relate to pornography!This while sad is just what the internet is used for , then probably after that I would say it is gambling or poker related or possibly medicine of one sort or another, like Viagra.
  7. The reason that the foam broke off the heat shield was because trying to satisfy those that had environmental concerns complained about the use of CFCs in the foam that had been used to ally the tiles. These were changed to satisfy those requirements and you will never read about this because it hurts the environment wackos thoeries, and it could never be revealed that using a different environmentally friendly method and material to apply the foam and tile is actually what caused the failure and deaths of all aboard that craft. It is my belief that if we continue to listen to those environmental wackos that we will all end up riding bicycles or tricycles to our jobs (shich would have to be near our homes lessening opportunities for all). Wearing lots of clothing in the winter (even to bed, with lots of cover) cause you probably can't build a fire to try and stay warm, and you can only eat vegetables berries and fruits that grow really close by (probably have to have your own garden) cause there would be no trucks or trains, or aircraft. You would never go on vacation cause it is too hard to pedal a bicycle especially with any luggage to far. This is course just my opinion, but I believe we need to try and try and protect the environment , but don't take it to extremes. Cars, trucks, aiorcraft, buses, heavy equipment and all are necessary to have a decent lifestyle.
  8. So now the only problem you should encounter is when the Xisto server is down, which is not very often, but it does happen. I know I have had this happen, and just came back later and then it worked. I love FileZilla even have FileZilla FTP server on my local PC (comes with XAMPP) but don't use it but have used the mercury mail server which is not that easy to set up but fun to play around with.
  9. PHP Designer is really great for finding little things like that, basically if your comment is not orangish in color then something is wrong. Just one forward slash / is not a comment (unless you follow it with either a * or another /. For checking code that others have written I just copy and paste into PHP Designer and can find many if not all flaws in code visually just by the highlighting within PHP Designer.
  10. He could have also had a golf club in his hand and been under aree wearing a copper or even better a bunch of gold braclets and necklaces with copper shoes, then he really would have been messup if not blown to smithereens.
  11. This is not true of variables, and CONSTANTS are usually written in all uppercase to let you see easily that they are Constants. However a Constant is DEFINED either as lowercase or uppercase it is not called with a $ in front of it. define ("AGE","29");echo AGE;//prints 29 to screen every time it is usedRules that apply to variables Begin with a $ Can be any length Can include letters, numbers and underscores They must begin with either a letter or an underscore Upper and lowercase are NOT the Same Now while you can define a constant with any combination of letter casing using does matter when you use them <?phpdefine ("AGE","29");define ("age","42");echo AGE."<br />";//29echo age."<br />";//43echo "Age is ".Age;//will print Age is Ageecho "<br />AGE is ".AGE;//wil print AGE is 29echo "<br />age is ".age;//will print age is 42?>
  12. There are two ways to 'fix' this. One change this define("HOST", "$localhost"); // define host name (default: localhost)define("USER", "$lonebyrd_razmo"); // define database usernamedefine("PASSWORD", "$****"); // define database passworddefine("DATABASE", "$lonebyrd_ftv"); // define database nameto define("HOST", "$db_host"); // define host name (default: localhost)define("USER", "$db_username"); // define database usernamedefine("PASSWORD", "$****"); // define database passworddefine("DATABASE", "$lonebyrd_ftv"); // define database nameor two (one is preferable) define("HOST", "localhost"); // define host name (default: localhost)define("USER", "lonebyrd_razmo"); // define database usernamedefine("PASSWORD", "****"); // define database passworddefine("DATABASE", "lonebyrd_ftv"); // define database name
  13. Look at your own code here: $host, $password, and $user have no values this is what caused the error either change this $Host = "localhost"; // define host name (default: localhost)$User = "$lonebyrd_razmo"; // define database username$Password = "$****"; // define database password$Database = "$lonebyrd_ftv"; // define database nameto this $host = "localhost"; // define host name (default: localhost)$user = "$lonebyrd_razmo"; // define database username$password = "$****"; // define database password$database = "$lonebyrd_ftv"; // define database nameor change this mysql_connect($host, $user, $password) or die (mysql_error());mysql_select_db($database) or die (mysql_error());to this mysql_connect($Host, $User, $Password) or die (mysql_error());mysql_select_db($Database) or die (mysql_error());Variables in PHP or in most other languages are case sensitive so $Host is not the same as $host or $HOST or anyother combination of lower or uppercase.
  14. A Content Management System does just that, it manages content, like news or a forum, or even games if you have them also. This is the purpose of content management to make it easier for the administration of users various forms of content. You can try out many CMS systems and play around with them to see which ones you are interested in.Even with just a 15meg site you can set up a modified bare bones CMS. Some come with modules and features that you will not use. When you have 150 meg then that is not as important. Try doing a search for CMS tryout and you should find a site with most of the open source ones that will give you a link with a username and password to allow you to test run a working CMS>
  15. Actually it is just a matter of personal preferences (at least as far as free forum software). If you have the financial means to do so or are able to text out some paid sofware then the best solution would be to first try out all the forum software that is available. The first one I tried actually was Invision and then Mersury ( which might be Quicksilver) of course this was 1998 1999 and they were fairly new and not as developed as they are now.Then later I retried Mercury, and Invision was still free (until I think September 2004) I also tried PunBB Yabb (now SMF) SMF phpBB2 and someother little known BBS. They all have their own merits, either speed or ease of install, or features built in, ease of set up, options available, skins available, ease of modification and really the only way to determine this is to try them all until you find one you are comfortable with. phpBB has just come out with the phpBB3-Beta which I have and installed but for some reason I need to keep relogging in as admin and my changes do not take effect (it could be a bug, or I might neeed to reinstall it I just don't know) but it is a major change with more feature for the administrator but so far not working out too well).So just try different ones out and determine for your self the one you like the most would be the best way to make such a personal decision.
  16. While shopping for printers a year or so ago to replace the one my little sister had (that croaked), I started looking at the various deals that were at Wal-Mart. Then I found that with some of these printer it would actaully be a better deal to throw away the old one when the ink ran out and just for a little more than the cost of replacement ink you could just buy another printer. Cables are no problem, I have some USB from older printers that I tossed, and usually have one for printing just text in balck and white and onter for stuff like a fax machine, copier and scanner. I also used to be a data technician and came across cables all the time, which I saved and always have at least two or more of just about any cable you might need, actually a drawer full of all sorts of cable including fibre optic. Hopefully at least the printer came with a powercord and ink.
  17. In ten years give your attitude of NOISE (also referred to as Rap, which rhmes with something that belongs in the toilet) Elvis, the Beatles, Chuck Berry, Fats Domino, and even the Beach Boys will still be selling songs long after the Rap fad is over.
  18. Rap is not music it is noise with some body hollering obscenities and cutting down women, calling women name that are not flattering, talking to a beat of too much loudnees, if louder is better then the more earsplitting the beat is then it is a masterpiece, at least until you can hear anything anymore, but don't worry about that cause if you follow the stuff they portray in this kind of noise then soon you will be dead long before deafness sets in. Guns, rape, sodomy, killing cops, killing in general and all that is not uplofting at all and is basically stupid.
  19. First you need to be a little more specific. You need to be hosted somewhere where they offer a cPanel. I am not certain what your problem is because you can not have a page unless you ftp'd your page to a server. Your page is one thing and xPanel is an interface for users to manage files and databses with. a page is just that a page, they are two entirely different things.
  20. Astahost offers free hosting to those that post within its forums, and this the the forums that you must post on to maintain or aquire this hosting. You need to build credits to the account and if maintained by posting then your hosted account will stay active.
  21. Here's my Add a Forum to your site tut. Download phpBB2 Create a new database Upload the unzipped forum to your server Run the install Enter your new forum as admin and set it up Add a few new posts to your new forums Author: Me
  22. There are in fact lasers that can be used as weapons, however the stage of development right now make them too large and power consuming. There is however in Research and Development some interesting projects with Companies like Raytheon TRW Lookheed Martin and Grumman. Here is a link to some information about lasers weapons. Keep in mind that projects like this are in fact classified, so it is entirely possible that there already are such weapons but you will never find out about them because the security of our country would be at stake. Part of my job in the U.S. Navy was to train pilots and air crews for the delivery of a nuclear weapon, we conducted these session once a month. My clearance was Secret which means that I had access to 'Need to know' classified information. We had systems that at the time I was in the service that are just now being introduced to the commercial market like the HUD (or heads up display) one of our firing systems for an attack aircraft or fighter jet allowed the pilot to merely look at the target and when ready he just hit the 'pickle' (our name for the firing button) and kaboom went the target, this was in the mid 1970s. You can be sure that there are Defence contractors that are working on all sorts of things that you will never ever hear about or see, unless perhaps you might be trying to attack the US and become the unlucky recipient of a classified weapon or weapons system.
  23. Reply-To: Cc: Bcc: and such would go into the additional headers for mail. From the manual: so it would look something like this; Note this is also from the Manual. A great page to bookmark or save as a favorite.
  24. I said this before in an earlier post. I was alive in 1969 and was 16 years old so that lets you know my age (yes I am now 53 years old and a grandfather). The Moon landing was broadcast live (well sort of the technology was not that fast a TTY recieved and transmitted at 55 baud not 56,000 baud like a cheap dialup modem nowdays). The conspirators will say hey the flag was waving or something else like that. What is not stated is that NASA set up a mock moon surface in the desert to train the astronauts prior to their mission including wearing their suits and all that and there were photographs taken, and some of these photographs have been used not mentioning where they were actually taken, and basically are out of context. The moon landing was real it happened and the Untied States actually did it on live Crappy Black and white Television. The USSR did not because they had not developed the technology to the point of being able to do so. It was called the "Space Race" and we won and still hold the record. Here see for your self some footage of the filght and landing. View this link here First Moon Landing July 20 1969 Now if you would like more links then try this Wikipedia link
  25. I read the one mail() tutorial that was posted in the tutorial section and to my horror found that he had quoted almost verbatim from the PHP Manual off php.net, and made a comment about it, and also found that if you were new to PHP or the Manual that it was informative but not indepth enough for my tastes. This is not a tutorial although with the code that will be posted it might look like one, that is not its intent or purpose. I have searched and found many so called tutorials about MIME mail and boundries and all that but basically it either told me to use PHPMailer which I have but I want to write and customise my very own code not somebody elses. So after much research and attempts to find such, one day I got a lucky brack when a user posed an MIM mail query on DevShed. I took his code and altered it to suit my own needs. When you send mail normally it will be MIM if using Outlook, Outlook Express, Messenger, Thunderbird or Eudora it is sent as Content-Type: multipart/mixed and has boundries between all the parts including attachments, which also must be read into the mail and encoded with base64 encoding. With this in mind you will have to structure your mail to donform to the requirements of MIME mail. Of course you will need to use at least one of the allowed additional two parameters of the mail() function. Now actually putting all this together will be much more complex than sending a plain text file using just the below mail($to,$subject,$message,$headers); So I am going to show the code and see what others think. Feel free to use and test this code your self and make improvements and suggestions. mimemail.php <?php ########################################################################################### ### An email script that will attach images inline in an HTML and plain text e-mail ### ### Just enter you own email infomation and file names with paths where indicated in ### ### the script. Have fun with it alter it add to it or whatever you want. When you are ### ### done reading all the confusing tutorials about this kind of using mail to send your ### ### own without PHPmailer then you can just use this file to suit your self. ### ########################################################################################### $headers = "From: Me <me@email.com>";//put you own stuff here or use a variable $to = 'someone@email.com';// same as above $subject = 'Testing Inline attachment HTML Emails';//your own stuff goes here $html ="<img src='beerchug.gif'><br /><br /> <b>This</b> is HTML <span style='background:cyan'>and this is a cyan highlight</span> <br />So this should be a new line.<br /><br />This should be a new line with a space between the above. <br />Here's dead Al<br><img src='DeadAl.jpg'><br />He is dead in this photo!<br />This is a martyr, well OK then I think I will pass on looking like that all blowed up and all.<br /><br />So much for being a martyr!<br /> He's just another dead terrorist in the pile of the others ... ougggh nooooo!";//make up your own html or use an include //the below is your own plain text message (all the $message(x)) $message0 = 'Dear valued customer,';// or make up your own for plain text message $message1 = 'NukeXtra just released our new search engine optimisation (SEO) services. We have exciting new packages from Cost-Per-Click (CPC, Paid advertising) to specialised optimization of your website by a designated SEO campaign manager.'; $message2 = 'Studies have proven that top placement in search engines, among other forms of online marketing, provide a more favourable return on investment compared to traditional forms of advertising such as, email marketing, radio commercials and television.'; $message3 = 'Search engine optimization is the ONLY fool proof method to earning guaranteed Top 10 search engine placement.'; $message4 = '95% of monthly Internet users utilize search engines to find and access websites'; $message5 = 'Attached is the NukeXtra SEO & CPC packages guide for your information.'; $message6 = 'If you have any questions or are interested in proceeding with our SEO services, please do not hesitate to contact us.'; $message7 = 'I look forward to this opportunity for us to work together.'; $message8 = 'With Kindest regards,'; $message9 = 'Someone'; $message10 = 'PHP Web Programmer'; $message11 = 'NukeXtra - stevedemarcus@ahost.com - [url="http://dhost.info/content/view/104/;"]http&; ; $message12 = '218 Some Court<br />Somewhere, ST 55555'; $message12 = 'Tel: (xxx)-xxx-xxx | Fax: {xxx)-xxx-xxxx'; //Now lets set up some attachments (two in this case) //first file to attach $fileatt2 = '../images/beerchug.gif';//put the relative path to the file here on your server $fileatt_name2 = 'beerchug.gif';//just the name of the file here $fileatt_type2 = filetype($fileatt2); $file2 = fopen($fileatt2,'rb'); $data2 = fread($file2,filesize($fileatt2)); fclose($file2); //another file to attach $fileatt = 'DeadAl.jpg';//relative path to image two and more (this one is in the same directory) $fileatt_name = 'DeadAl.jpg';//just the name of the file $fileatt_type = filetype($fileatt); $file = fopen($fileatt,'rb'); $data = fread($file,filesize($fileatt)); fclose($file); // Generate a boundary string that is unique $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/alternative;\n" . " boundary=\"{$mime_boundary}\""; $message = "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . "<font face=Arial>" . $html."\r\n"; $message .= "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message0 . "\n\n" . $message1 . "\n\n" . $message2 . "\n\n" . $message3 . "\n\n" . $message4 . "\n\n" . $message5 . "\n\n" . $message6 . "\n\n" . $message7 . "\n\n" . $message8 . "\n\n" . $message9 . "\n" . $message10 . "\n" . $message11 . "\n" . $message12 . "\n\n"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; // Base64 encode the file data $data2 = chunk_split(base64_encode($data2)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" . "Content-Type: image/gif;\n" . // {$fileatt_type} " name=\"{$fileatt_name2}\"\n" . "Content-Disposition: inline;\n" . " filename=\"{$fileatt_name2}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data2 . "\n\n" . "--{$mime_boundary}--\n"; // Add another file attachment to the message as many as you have $data = chunk_split(base64_encode($data)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" . "Content-Type: image/jpg;\n" . // {$fileatt_type} " name=\"{$fileatt_name}\"\n" . "Content-Disposition: inline;\n" . " filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; // Send the message $send = mail($to, $subject, $message, $headers); if ($send) { echo "<p>Email Sent to intended recipients successfully!</p>"; } else { echo "<p>Mail could not be sent. You missed something in the script. Sorry!</p>"; } ?> Play around with the code and if you have more then post it here. I have struggled with such stuff for the last couple of weeks, since I usually just use my e-mail client, but now want and have a need to create by own without using PHPMailer. Hope that those that are wanting the ability to do such will find this of use. Also if you don't want to use the attachments inline just change the "Content-Disposition: inline;\n" . to "Content-Disposition: attachment;\n" .
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.