[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-13-2005, 03:25 AM   #1 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


Cool Need a BASIC script?

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!!!!
joeorgasmic is offline  
Old 03-13-2005, 07:21 AM   #2 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


If you need any help, give me a shout!
msn: poordoggie@hotmail.co.uk

Last edited by PoorDoggie; 03-13-2005 at 10:20 AM.
PoorDoggie is offline  
Old 03-13-2005, 09:51 AM   #3 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


Quote:
Originally Posted by PoorDoggie
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)
axilant is offline  
Old 03-13-2005, 10:12 AM   #4 (permalink)
Senior Member
 
dotcommakers's Avatar
 
Join Date: Oct 2003
Location: world wide web
Posts: 2,022
1,279.01 NP$ (Donate)

dotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to beholddotcommakers is a splendid one to behold


sorry to be off topic but how can i list table names of database

if u guys can learn me..

regards
dotcommakers is offline  
Old 03-13-2005, 10:42 AM   #5 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


http://us4.php.net/mysql_list_tables theres an example right there.
axilant is offline  
Old 03-13-2005, 10:45 AM   #6 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


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?
joeorgasmic is offline  
Old 03-13-2005, 10:58 AM   #7 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


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.
PoorDoggie is offline  
Old 03-13-2005, 11:04 AM   #8 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


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.
joeorgasmic is offline  
Old 03-14-2005, 04:53 AM   #9 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


PHP Code:
<?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?
axilant is offline  
Old 03-14-2005, 06:44 AM   #10 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


^^ what he said
joeorgasmic is offline  
Old 03-14-2005, 10:53 AM   #11 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


Quote:
Originally Posted by joeorgasmic
^^ what he said


thanks axilant - I'll give it a try!
PoorDoggie is offline  
Old 03-14-2005, 11:00 AM   #12 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
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,
__________________
I feel old.
iNod is offline  
Old 03-14-2005, 11:21 AM   #13 (permalink)
www.SportsConvo.com
 
jstep's Avatar
 
Join Date: May 2004
Posts: 2,682
58.21 NP$ (Donate)

jstep is a glorious beacon of lightjstep is a glorious beacon of lightjstep is a glorious beacon of lightjstep is a glorious beacon of lightjstep is a glorious beacon of light


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

Quote:
If you need any help, give me a shout!
msn: poordoggie@hotmail.co.uk
I dont undertsand why you ask him if he needs any help, then you say you need something done?

Lol I am just confused
jstep is offline  
Old 03-14-2005, 11:23 AM   #14 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


Quote:
Originally Posted by iNod
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!

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.

Quote:
Originally Posted by jstep
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! I just though that this would be a good opportunity to get this script!

PS: did you get the np$ axilant?
PoorDoggie is offline  
Old 03-14-2005, 07:15 PM   #15 (permalink)
Account Closed
 
axilant's Avatar
 
Join Date: May 2004
Location: /etc/passwd
Posts: 2,194
0.00 NP$ (Donate)

axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold


Quote:
Originally Posted by PoorDoggie
HEY... its PoorDoggie!

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! 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.
axilant is offline  
Old 03-15-2005, 10:04 AM   #16 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
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.
__________________
I feel old.
iNod is offline  
Old 03-15-2005, 02:39 PM   #17 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


Can't we all just get along?

joeorgasmic is offline  
Old 03-15-2005, 03:18 PM   #18 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


Quote:
Originally Posted by joeorgasmic
Can't we all just get along?

ARGH... KILL IT! (its not you is it?)
PoorDoggie is offline  
Old 03-15-2005, 04:46 PM   #19 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


Quote:
Originally Posted by PoorDoggie
ARGH... KILL IT! (its not you is it?)

Your kidding right?
joeorgasmic is offline  
Old 03-16-2005, 03:11 PM   #20 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


I was only jokin... who is it?
PoorDoggie is offline  
Old 03-16-2005, 05:53 PM   #21 (permalink)
NamePros Regular
 
joeorgasmic's Avatar
 
Join Date: Sep 2004
Location: Earth
Posts: 376
24.15 NP$ (Donate)

joeorgasmic is on a distinguished road


That's Richard Simmons dude!!!

*sigh*
joeorgasmic is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
60.000 Templates, scripts, fonts, banners etc. $9.95 atkims Web Development Wanted 19 11-16-2004 09:48 AM
basic script needed opticempire Web Development Wanted 8 04-21-2004 06:38 PM
Domain Rating Script for Sale : $200.00 - only 10 scripts will be sold fonzerelli_79 Scripts For Sale 3 08-31-2003 08:41 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 06:07 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85