Jump to content

zVirx

Members
  • Posts

    25
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zVirx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, i'am not quite sure thats the right place to post this topic but here it goes.. I'am searching for a way to send rich content like html, images, attachment, etc in email through php and implement the the bold, italic, img buttons in the form.. This could be manually coded but it will take a decent amount of time to do it i was searching for a script which already do this! i've recently found phpmailer but its object oriented so it won't work in php4 Any ideas, Thanks.
  2. Hello i recently found an image and spent hours to figure out what font is used with no result, heres the image: have tried every default windows font, even searched a few fonts on the net can't find it!! Any help would be much appreciated.
  3. That being an OOP approach or not.. is not the point for now ( it was just an example to show why a function folder is useless ), the point is a function folder doesn't need to exist if a class folder does. Guys this is turning into kinda angry conversation .. although my goal was purely educational so I'am signing out.
  4. looks like you misunderstood me i wasn't talking about the actual definition of class x{} and function y{}. i know there is a huge difference... i was saying.. having a class that handles your code for you, doesn't necessarily mean you need hand-made-functions because you could declare these inside the belonging specific class made for this kind of functions. For example: if you made a class that handles Members for your site ... you could declare all the handling member functions in there instead of having to include an external ( member.inc.php ) or w/e. Another misunderstanding =).. i was talking about hand-made-functions not the actual library functions, ofc you use those inside your class. Which is the reason a function folder doesn't makes sense to me my point is: If a class folder exist a function folder doesn't need to.. i could be wrong though, i would like to know why =|
  5. could you elaborate on that please... - classes contain (public, private, etc..) functions to be used later in an object of that class. - functions are plain functions to be included later in a script. The only way i think of is that you use (classes) if your coding in php5 and (functions) if your coding in php4 using both makes no sense to me :S
  6. Just wondering why you have (classes) and (functions) folders they are both the same thing, unless you mean classes in none OOP manner !
  7. I was thinking the same thing :S But thought no one would go through it. Umm thats true... Ok i'll go with the tokens instead. i was just concerned about the performance but i guess that wouldn't affect it that much. Thanks guys.
  8. Oh i was thinking of giving the unsubscribe script its own form... but that's actually better. One question though, there is no security issues with using the ID of the email instead of the token , is there ? so the link would look like: http://example.com/unsubscribe.php?email=john@doe.com&id=1 its just i don't want to overflow the database with hashes like this.
  9. Hello, i have an issue with the design of a news subscription script.. well here is the problem... It a news teller subscription script and its for anyone not necessary a user .. so it takes only the email: - Validate it . - Check if its already in the database. - Add it to the database. The issue if the one who subscribed wants to remove his subscription... that's another script that also takes only the email: - Validate it. - Check if its in the database. - Remove it from the database. Now anyone can remove any email form the database, by just typing a correct email that exist in the database in the un-subscription script. I can't find a proper way of validating the integrity of the input email. I was thinking maybe i could send him an email with an ID key, which he must use to un-subscribe his email ! .. but i don't know if that's the right way to go. What do you guys think, Thanks.
  10. I think this is what you need to get started, it offers books and examples of website made with css, and layout simple facts that every web developer/designer should know.
  11. Thats what i'am using i just did that so the site won't highlight the html code as php anyway, the problem didn't appear until i accessed my site through a proxy you see: - session_start() and DOCTYPE on localhost was OK - session_start() and DOCTYPE online was OK - session_start() and DOCTYPE online through a proxy was NOT OK.. it missed up the design because of the session_start() being the first line not the DOCTYPE so the browser/proxy treated the page as if there wasn't any DOCTYPE. weird :S
  12. Declaring a DOCTYPE of the page was causing the the page to have different margin size than a page with no DOCTYPE... which was the case with the session_start() it was as if the page had NO DOCTYPE.. so i just removed the DOCTYPE and tweaked the new margin codes and its all sorted now ! although i don't feel comfortable with a page that has no DOCTYPE but thats what is working right now so if anyone know a sloution with the DOCTYPE please tell me.. Thanks.
  13. it shows as: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> i even validate it on w3.org and it came out a valid xhtml 1.0 .. but the design is missed up exactly as if it were html 4.01 and i don't want to be thrown off by the session_start(), but when i delete that the design get back to normal >.>
  14. Hello, i have a problem with HTML DOCTYPE.. I made a page in XHTML 1.0 Transitional made the divs/css everything in XHTML 1.0 Transitional the page printed out just fine in a test.html but when i implemented it in php and declared session_start() at the beginning of the page <? session_start(); > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SiteName</title> <link href="main.css" rel="stylesheet" type="text/css" /> </head> <body> SITE </body> </html> it missed up all my divs/css design.. I suppose that session_start() missed up the header, so the browser can't read the DOCTYPE.. and it drops to HTML 4.01 Transitional Because i've made a test and tried to view the page without a DOCTYPE it was exactly missed up as it was with session_start(); which was HTML 4.01 Transitional Also my design get back to normal when i delete session_start() and make the DOCTYPE first thing at the page, But then i don't have sessions. anyone encounter this problem ? how can i fix it ! should i recode the design in HTML 4.01 Transitional ?! thanks
  15. Agh i feel so dumb how the heck did i not think of sessions!, Thanks man. Btw: I've found that you can NOT post data and redirect at the same time its against RFC rules, so it would have been impossible to do that with cURL !! Thanks again.
×
×
  • 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.