Jump to content

atravotum

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

About atravotum

  • Birthday 06/26/1987

Contact Methods

  • Website URL
    http://www.thedemonsplayground.com

Profile Information

  • Gender
    Male

atravotum's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If its in a database as a post then to the best of my knowledge its been stripped of its previous html format. You would have to write a function that runs through the post, looks for a particular string say http://www.blah.com, omits it and replaces it with your html tag upon printing to the screen. There are a variety of string functions in php that could do this pretty painlessly.
  2. Hmm I wish I had a direct answer for you, however I do have a far fetched idea. When I was coding the mail function I had this... $to = $_POST["to"]; $from = $_POST["from"] . "\r\n"; $subject = $_POST["subject"]; $message = $_POST["message"]; $headers = "From: $from"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail($to,$subject,$message,$headers); The only difference in our two scripts is I create the mime, and content type last, you pile stuff on after it. Try calling that last and see what you get, just a thought.
  3. Hmm I'm not quite sure on some of the code you have, its not code I have used however... If I had to take an educated guess you should be able to put replace your for each loop, with the while loop i gave you. Since they both aim to accomplish the same task.
  4. This topic is getting heated. Just a small note though, Almost 99% of the time designing a website to be pixel perfect is a very bad idea. There is not to many ways to guarantee your viewer is going to see it as perfectly aligned as you have it :/. The whole key to your site is to make sure everyone is able to view it accurately, rather it be odd ball screen resolutions, or outdated browsers you have never even heard of. If your a business and some 80yr old man goes to your site and cant find the checkout button cause you made it pixel perfect and he has a screen res not even existent today you just lost business.
  5. I think this is what your aiming for //Process to pull the data from a file, one line at a time. Then checks if the line has data, if it does send it to be processed and stored. $file=fopen($file_temp,"r")or exit("Unable to open file!"); $i=0; while(!feof($file)) { $strings[$i]=fgets($file); if((trim($strings[$i]) != "") && $strings[$i] != NULL) { echo $strings[$i]; } $i++; } fclose($file); Thats a piece of code i used to pull data from a csv file line by line store it to an array throw it into a function to handle the commas and return the separated value. Hope it helps!
  6. Session start needs to be at the top of the page
  7. Im going to have to take guilty's side on this one film god. There is absolutely no reason not to use tools given to you. Making more work for yourself is hard enough. Copy and pasting is nowhere near as proficient as using say Visual web developer to literally create your pages for you every new file. That would be like me saying "No its much easier to type this to you in binary what use would i have for a keyboard." Get to a level where you do this for a living and need to produce high quality work in a time crunch and you will find tools work a lot better. There is nothing wrong with hard coding when you have to (most server side languages you will, most scripts your write you will). But when your designing a site that has scripts you need to hard code why not punch the GUI out the way quick and easy? Not to mention does your notepad do a browser or cross platform check? Theres time lost, does it have a built in color wheel when you need to hit the right shade? Theres time lost, does it auto tag things for you? Theres more time lost, does notepad publish your site for you? Nope more time lost....
  8. I'm not trying to top on the negative here however... The design def needs some work. My first thought was front page editor. While I am still new to web design (sorta) I work with web pages all day. Trouble shoot them really, I see a lot of template driven site, and that looks very template driven. There is not to much dynamic to it. Also as a graphic designer your site is going to say worlds about you. Imagine when you go to buy a car lets say. If you walk up and the owner of the car is driving a beat up pinto whats the first thing thats going to run through your mind? Your website IS YOUR BUSINESS CARD point blank. From my point of view at work I get to take a unbiased look at a lot of sites. My job again is to analyze and troubleshoot. Statics show most common readers will not stay longer then 7 seconds on your page unless you can hook them before that. Your content HAS TO BE CLEAR AND APPARENT. The site has to be pleasing to the eyes, or no one will want to sift through it. Also to a point I agree a portfolio should contain work others may find relevant however it should as stated above still only contain your best work. The portfolio is a section of your accomplishments, putting anything undone, or half done well says to customers "Hey I don't finish things, or I do not give it my all". I am not trying to be harsh (seems to be a theme on this topic). But you asked for honest opinions, I would say try to take this project from a more professional stand point. Be your worst critic you will come a lot further!
  9. Well yes it can, but it can assign values to variables within classes as well. Consider it sorta like " 's ". So dog -> bark() would be like saying dog's bark function. Or dog -> health = 20; Would be like saying Dog's health equals 20. So it is really just to access code more or less within an object or in this case a class.
  10. lol sorry, i was assuming that was a given
  11. I actually read through it to compile the example for you. I have used it in c++ before for pointers i think but that was while ago. The cool thing about classes is you can create new ones on the fly. So if you were making like a pet program to train them you could copy the dog class on the fly and assign it an instance so it can hold variables like health, and weight, and be separate from the other instances of the dog classes. Thats the cool thing about oop (object orientated programming).
  12. To further that point say you had a class named dog. You could code functions within dog like say bark. So if you wanted to call bark you would use that sign example class Dog { public function bark() { echo "Roof!"; } } //Then to call it you would say $dog -> bark(); This would echo "Roof!";
  13. I was actually wondering that myself
  14. There not to much different then tables really. <div style="overflow:scroll;">Content Here</div> That would give you a div that will scroll. Div layers are good cause you can target them with CSS easily, and create ones that scroll both directions, only 1 direction. Can position them practically anywhere. I would google it if your interested. Might make your project a bit easier.
×
×
  • 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.