[PHP] LDAP_connect()

2003-08-02 Thread Ron Allen
Everytime I try to run this function it says that it is an undefined
function LDAP_connection



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mail Authentication or redirection of SMTP server

2003-07-28 Thread Ron Allen
Here is my problem.  When I send emails locally theough the Exchange Server
I have no problems sending mail.  When I try to send emails to another site
through the MTA funtion_mail pops up.  One of two things came to mind.
First is that we have anonymous forwarding of emails turned off for
security, meaning that I need to login to the Exchange server in order to
send emails.  Or the second part as I have seen on so many PHP sites is that
I need a valid email address to send from.  My question on the valid email
address is if it has to be the primary or can it be the secondary address
for an Exchange account?  I created a secondary address and it still does
not work. Any clues on what to do? Do I need to login into the server for
this?
Please Help me on this!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Mail or Authentication or redirection of SMTP

2003-07-27 Thread Ron Allen
Do I need to login into the server for this?

"Ron Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Here is my problem.  When I send emails locally theough the Exchange
Server
> I have no problems sending mail.  When I try to send emails to another
site
> through the MTA funtion_mail pops up.  One of two things came to mind.
> First is that we have anonymous forwarding of emails turned off for
> security, meaning that I need to login to the Exchange server in order to
> send emails.  Or the second part as I have seen on so many PHP sites is
that
> I need a valid email address to send from.  My question on the valid email
> address is if it has to be the primary or can it be the secondary address
> for an Exchange account?  I created a secondary address and it still does
> not work, but it was only about 5 minutes ago so it may not have
replicated
> as of yet.  Any clues on what to do?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Mail or Authentication or redirection of SMTP

2003-07-27 Thread Ron Allen
Here is my problem.  When I send emails locally theough the Exchange Server
I have no problems sending mail.  When I try to send emails to another site
through the MTA funtion_mail pops up.  One of two things came to mind.
First is that we have anonymous forwarding of emails turned off for
security, meaning that I need to login to the Exchange server in order to
send emails.  Or the second part as I have seen on so many PHP sites is that
I need a valid email address to send from.  My question on the valid email
address is if it has to be the primary or can it be the secondary address
for an Exchange account?  I created a secondary address and it still does
not work, but it was only about 5 minutes ago so it may not have replicated
as of yet.  Any clues on what to do?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Print help

2003-07-21 Thread Ron Allen
What I would like to do is to make an optional page that can print
information to a specified printer.  Can PHP do this?
If so how???

Please help!!!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Need to use META tag with variable attached

2003-07-18 Thread Ron Allen
Got it

echo";" ?>

"Ron Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is what I have
> 
>
> What I would like is for this to carry a variable with it.  I have tried
> several different variations and they don't work obviously
>
>  URL=./ticket_admin.php?ID=".'$ID."  '>   Does someone have an idea for
this?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Need to use META tag with variable attached

2003-07-18 Thread Ron Allen
This is what I have


What I would like is for this to carry a variable with it.  I have tried
several different variations and they don't work obviously

   Does someone have an idea for this?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Using href as a submit for a form

2003-07-18 Thread Ron Allen
I am using a form to submit to mysql.  What I would like to do is to use a
link to submit the form instead of the standard submit button.  Help is
appreicated.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Bringing href up in a different page

2003-07-17 Thread Ron Allen
This is my current code.  I am trying to have this come up in a different
page.  Help please!

".$row['ID']."



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] NON-PHP question (I-frames)

2003-07-17 Thread Ron Allen
Do we have any I-frame experts for IE.

I am trying to use multiple I-frames in Internet Explorer.  When two of them
are applied they both lose their positon attributes.  Any clues?





   #floatframe {position:absolute;

left: 40px;

top: 40px;

width: 30px;

height: 225px;

z-index: 100;

   }
   



 






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Verifying a certain amount of numbers

2003-07-16 Thread Ron Allen
I would like to know how to verify that there are 6 numbers (only numbers in
a field)
that will be submitted to a database?  Any clues!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Carrying a variable

2003-07-15 Thread Ron Allen
I am using PHP 4.3.0
The way that I usually carry variables from one page to another is
$Unit = ($_GET['Unit']);

This is the page that is referencing it!
";
$DBName = "SIGO";
$table1 = "sigo";
include 'drop.php';

