Jump to content

ben14

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

About ben14

  • Birthday 08/14/1987

Contact Methods

  • MSN
    volvorules@gmail.com
  • Website URL
    http://www.visionsource.org

Profile Information

  • Gender
    Not Telling
  • Location
    Perth, Western Australia

ben14's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks guys for the help. yeah as i get more into the application im starting to realize the way i am doing it is a bad idea, i just trying trying avoid using globals, but making sure the class is constructed first. Thanks for the help.
  2. Hey guys, i having problem with extended classes accessing $this variables in PHP5. Basically i have my main classes, which holds all my classes like database, template, application functions etc. I then have my modules, and when i construct the module i pass $class into it and store it as an instance eg: class SomeClass { protected $class; function __construct( $class ) { $this->class =& $class; include( CLASS_PATH . 'class2.php' ); $class2 = class2( ); } } Then in class2 i have: class SomeClass2 extends SomeClass { function __construct( ) { var_dump( $this ); } } Now what happens is $this->class comes out as a null, but i want it to be the object i made an instance of. Just wondering first if this can be done, and secondly what am i doing wrong. Also if i set say: $this->someString = "this is some string", the dump will come out correctly for someString. Thanks!
  3. Ok, when i send any emails from php the date that comes through on the email is the 01/01/1970. This only seems to happen in window mail clients, but on macs, gmail the date is correct. Wondering if anyone knows what could be the problem and what the fix is?
  4. Does it when ever i use the mail function. I have a mail class that i use (and that is not causing the problem because ive tested it on another server and works perfect) and i have also tried: [code]<?php $to      = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" .    'Reply-To: webmaster@example.com' . "\r\n" .    'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> [/code] from the php site, and messed around with it and still doesn't work. I have a felling its got something to do with a setting in php.ini or in apache.
  5. Hey, Every time a mail has been sent from my computer the date in the email is 1/1/970 at 8am, so i am wondering if anyone knows how to fix the problem (somewhere in the php.ini or even in mail headers?). My php ver is 4.4.3 Thanks,
  6. I am trying to link to a file that is local, but i can't seem to get the link to work when the page is located on a server. Eg: I try open file:///C|/test.exe it won't open if it is running of the sever eg [a href=\"http://localhost\" target=\"_blank\"]http://localhost[/a], But the url is file:///C|/htdocs/test.html it will then open the file. Does anyone know a way around to get the to open when it is running of a server?
  7. i voted dreamweaver cause i use it, but im trying phpedit because i heard it is good . Also whats wrong with notepad? i use it sometimes lol.
  8. apach2triad i use, so much easier than uploading every time you change something and nice and quik.
×
×
  • 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.