RE: [PHP] Including Google Ads

2006-08-10 Thread mwestern
 

> -Original Message-
> From: Chris [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 10 August 2006 3:43 PM
> To: C.F. Scheidecker Antunes
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Including Google Ads
> 
> C.F. Scheidecker Antunes wrote:
> > Hello all,
> > 
> > How do I include Google Ads on my PHP script?
> 
> Read the google website.
> 
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
> 
> --
> 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] Sending Mail (newbie)

2005-11-22 Thread mwestern
Have you tried a very simple email example to make sure your server is
sending mail out.   Is sendmail running and working?

http://au2.php.net/function.mail 

> -Original Message-
> From: schalk [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 23 November 2005 9:12 AM
> To: php-general@lists.php.net
> Subject: [PHP] Sending Mail (newbie)
> 
> Greetings All
> 
> I am using the following script to send mail via PHP. The 
> script processes and send the mail but the message is never 
> displayed in the received email. Any pointers will be much 
> appreciated. Thank you.
> 
>// Handle POST method.
>   if ($_POST)
>   {   
>  
>   $name = $_POST['name'];
>   $phone = $_POST['phone'];
>   $comments = $_POST['comments'];
>   
>   $to = '[EMAIL PROTECTED]';
>   $subject = "Contact from 
> OxfordPrice.com";
>   $headers = "MIME-Version: 1.0\r\n".
>  
> "Content-type: text/html; charset=iso-8859-1\r\n".
>  "From: 
> ".$name."\r\n".  
>  "Date: 
> ".date("r")."\r\n";
> 
>  // Compose message:
>   $message = "
>   
>   
>   Message From: " . $name . 
>   "
>   
>   
>   ";
> 
>   // Send message
>   mail($to, $subject, $message, $headers);
> 
>   // Thank the generous user
>   echo "Thank 
> You!\n";
>   }
> 
> --
> Open WebMail Project (http://openwebmail.org)
> 
> --
> 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] launch app

2005-09-14 Thread mwestern
The only thing that you can do is the same as sourceforge.net does.
Bring up a web page that says yadadad download this etc.   then in the
header make it redirect to a file on the web server after 3 seconds or
something.

Go download something off sourceforge to see what I'm on about.  :)

I have the same problem.  I wrote a program to gather stuff of a persons
machine.  Works like a charm.  Written in visual basic using only API
calls and myvbsql calls to write to a mysql database.   We put it in the
login script.   My boss wanted to make it like windows update so it runs
when you visit our intranet.  I put that idea in the 'good idea but too
hard basket'.   :)

-Original Message-
From: Ed Lazor [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 September 2005 11:50 AM
To: php-general@lists.php.net
Subject: [PHP] launch app

What's the best way to send an executable to a client desktop in PHP?
 
I'm doing a project where we need to check and see which files need to
be updated on a client-desktop.  The idea is for a user to visit the
website, an executable launches, checks the files on the drive, and then
sends the data back to the website.
 
It's all on the up and up - I'm not trying to do anything bad to the
user.  The site is designed to maintain a product that they're
purchasing from us.  Screens will explain what's going on.  I also
believe the browser will display something - not completely sure how to
trigger this, but I think it's something to do with having executables
"signed" - I'd appreciate if you have any advice on how to do this also.
 
Thanks,
 
Ed
 

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



[PHP] Size limits of mysql

2005-09-14 Thread mwestern
Hi All,

 

 

I have a simple database with one table with about 6 fields, just
holding filenames, filepaths and sizes.  Very basic audit for management
here.   Problem is I import a load of records into this table and it
seems to only allow me to put in about 550,000 records.Maybe it's
just mysqlFront that can only display that many records or something.
Anybody know of a size or record limit in mysql tables?  The actual size
of the database is about 70Mb.   Not huge really.

 

 

Thanks

 

Matthew

 



[PHP] size limit in mysql tables?

2005-09-14 Thread mwestern
I have a simple database with one table with about 6 fields, just
holding filenames, filepaths and sizes.  Very basic audit for management

here.   

 

Problem is I import a load of records into this table and it

seems to only allow me to put in about 550,000 records.

 

Maybe it's

just mysqlFront that can only display that many records or something.

Anybody know of a size or record limit in mysql tables?  The actual size

of the database is about 70Mb.   Not huge really.

 

 



RE: [PHP] Re: SQL Date guru in the house?

2005-05-12 Thread mwestern
Cool thanks for that.

After reading through the strings manual pages on mysql site I came up
with this way of doing it. Not as simple as yours that's for sure,
but it works fine.

SELECT blah 
WHERE CONCAT(, LPAD(mm,2,'0'), LPAD(dd,2,'0')) BETWEEN ". $ .
$mm . $dd ." AND ". $e_ . $e_mm . $e_dd ." 

That works as well.   

Thanks a pile for the pointer tho.

Regards
M

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, 12 May 2005 5:41 AM
To: php-general@lists.php.net
Cc: Matthew Western, IT Support, Lonsdale
Subject: Re: [PHP] Re: SQL Date guru in the house?

Sorry, don't have time to look up the specifics.. and I've worked with a
number of different flavors of SQL, so not sure the syntax or
capabilities of the system you're using, but maybe try something like
this:

SELECT * FROM blah WHERE DATE(mm, dd, yyy) BETWEEN $date1 AND $date2

Basically convert the output of the columns to a date format and do the
comparison that way.

Some DATE commands are in the format DATE(MM, DD, ), some have
commands to convert a string to a date:  STR_TO_DATE(MM + "/" + DD + "/"
+ ), etc.

That way you get a serial datestamp to work with which should make
finding things within that range a ton easier.

Good luck!

-TG


= = = Original message = = =

Hello,

on 05/11/2005 03:17 AM [EMAIL PROTECTED] said the following:
> I have a small problem.   
> 
> I have a project in which someone has got three integer fields for
> holding the date.   DD, MM,  in an sql database.I now have to
> have a page that inputs two dates and select records between those two
> dates. 
> 
> If I had a date field in the table it would be fairly simple, but I'm 
> hoping to do this search/comparison without having to rewrite the 
> pages/database that has already been designed.
> 
> 
> Start Date:~11/05/2005
> End Date:~11/04/2005
> SELECT * FROM blah WHERE mm BETWEEN 04 AND 05 AND dd BETWEEN 11 AND 11

> AND  BETWEEN 2005 AND 2005
> 
> Doesn't work for obvious reasons.  Is there any way that I can do
> this date comparison I the SQL statement without having a decent date 
> field?
> My apologies as this is australian date format and this list is in the

> US I think?

The format is only relevant for outputing dates. For querying you can
use the date values directly to delimit the range that you want

SELECT * FROM blah WHERE mm BETWEEN '11/04/2005' AND '11/05/2005'


-- 

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
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



[PHP] SQL Date guru in the house?

2005-05-11 Thread mwestern
Hi All,

I have a small problem.   

I have a project in which someone has got three integer fields for
holding the date.   DD, MM,  in an sql database.I now have to
have a page that inputs two dates and select records between those two
dates. 

If I had a date field in the table it would be fairly simple, but I'm
hoping to do this search/comparison without having to rewrite the
pages/database that has already been designed.


Start Date: 11/05/2005
End Date:   11/04/2005
SELECT * FROM blah WHERE mm BETWEEN 04 AND 05 AND dd BETWEEN 11 AND 11
AND  BETWEEN 2005 AND 2005

Doesn't work for obvious reasons.  Is there any way that I can do
this date comparison I the SQL statement without having a decent date
field?
My apologies as this is australian date format and this list is in the
US I think?
Regards
Matthew




RE: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
Thanks to all that posted with help.   I've got a book about regular
expressions but it's all very new to me. 

-Original Message-
From: Jason Sweeney [mailto:[EMAIL PROTECTED] 
Sent: Monday, 2 May 2005 9:50 PM
To: Matthew Western, IT Support, Lonsdale
Cc: php-general@lists.php.net
Subject: Re: [PHP] Can someone help me build a regular expression?

Give this a shot:

^[0-9]{2,3}\.[0-9]$

Returns regex that begins with 2-3 digits, followed by a period, and
ends with one digit.

jason sweeney
jason.designshift.com


[EMAIL PROTECTED] wrote:
> Hi All,
> 
> I've sucessfully got a JavaScript validating some text boxes to make
> sure that only numbers exist.I cheated and downloaded a regular
> expression someon else had used and that works nicely.  I wish to
> validate the text box in the format of:
> 
> xXX.X
> 
> With the upper case Xs being a required number and the lower case x 
> being allowed but not needed.
> 
> Can anybody help me?
> 
> Ta
> Matthew
> 
> 
> 
> 
> 
> 
> 

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



[PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
Hi All,

I've sucessfully got a JavaScript validating some text boxes to make
sure that only numbers exist.I cheated and downloaded a regular
expression someon else had used and that works nicely.  I wish to
validate the text box in the format of:

xXX.X

With the upper case Xs being a required number and the lower case x
being allowed but not needed.

Can anybody help me?

Ta
Matthew








RE: [PHP] Re: What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-28 Thread mwestern
 >Yes. It's using the global arrays HTTP_POST_VARS and HTTP_SESSION_VARS

>arrays, and 4.3.x has the directive register_globals set to off by
default. It's safer to leave it off. You can easily update the script by
replacing these with $_POST and $_SESSION, respectively.

Again I appreciate the pointer.

I also changed the $HTTP_SERVER_VARS to $_SERVER and it still didn't
work.I then went through the script and checked for where it was
trying to register the global user name and it was assuming that the
global vars was turned on.   Changed the line to read:

// $adb_password = $admin_password;
// $user = $u_name;
$_SESSION['adb_password'] = $admin_password; $_SESSION['user'] =
$u_name;

And it works now. Thanks piles for the help.

Regards
Matthew

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



[PHP] What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-27 Thread mwestern
I've used the simple password script in the past to password protect
pages with a session. http://www.phpbuddy.com/article.php?id=23
Now that I have installed Fedora Core 2 and 3 the new version of php
(4.3.4) doesn't like this script any more.

Any ideas why?   

Thanks
Matthew



[PHP] Fping problem

2004-11-08 Thread mwestern
Hi All,

I have written a simple page that uses fping and was working perfectly just
shelling out to it using the backtick.

The server it was on crapped out and I'm trying to get it going again on our
new server.I have installed fping, given permissions to everyone to run
it and copied it to the places where it was before.   /usr/local/bin   /bin
/sbin

And it will not return the input I give it.

Anybody in the house got an ideas?   Idiot me didn't document what I did to
get it going in the first place...

Thanks
Matthew



RE: [PHP] Re: PHP Mysql Hit Counter

2003-06-25 Thread mwestern
ah thanks.  much appreciated.  i did google and found a few things, but was
really after something that someone else would recommend rather than trying
a few hundred.  :)

regards
m

-Original Message-
From: Nadim Attari [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Mysql Hit Counter


http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html

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



[PHP] PHP Mysql Hit Counter

2003-06-24 Thread mwestern
Hi All,
I'm after a fairly neat PHP mysql hit counter with date reporting/url
reporting and perhaps some graphs but not nessasary. i've done my own little
one which simply reports hits, but i'm wondering is there a free one that is
da busiess.  :)

anyone?
ta
M

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