$db = mysql_connect("$DBhost","$DBuser","$DBpass") or die("Problem
connecting");
mysql_select_db("$DBName") or die("Problem selecting database");
$query = "SELECT distinct (Unit) FROM $table1";
$result = mysql_query($query) or die ("Query failed");
//let's get the number of rows in our result so we can use it in a for loop
$numofrows = mysql_num_rows($result);
echo "";
echo "";
echo "";
for($i = 0; $i < $numofrows; $i++) {
$row = mysql_fetch_array($result); //get a row from our result set
echo "".$row['Unit']."\n";
}
echo "";
echo "";
echo "";
echo "";
?>

Oviously this isn't working.any clues as to why I can't carry the
variable?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Using a drop down box with an udetermined field amount

2003-07-14 Thread Ron Allen
What I want to do:
Have a person input information about individuals into a database.  One of
the fields in the database will be Unit.
On a form one of my drop down menu's will be Unit.  I would like to have the
PHP page poll the Unit field in the database and send all the different Unit
results to the drop down box.

Unit:

This would be an example of the information that would be an entered
H Co
H Co
B Co
A Co
K Co

This should be the results
H Co
B Co
A Co
K Co

Any help would be appreciated!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Validating two variables

2003-07-14 Thread Ron Allen
 if ($user!='monganl')  is what I have

this is what I want to do
 if ($user!='monganl' or 'wilsonma')

what would be the proper format for this!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Within the date format

2002-04-19 Thread Ron Allen

This is what I have right now

$totaltime= date(":H:i:s", mktime(0,0,$totaltime));

This is the result

04:20:46

from the following dates
2002-04-25 16:30:16
2002-04-19 12:09:30
534046 seconds

I would like to be able to get the days and, if needed, the number of months
and years




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen

Appreciate the assistance Danny

Figured it out
$totaltime= date("H:i:s", mktime(0,0,$totaltime));
Just followed PHP from this page
http://www.php.net/manual/en/function.mktime.php

"Ron Allen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How is this going to give the overall time in difference... For instance
>
> A circuit went down at 17:30:45 it came back up at 18:37:49
>
> what is the difference in time between the 2 in the format Days XX Hours
XX
> Minutes XX Seconds XX
>
>
>
> "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
> 027601c1e7a9$fbe6f0f0$0200a8c0@dannys">news:027601c1e7a9$fbe6f0f0$0200a8c0@dannys...
> > use the date() command (http://www.php.net/date) - using $timeDiff as
the
> > datestamp.
> >
> > HTH
> >
> > Danny
> >
> > - Original Message -
> > From: "Ron Allen" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, April 19, 2002 2:56 PM
> > Subject: Re: [PHP] Determine the difference between two dates
> >
> >
> > > If I wanted to represent it in the format of
Days,Hours,Minutes,Seconds
> > how
> > > would that work
> > >
> > >
> > > "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
> > > 020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
> > > > Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
> > > >
> > > > To get the difference between 2 time strings :
> > > >
> > > >  > > >
> > > > // orginal time strings
> > > > $firstTime="2002-04-19 13:49:00";
> > > > $lastTime="2002-04-19 14:00:00";
> > > >
> > > > // convert to unix timestamps
> > > > $firstTime=strtotime($firstTime);
> > > > $lastTime=strtotime($lastTime);
> > > >
> > > > // perform subtraction to get the difference (in seconds) between
> times
> > > > $timeDiff=$lastTime-$firstTime;
> > > >
> > > > //echo out the difference
> > > > printf ("Difference is %d seconds",$timeDiff);
> > > >
> > > > ?>
> > > >
> > > > HTH
> > > >
> > > > Danny.
> > > >
> > > > - Original Message -
> > > > From: "Ron Allen" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Friday, April 19, 2002 1:08 PM
> > > > Subject: [PHP] Determine the difference between two dates
> > > >
> > > >
> > > > > If I have two variables of time both in the format of "Y-m-j
J:i:s"
> > > > > How would I go about and get the difference?
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen

How is this going to give the overall time in difference... For instance

A circuit went down at 17:30:45 it came back up at 18:37:49

what is the difference in time between the 2 in the format Days XX Hours XX
Minutes XX Seconds XX



"Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
027601c1e7a9$fbe6f0f0$0200a8c0@dannys">news:027601c1e7a9$fbe6f0f0$0200a8c0@dannys...
> use the date() command (http://www.php.net/date) - using $timeDiff as the
> datestamp.
>
> HTH
>
> Danny
>
> - Original Message -
> From: "Ron Allen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 19, 2002 2:56 PM
> Subject: Re: [PHP] Determine the difference between two dates
>
>
> > If I wanted to represent it in the format of Days,Hours,Minutes,Seconds
> how
> > would that work
> >
> >
> > "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
> > 020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
> > > Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
> > >
> > > To get the difference between 2 time strings :
> > >
> > >  > >
> > > // orginal time strings
> > > $firstTime="2002-04-19 13:49:00";
> > > $lastTime="2002-04-19 14:00:00";
> > >
> > > // convert to unix timestamps
> > > $firstTime=strtotime($firstTime);
> > > $lastTime=strtotime($lastTime);
> > >
> > > // perform subtraction to get the difference (in seconds) between
times
> > > $timeDiff=$lastTime-$firstTime;
> > >
> > > //echo out the difference
> > > printf ("Difference is %d seconds",$timeDiff);
> > >
> > > ?>
> > >
> > > HTH
> > >
> > > Danny.
> > >
> > > - Original Message -
> > > From: "Ron Allen" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, April 19, 2002 1:08 PM
> > > Subject: [PHP] Determine the difference between two dates
> > >
> > >
> > > > If I have two variables of time both in the format of "Y-m-j J:i:s"
> > > > How would I go about and get the difference?
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen

If I wanted to represent it in the format of Days,Hours,Minutes,Seconds how
would that work


"Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
020e01c1e7a1$70098eb0$0200a8c0@dannys">news:020e01c1e7a1$70098eb0$0200a8c0@dannys...
> Firstly, I assume you mean "Y-m-j H:i:s" for the date format.
>
> To get the difference between 2 time strings :
>
> 
> // orginal time strings
> $firstTime="2002-04-19 13:49:00";
> $lastTime="2002-04-19 14:00:00";
>
> // convert to unix timestamps
> $firstTime=strtotime($firstTime);
> $lastTime=strtotime($lastTime);
>
> // perform subtraction to get the difference (in seconds) between times
> $timeDiff=$lastTime-$firstTime;
>
> //echo out the difference
> printf ("Difference is %d seconds",$timeDiff);
>
> ?>
>
> HTH
>
> Danny.
>
> - Original Message -
> From: "Ron Allen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 19, 2002 1:08 PM
> Subject: [PHP] Determine the difference between two dates
>
>
> > If I have two variables of time both in the format of "Y-m-j J:i:s"
> > How would I go about and get the difference?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Determine the difference between two dates

2002-04-19 Thread Ron Allen

If I have two variables of time both in the format of "Y-m-j J:i:s"
How would I go about and get the difference?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Browsing on Windows

2002-04-15 Thread Ron Allen

I am querying to see if someone can point in the right direction.

What I would like to do is first open a connection to a specific folder
(know this)
Have it towards the user can click on a button and it will pop up with the
local directory and have it so that they can browse their hard drive and
click on a file so that they can upload it.
Then have then click a button and upload the file!

Any pointers on where to start?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Making graphics

2002-04-11 Thread Ron Allen

Here is what I want to do.

I am taking a poll and I would like to display the results in a bar graph
format.  What is the best way to do this.hopefully you will not say GD
library!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: GD library

2002-04-11 Thread Ron Allen

This is for a Windows 2000 server

"Ron Allen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have downloaded the GD library and I am wondering how do I install it..
>
> I unzipped it and put it my root.  I have PHP version 4.1.1...what
else
> is there to do?  Does anybody have any script for me to test it real
quick?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] GD library

2002-04-11 Thread Ron Allen

I have downloaded the GD library and I am wondering how do I install it..

I unzipped it and put it my root.  I have PHP version 4.1.1...what else
is there to do?  Does anybody have any script for me to test it real quick?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] One last thing for the day

2002-04-10 Thread Ron Allen

Any idea on how to obtain a computer name...Windows environment using
PHP?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] fwrite

