Need a BASIC script?

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Joe Tito

Established Member
Impact
4
I've decided that I'm going to finally get off my lazy butt and learn php. If anyone is looking for some BASIC, and when i say "basic" i really mean basic, script...please PM me what you want. I'm going to take on a few little projects just to start me off. Please remember that I'm just starting in php so please don't ask for anything to elaborate!!!!
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Last edited:
0
Close
PoorDoggie said:
If you need any help, give me a shout! :)

im here as well just post in the programming forum here and ill help out as much as possible, i will also help via Messager :) (check profile for all my sns)
 
0
Close
sorry to be off topic but how can i list table names of database

if u guys can learn me..

regards
 
0
Close
0
Close
I appreciate all the help from you guys. I'm sure that I will be posting quite a few php questions here in the near future.

So does anyone want anything basic?
 
0
Close
free?

if you are offering, I need a script that will send emails without using the php mail() function. I have an smtp server, and I would like to be able to send emails from my site, without having it re-directing to another page on another server.

If you cannot do this, but someone else can, please PM me. I may be willing to pay, depending - PM me.
 
0
Close
I'd love to give it a shot for you PoorDoggie. I'll do it for free just because I'm trying to learn, but tips are always appreciated! I'll start working on it right now for ya!

Do you have aim? If so please contact me. My screen name is practicetitoism.
 
0
Close
PHP:
<?php
//some little vars
$cfg = array(); // dont delete or edit  this
$cfg[sitedomain] = ""; //your domain used, used for the noreply

//to use this:
  // $toArray format --> array("Name1" => "address1", "Name2" => "address2", ...)
//$toArray will carry the addresses you will be sending to and names
function socketmail($toArray, $subject, $message) {



  ini_set(sendmail_from, "root@$cfg[sitedomain]");

  $connect = fsockopen (ini_get("SMTP"), ini_get("smtp_port"), $errno, $errstr, 30) or die("Could

not talk to the sendmail server!");
   $rcv = fgets($connect, 1024);

  fputs($connect, "HELO {$_SERVER['SERVER_NAME']}\r\n");
   $rcv = fgets($connect, 1024);

  while (list($toKey, $toValue) = each($toArray)) {

   fputs($connect, "MAIL FROM:$cfg[admin_email]\r\n");
     $rcv = fgets($connect, 1024);
   fputs($connect, "RCPT TO:$toValue\r\n");
     $rcv = fgets($connect, 1024);
   fputs($connect, "DATA\r\n");
     $rcv = fgets($connect, 1024);

   fputs($connect, "Subject: $subject\r\n");
   fputs($connect, "From: No-Reply <root@$cfg[sitedomain]>\r\n");
   fputs($connect, "To: $toKey  <$toValue>\r\n");
   fputs($connect, "X-Sender: <root@$cfg[sitedomain]>\r\n");
   fputs($connect, "Return-Path: <root@$cfg[sitedomain]>\r\n");
   fputs($connect, "Errors-To: <root@$cfg[sitedomain]>\r\n");
   fputs($connect, "X-Mailer: PHP\r\n");
   fputs($connect, "X-Priority: 3\r\n");
   fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\r\n");
   fputs($connect, "\r\n");
   fputs($connect, stripslashes($message)." \r\n");

   fputs($connect, ".\r\n");
     $rcv = fgets($connect, 1024);
   fputs($connect, "RSET\r\n");
     $rcv = fgets($connect, 1024);
  }

  fputs ($connect, "QUIT\r\n");
   $rcv = fgets ($connect, 1024);
  fclose($connect);
  ini_restore(sendmail_from);
}

?>

may need a little tweaking?
 
0
Close
^^ what he said
 
0
Close
joeorgasmic said:
^^ what he said
:lol:

thanks axilant - I'll give it a try! :)
 
0
Close
axilant

I find that exetremely rude.. He is asking somebody if they need a free script and offering his services. PoorDoggy asks for a script to be made by him and you have the nerve to actually post the code needed.. Seriously... You need to learn some things in life.

I am not very happy about that.

Regards,
 
0
Close
all he did was post the code, he just recieved it earlier, I see nothing wrong with helping out?

If you need any help, give me a shout!
msn: [email protected]

I dont undertsand why you ask him if he needs any help, then you say you need something done?

Lol I am just confused
 
0
Close
iNod said:
axilant

I find that exetremely rude.. He is asking somebody if they need a free script and offering his services. PoorDoggy asks for a script to be made by him and you have the nerve to actually post the code needed.. Seriously... You need to learn some things in life.

I am not very happy about that.

Regards,
HEY... its PoorDoggie! :lol:

It is kinda rude, but - I did ask for other ppl to have a go for me. :) I think its ok. Its not really "begginer" php either, not by the look of the code.

jstep said:
I dont undertsand why you ask him if he needs any help, then you say you need something done?

Lol I am just confused
I know php, acctually - I know a lot of php, but one thing I don't know is how to send mail without using the php mail() function. This has always been a problem for me, and I cannot find a good tutorial or help script anywhere that I understand! :lol: I just though that this would be a good opportunity to get this script! :)

PS: did you get the np$ axilant?
 
0
Close
PoorDoggie said:
HEY... its PoorDoggie! :lol:

It is kinda rude, but - I did ask for other ppl to have a go for me. :) I think its ok. Its not really "begginer" php either, not by the look of the code.


I know php, acctually - I know a lot of php, but one thing I don't know is how to send mail without using the php mail() function. This has always been a problem for me, and I cannot find a good tutorial or help script anywhere that I understand! :lol: I just though that this would be a good opportunity to get this script! :)

PS: did you get the np$ axilant?

yes i got it thanks.


Im sorry, ive talked to joeorgasmic on aim and everything is alright ;) I mean no offence, but that is an super advance script, not many use "ini_get()" and such.
 
0
Close
Ok.
Thats fine.

By the way the script is super advanced you can get the code from phpFreaks or any place thing that.. I could of even created that and I am not a super advanced programmer but I am advanced.

Anyways Good Job!

Nice to see your happy PoorDoggie.
 
0
Close
Can't we all just get along?

RichardSimmons.jpg
 
0
Close
joeorgasmic said:
Can't we all just get along?

RichardSimmons.jpg
ARGH... KILL IT! (its not you is it?)
 
0
Close
PoorDoggie said:
ARGH... KILL IT! (its not you is it?)


Your kidding right?
 
0
Close
I was only jokin... who is it?
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back