2002-04-10 Thread Ron Allen

Using fwrite how would I insert a line return



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: printf

2002-04-10 Thread Ron Allen

figured that out as well
You need to put the number_format($number,2) afterwards
Thanks to both you!
"Ron Allen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking at how to format output
>
> Here is what I have.  There is a simple currency conversion that I do and
> the output is just a string of numbers
> I would like it so that it puts a comma for every 3 spaces...Any
> clues..oh knowing newsgroup
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: printf

2002-04-10 Thread Ron Allen

Figured out why it wasn't working, but I need to be able to display the 2
decimals afterwards
"Ron Allen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking at how to format output
>
> Here is what I have.  There is a simple currency conversion that I do and
> the output is just a string of numbers
> I would like it so that it puts a comma for every 3 spaces...Any
> clues..oh knowing newsgroup
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: printf

2002-04-10 Thread Ron Allen

This is what I have and it is not working


$converted1 =round($usdamount * $convamount, 2);
$converted = number_format($converted1);
//echo "$amount * $convamount = $converted";
echo "You should receive$nbsp $converted $currency";
"Ron Allen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am looking at how to format output
>
> Here is what I have.  There is a simple currency conversion that I do and
> the output is just a string of numbers
> I would like it so that it puts a comma for every 3 spaces...Any
> clues..oh knowing newsgroup
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] printf

2002-04-10 Thread Ron Allen

I am looking at how to format output

Here is what I have.  There is a simple currency conversion that I do and
the output is just a string of numbers
I would like it so that it puts a comma for every 3 spaces...Any
clues..oh knowing newsgroup



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] 1024X760 or 800x600

2002-04-05 Thread Ron Allen

Is there a way with PHP to determine screen resolution size???



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php