Re: [PHP] no newline after ? in the resulting HTML

2006-03-18 Thread Adrian
Is there a way to circumvent this?
My template engine compiles templates to PHP files and this feature
makes the output html code look awful sometimes.

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



Re: [PHP] microsoft PHP ?

2006-04-01 Thread Adrian
Did you even look at the calendar which date we have today?
Correct, April 1st...

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



[PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Hi All

 

I have been trying to have PHP capture incoming emails sent to a specific
email account and have not been able to achieve this, I have searched high
and low on the internet and the same article
(http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html) is
plastered everywhere I have done everything it says, and still no joy, 

 

When I send an email to be captured I receive this bounce back email when
sending an email to [EMAIL PROTECTED] (see below)

 

Can any one let a hand?

 

Bounce back email:

--

   - The following addresses had permanent fatal errors -

|/wwwroot/www.domain.com/ade/email.php

(reason: 255)

(expanded from: [EMAIL PROTECTED])

 

   - Transcript of session follows -

Status: 404

Content-type: text/html

X-Powered-By: PHP/4.3.11

 

No input file specified.

554 5.3.0 unknown mailer error 255

Content-type: text/html

X-Powered-By: PHP/4.3.11

--

 

Here is how I have everything setup.

 

I have my aliases file set up with the line: ade: |/usr/bin/php,
|/wwwroot/www.domain.com/ade/email.php

(The path to my PHP is correct)

 

And the script it calls (email.php) the code is:

 

#!/usr/bin/php 

?php

$fd = fopen(php://stdin, r);

$email = ;

while (!feof($fd)) {

$email .= fread($fd, 1024);

}

fclose($fd);

?

 

Adrian



RE: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Thanks, I changed the line to:

ade: |/usr/bin/php /wwwroot/www.domain.com/ade/email.php

And get this message back different but in essence the same I believe.   I
know the email.php doesn't do anything, I would love to get it there :)
proving to be difficult :)



   - The following addresses had permanent fatal errors -
|/usr/bin/php /wwwroot/www.domain.com/ade/email.php
(reason: 255)
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.11

No input file specified.
554 5.3.0 unknown mailer error 255





-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 10:51 AM
To: Adrian
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to get incoming emails captured by PHP ?

Adrian wrote:

I have my aliases file set up with the line: ade: |/usr/bin/php,
|/wwwroot/www.domain.com/ade/email.php

(The path to my PHP is correct)
  


There should only be one | on that line. It should read...

ade: /usr/bin/php /wwwroot/www.domain.com/ade/email.php

And the script it calls (email.php) the code is:

#!/usr/bin/php 

?php

$fd = fopen(php://stdin, r);

$email = ;

while (!feof($fd)) {

$email .= fread($fd, 1024);

}

fclose($fd);

?


Hopefully you realise this script is just reading the email into $email 
and then not doing anything with it. Mail sent to this script will be 
lost, so here's hoping that's not the finished article.

-Stut

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



RE: [PHP] How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
THANK YOU!

That did it, its now working, thank you for your help.

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 11:03 AM
To: Adrian
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to get incoming emails captured by PHP ?

Adrian wrote:

Thanks, I changed the line to:

ade: |/usr/bin/php /wwwroot/www.domain.com/ade/email.php

And get this message back different but in essence the same I believe.   I
know the email.php doesn't do anything, I would love to get it there :)
proving to be difficult :)



   - The following addresses had permanent fatal errors -
|/usr/bin/php /wwwroot/www.domain.com/ade/email.php
(reason: 255)
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.11

No input file specified.
554 5.3.0 unknown mailer error 255
  



Try..

ade: |/usr/bin/php /wwwroot/www.domain.com/ade/email.php

Looks to me like PHP is not getting the argument.

-Stut

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



[PHP] Re: How to get incoming emails captured by PHP ?

2006-05-10 Thread Adrian
Hi John
 
Thank you, I have just got it working now, will look into the different ways 
you suggested.
 
Adrian wrote:
 Hi All
 
  
 
 I have been trying to have PHP capture incoming emails sent to a specific
 email account and have not been able to achieve this, I have searched high
 and low on the internet and the same article
 ( http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html 
 http://www.evolt.org/article/Incoming_Mail_and_PHP/18/27914/index.html) is
 plastered everywhere I have done everything it says, and still no joy, 
 
  
 
 When I send an email to be captured I receive this bounce back email when
 sending an email to [EMAIL PROTECTED] (see below)
 
  
 
 Can any one let a hand?
 
  
 
 Bounce back email:
 
 --
 
- The following addresses had permanent fatal errors -
 
 |/wwwroot/www.domain.com/ade/email.php
 
 (reason: 255)
 
 (expanded from: [EMAIL PROTECTED])
 
  
 
- Transcript of session follows -
 
 Status: 404
 
 Content-type: text/html
 
 X-Powered-By: PHP/4.3.11
 
  
 
 No input file specified.
 
 554 5.3.0 unknown mailer error 255
 
 Content-type: text/html
 
 X-Powered-By: PHP/4.3.11
 
 --
 
  
 
 Here is how I have everything setup.
 
  
 
 I have my aliases file set up with the line: ade: |/usr/bin/php,
 |/wwwroot/www.domain.com/ade/email.php
 
Why are you passing it to the php binary?  Pass it directly to your 
script (make sure it's executable).  For shits and giggles, do a 'which 
php' at the command line to make sure the binary is in /usr/bin.
 
 (The path to my PHP is correct)
 
  
 
 And the script it calls (email.php) the code is:
 
  
 
 #!/usr/bin/php 
 
 ?php
 
 $fd = fopen(php://stdin, r);
 
There's also an easier way to do this.  Check the manual:
 http://us2.php.net/manual/en/features.commandline.php 
http://us2.php.net/manual/en/features.commandline.php
 
 
 $email = ;
 
 while (!feof($fd)) {
 
 $email .= fread($fd, 1024);
 
 }
 fclose($fd);
 
 ?
 
 
-- 
John C. Nichel IV
Programmer/System Admin (ܢerGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

 



Re: [PHP] Embedding PHP 5 in a C application

2006-05-24 Thread Adrian

I think you can use the 'embed' SAPI for that.

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



[PHP] Handling of lengthy server operation in php

2006-02-18 Thread Adrian
Hi everybody,

I have been trying to find a solution to this issue on other newsgroups but
haven't had any luck so far.

My config: Apache 2.0.54, PHP 5.1.2 on Win XP (or 2003).

Here is the outline of my application:

The user submits a form to the server, which is then processed by a php
script. This script calls exec to start a Win32 console which passes some
information to a Windows process, and then returns, thus allowing the php
script to continue. In the meantime, the service keeps working. When it's
done, it creates a file to signal that new data is available. The php script
sees this file, picks up the data and sends it to the user.

Everytbing works if all this happens synchronously, meaning the php script
waits for the windows service to finish before doing anything else. But this
means that the user doesn't see any feedback as to the status of the
operation (and it can be quite lenghty), and it can't cancel it either. So
in order to increase useability, I need the server needs to be able to
perform some concurrent tasks:
1. monitor the status of the Windows service processing
2. provide user feedback about its status
3. listen for user commands, such as cancel, or back, in order to cancel the
current processing

I tried various ideas, using header( ... ) to start other scripts etc, but
so far nothing worked - things always happen synchronously (start
processing, wait for it to finish, show result) which is not what a user
would expect. Also, I would prefer to do everything on the server instead of
using js for example in the browser.

Any help would be really appreciated.

Thanks,

Adrian

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



Re: [PHP] Newbie question

2005-02-18 Thread Adrian
error_reporting(E_ALL);
Then you will get a notice when you try to read a variable which
doesn't exist.

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



Re: [PHP] Adding Loop / If support to a simple template engine

2005-04-06 Thread Adrian
Just make your template engine compile templates to native php code.
i.e. write a parser which replaces {if $foo}{$var}{/if} with
?php if($foo) {??php echo $this-templateVars['var'];??php } ?

To check if the template must be recompiled, just compare filemtimes.
The assign function could be look like this then:
=
function assign($varName, $value = '')
{
if(is_array($varName))
foreach($varName as $key = $val)
$this-assign($key, $val);
else
$this-templateVars[$varName] = $value;
}
=

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



Re: [PHP] Hard disk number

2003-07-27 Thread Adrian
 Can we know clients' hard disk number with a phpscript. If yes what is the
 code?
of course no, because php is running on the server ;)



-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] Your E-Book

2003-07-27 Thread Adrian
oh fuck you, damn spammer...
i hope someone hacks your damn spam server...


 The Revolutionary Book 
 Your Boss Doesn't Want You to Read !

 Does an extra $500 to $1000 a week sound exciting?

 HINT: It's not what you think

 Dear Friend:

 Everybody is looking to make more money online, but the biggest problem
 is that VERY few things actually work. 

 We have an exclusive system for making money from home and it only
 requires a few hours a week of your free time. 
 
 Best is. You work once, get paid forever ……..

 A recent revolutionary discovery has allowed many average people the ability
 to create another source of income in their life.
 
 

 For a limited time only, you can receive a FREE copy of your 
 own personal 'hot off the presses' e-book,
 How to Achieve Unlimited Freedom: The Confidential Discovery of the Century 
 by Dr. Tim Jaeger valued at $19.95 !!


 Click Below to receive it 
 absolutely FREE !


 Click Here











 NOTE - This is NOT SPAM - This message is sent in compliance of the new e-mail bill: 
 SECTION 301. Per Section 301, paragraph (a)(2)(C) of S. 1618. This message is NOT 
 Spam as long as you are
 provided with a way to remove your name from this mailing list. All further 
 transmissions to you from me may be stopped at no cost to you by e-mailing [EMAIL 
 PROTECTED] from your e-mail
 address with the word REMOVE in the subject line.  This e-mail must be from or 
 contain the address you wish to have removed.


-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Adrian
everyone can execute shell commands via system(); on your server.
- delete the script ;)



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



Re: [PHP] System() works on /usr/sbin commands

2003-07-31 Thread Adrian
afaik requires useradd like the other sbin stuff root rights - and php
doesn't run as root


 hello,

   i was using system function to invoke useradd
 command but it doesn't work. well it works for all the
 commands but not those in /usr/sbin. why is it so. 

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com



-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] eval

2003-08-01 Thread Adrian
PHP-Code:
eval('?'.$string)

Vars:

eval('$string='.str_replace('','\\',$string).';');



 Is it possible to put PHP code in eval ?
 Or just vars ?


 ?php

 $string = 'The result of ?php $a=2; $b=3; $c=$a+$b; echo $a + $b is $c; 
?';

 eval ($string);

?



-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-10 Thread Adrian
you could setup a cronjob running as root which chowns the files.
or maybe you can so something with sudo





-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] suggestion on php-editor?

2003-08-14 Thread Adrian
the tswebeditor ist not bad:
http://194.112.147.2/tswebeditor/index/index/en




-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



[PHP] Image with graduated fill using PHP

2003-08-14 Thread Adrian
Hi all!
 
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
 
Any help or suggestions would be really helpful.
 
Thanks 
 
Adrian
[EMAIL PROTECTED]
 


[PHP] Graduated fills using PHP Images

2003-08-15 Thread Adrian
Hi all!
 
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
 
Any help or suggestions would be really helpful.
 
Thanks 
 
Adrian
[EMAIL PROTECTED]
 
 


Re: [PHP] weird output on my Apache2, PHP 4.2.3 Win2k box...

2003-08-26 Thread Adrian
this crap ist inserted by the norton firewall 2003.
the SymWinOpen is there only if the ad blocker is turned on, the
SymError cannot be turned of w/o turning off the firewall


 Can someone tell me why all mt PHP generated HTML has this pre-pended to it?

 And how can I turn it off?

 Thanks

 Walter

 script language=JavaScript
 !--

 function SymError()
 {
   return true;
 }

 window.onerror = SymError;

 var SymRealWinOpen = window.open;

 function SymWinOpen(url, name, attributes)
 {
   return (new Object());
 }

 window.open = SymWinOpen;

//--
 /script


 body onLoad=var SymTmpWinOpen = window.open; window.open = SymWinOpen;
 window.open = SymTmpWinOpen;



-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de

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



Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Adrian
you could redirect to http://username:[EMAIL PROTECTED]/foo


 what I mean is if  you can create a form page
 in PHP prompting for a username and password and then redirect into
 an .htaccess protected directory without having the server pop up another
 username/password box?





-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
you could try
header('Content-Disposition: inline; filename=test.doc');



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



Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
oops, i thougt you wanted it opening in the browser.
i don't think there is a way to open it directly outside the browser,
because if this would be possible someone could do so with a virus
.exe, too.

 .. but this is opening word document inside the web browser which is not
 acceptable in my case :(



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



Re: [PHP] highlight_file() in XHTML Strict?

2003-06-24 Thread Adrian
try this:
   ob_start();
   $oldlevel=error_reporting(0);
   highlight_file($file);
   error_reporting($oldlevel);
   $buffer = ob_get_contents();
   ob_end_clean();

   $buffer = str_replace(code, , $buffer);
   $buffer = str_replace(/code, , $buffer);
   $buffer = preg_replace(/font color=\([^\]*)\/i,span style=\color: 
\\1\,str_replace(/font,/span,$buffer));
   echo $buffer;

 I want to use highlight_file() in XHTML Strict. Is there any way to 
 change PHP to use span class=string (and other classes) and use a 
 stylesheet to colour it?  If not, any other suggestions?



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



Re: [PHP] fwrite() question

2003-07-01 Thread Adrian
you should use $_POST['news'] instead of $POST_['news'].
ans you also should'nt put  around variables ;)


 Hello,

 I have a block of code:

 ?php
 if ($_POST['news'])
 {
 $fp = fopen( news.txt, w);
 $success = fwrite( $fp, $POST_['news'] );
 fclose($fp);

 if (!success)
 {
 echo punable to write to news.txt/p;
 exit;
 }

 Header(Location: http://archives1.mdah.state.ms.us/news.php; );
 }
?

 and when I access it, I get the error:

 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or 
 `T_NUM_STRING' in /usr/local/apache2/htdocs/updatenews.php on line 5

 and line 5 is:

 $success = fwrite( $fp, $POST_['news'] );

 which looks ok to me.  When I take out the   around $POST_['news'] it 
 doesn't generate an error, but then it doesn't write anything to news.txt.  
 news.txt is owned by nobody with 755 and apache runs as nobody.

 I'd appreciate any help.  Thanks!

 Adam




-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de



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



Re: [PHP] Pulling variables from a URL

2003-10-14 Thread Adrian
lol variables in quotes - especialli when there is only the variable
are really ugly.
you should use $_GET[$username]...

 Use double quotes:
 $_GET[$username];

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



Re: [PHP] addslashes() vs. magic_quotes_gpc

2003-10-19 Thread Adrian
I think always using addslashes is better because you have to write
clean cide instead of trusting in a funktion which can be disabled on
some servers.


To avoid double-escaping I use this code:


function stripslashes_array($array) {
 reset($array);
 while(list($key,$val)=each($array)) {
  if(is_string($val)) $array[$key]=stripslashes($val);
  elseif(is_array($val)) $array[$key]=stripslashes_array($val);
 }
 return $array;
}


if (get_magic_quotes_gpc()) {
  if(is_array($_REQUEST)) $_REQUEST=stripslashes_array($_REQUEST);
  if(is_array($_POST)) $_POST=stripslashes_array($_POST);
  if(is_array($_GET)) $_GET=stripslashes_array($_GET);
  if(is_array($_COOKIE)) $_COOKIE=stripslashes_array($_COOKIE);
}


 If you are doing both addslashes() and have magic_quotes_gpc turned on, 
 then yes, you are double-escaping things.

 From a performance-perspective I doubt you could measure much difference, 
 but I suppose doing it through magic_quotes_gpc would be faster assuming 
 you need to escape all your GPC data.  If you have a lot of GPC data that 
 doesn't need to be escaped, then only running addslashes() on the data 
 that needs it might be more efficient.

 -Rasmus


-
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de

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



[PHP] using existing mysql connection in a php extension

2003-10-31 Thread Adrian
hello,

is it possible to use an existing mysql connection created from
php-code $conn=mysql_connect('localhost','root','secret'); in an
php-extensions, e.g. by giving the ressource id to the extension as an
argument: my_extemsion_function('do_something',$conn); ?
because if i have to connect to the mysql server again from my
extension, i'll lose the performance-improvement gained from the
faster C++-code.

-- 
Adrian
mailto:[EMAIL PROTECTED]
www: http://www.planetcoding.net
www: http://www.webskyline.de

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



Re: [PHP] Global Vars

2004-03-04 Thread Adrian
use $_POST['name_of_your_form_field'] or
$_GET['name_of_your_form_field'] or $_REQUEST['name_of_your_form_field']
$_REQUEST contains $_GET, $_POST and $_COOKIE

for server vars there is $_SERVER and $_ENV for environment vars
$_SESSION is for session vars

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



Re: [PHP] Variables Help

2004-05-13 Thread Adrian
$GLOBALS

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



Re: [PHP] umm i am confused...

2004-06-19 Thread Adrian
action=module/personal/delete.phpdelete/td/tr);
replace this with
action=module/personal/delete.phpdelete/td/tr;

and remove the ; after } - it's ugly and useless ;)

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



Re: [PHP] Text Parser

2004-11-24 Thread Adrian
$string = str_replace(' ', ',', $string);

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



Re: [PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Adrian
check your preg_match() call...

things like $pattern and $msg are the spawn of satan btw.
there is ABSOLUTELY NO REASON to put variables in quotation marks
except that php has to parse the string which is slower than php just
seeing the variable.
and when a functions expects a reference, $variable will cause a
fatal error like it happens in your script.

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



Re: [PHP] PHP in MS-DOS

2005-01-17 Thread Adrian
DOS = 16bit
but I guess, PHP ist for 32+ bit ;)

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



Re: [PHP] Hacker IP and Script

2004-09-26 Thread Adrian
I would remove bad scripts like *Nuke.
Their code just sucks and has really lots of bugs.

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



Re: [PHP] convert video files to FLV

2009-04-08 Thread Adrian
Don't waste CPU power of shared servers for video recoding.
If you need that, get a dedicated server without other customers who
would probably be affected by you using lots of cpu power.

Besides that, if you cannot install own (compiled) software on it,
you'd have to use a pure php solution which would be HORRIBLY slow.


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



Re: [PHP] Delete File With Any File Extension

2010-06-15 Thread Adrian
Use glob() to get a list of matching afiles nd then unlink() them
separately.


 I need to delete a file with any file extension where i know the
 name of the file, is it possible to use regular expressions with the unlink 
 function?


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



[PHP] Non-existant folders??

2001-01-23 Thread Adrian Murphy

Hi,
I'm creating a little app whereby people will be able to create a simple
site for themselves (maybe 10 html pages).
here's the problem:
say their company is called "companyname" and my site is called
"www.mysite.com" i'd like their site to be located at

"http://www.mysite.com/companyname"

Is there a way i can do this without creating indivual folders for each
company.I'd like the whole creation process to be automated.
I'm sure the ftp functions in php would allow for the generation of new
folders for each,but since all content/style etc. will be pulled from a DB
it's seems to me a little pointless having all these folders with the same
php page in each.essentially i'd like a php script to run automatically each
time taking what looks like a folder name and making a call to the db using
this name as a variable.
easy,difficult or impossible?
thanx,
adrian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] multple select forms... going to hit my head against a wall ..

2001-01-23 Thread Adrian Murphy

hey,
since u are slecting multiple options you'll have to use an array
here's how.i u need explanation,feel free to mail me:

?
if ($select==""){
  print"
form method=\"post\" name=\"select\" action=\"test.php3\"
SELECT MULTIPLE NAME=\"select[]\"
Option VALUE=\"Chocolate\"Chocolate/Chocolate Chip
Option VALUE=\"Peanut\"Peanut Brittle/Vanilla
Option Selected VALUE=\"Cookie\"Cookie Batter
Option VALUE=\"Blueberry\"Vanilla/Blueberry
Option VALUE=\"Caramel\"Caramel Swirl
Option VALUE=\"Other\"Other...
/selectbr
input type=\"submit\" name=\"send\" value=\"test\"
/form
  ";

}else{

///count array
 $num = count($select);

file://loop through array
 for($i = 0;$i $num;$i++){
  print $select[$i] . "br";
 }
}
?
- Original Message -
From: [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 11:42 AM
Subject: [PHP] multple select forms... going to hit my head against a wall
..


 Hi all

 I'm having a slight little problem .. I can't seem to solve..

 I have a multiple select form .. that i select mutiple options from and
then it creates a variable called $select
 now if I display $select .. I only get the last selected value .. here
foloows test code..

 ?
 if ($select==""){
   print"
 form method=\"post\" name=\"select\" action=\"test.php3\"
 SELECT MULTIPLE NAME=\"select\"
 Option VALUE=\"Chocolate\"Chocolate/Chocolate Chip
 Option VALUE=\"Peanut\"Peanut Brittle/Vanilla
 Option Selected VALUE=\"Cookie\"Cookie Batter
 Option VALUE=\"Blueberry\"Vanilla/Blueberry
 Option VALUE=\"Caramel\"Caramel Swirl
 Option VALUE=\"Other\"Other...
 /selectbr
 input type=\"submit\" name=\"send\" value=\"test\"
 /form
   ";

 }else{

   print $select;

 }
 ?

 I'm de missing something ... can sombody please lend a hand .. thanks

 Henti Smith


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Encoder price too high (was: Zend hit)

2001-01-25 Thread Adrian Teasdale


"Uioreanu Calin" [EMAIL PROTECTED] wrote in message
 Hello,

 What do you think about Zend position?

I thought I would reply to the list on this one, basically to see if I am in
the minority (and if so, I will shut up!)...

Firstly, many people who use PHP do so to make money - I know I do!
Therefore, I don't see anything wrong with the guys at Zend developing
products that make my life easier, make PHP a better product and they can
get paid for doing so.

However, although I have said the above, I do feel that the price points
that have been chosen are very disapointing, especially for the Encoder
Unlimited which is priced at $6000.  The guys at Zend have raised
expectations for their products since they launched their site and I have
been looking forward to the Encoder (as it is now called) for most of that
time.  I can only think that it is the much larger companies that can afford
this kind of price and I now feel that I cannot have a "feature" that I had
been waiting to use for some time.  Cold Fusion has a method of encryting
it's code, and it comes like that out of the box (and at a much cheaper
price).  What the guys at Zend are basically saying is that if you want to
use the better product (ie PHP) and want the encryption functionality found
in products like Cold Fusion, then you are going to have to pay handsomely
for it!  I would definitely have paid $1000 for the Unlimited Encoder, but
no more than that.

What does everyone else think?  Am I being unfair here in my assessment?

I know that there has been an argument on the Zend site that "until 2 days
ago, you were happy using PHP", but I disagree with that because I've been
waiting so long for the Encoder knowing I needed it, and delaying on
releasing a couple of low-cost ($20 each) apps until it was ready

Finally, is there anything else out there either a) in the open source
community or b) commercially available at a more sensible price?  If not,
are there people on this list who could band together to develop something
that competes against it?

Any replies always appreciated :)

Ade




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] A apache/php/mysql/linux security tutorial?

2001-01-27 Thread Adrian Teasdale



 I have read through variouos docs to learn about security issues for
running
 a linux/apache/mysql/php server and have learned a lot.  What I'd like,
 though, is to know if there is an overall tutorial on this specific topic,
 where all the info is in one place?  Hopefully aimed at the newbie?

I can't actually answer your question on this, but I think a resource site
where all the info is placed together would be an excellent idea.  I know
that the Cold Fusion community has a site devoted to this.  Count me in if
you want to start developing something like this

Ade

---  i n o v i c a . c o m  
e: [EMAIL PROTECTED]
w: http://www.inovica.com

Web Apps, virtual communities and vertical portals
Hosting and dedicated servers just around the corner
Contact us for low-cost domain name registration



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 2 questions

2001-02-04 Thread Adrian Teasdale

Hi I have a couple of questions.  One about hosting and the other about IP
addresses.  The first on the IP's.

I have been speaking to a company that I am looking at getting a dedicated
server from.  They ONLY do one IP address per server and use name-based
hosting.  I have asked for dedicated IP's, but their answer has been that
all hosting companies are going to have to go to name-based hosting now.
What is everyone's feeling on this?  Years ago, the company I was with used
name-based and I remember that the search engines did not like this

On to hosting, the above server is a Cobalt Raq 4i.  Does anyone else on the
list use one of these and what do you think? I want to make sure that it's
easy enough to compile latest php and mysql whenever I want to

Thanks for any advice

Ade


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP mySQL primer?

2001-03-06 Thread Adrian Murphy

first i'd set up phpmyadmin.
http://www.phpwizard.net/projects/phpMyAdmin/
it' great and really easy to use for you mysqldb.
once you've done that.there's a useful tutorial on webmonkey for what u
need.
http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming

g'luck

- Original Message -
From: John Vanderbeck [EMAIL PROTECTED]
To: PHP User Group [EMAIL PROTECTED]
Sent: Tuesday, March 06, 2001 2:10 PM
Subject: [PHP] PHP  mySQL primer?


 Hello all,

 I'm lookign at having to do a user registration setup, and I would imagine
 the best way to do that would be a databse.  The server has mySQL setup on
 it, but I have no experience with it.

 Can anyone point me to some good basic primers?  Soemthing that just
creates
 a db that holds user names and passwords?

 - John Vanderbeck
 - Admin, GameDesign


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Active-X

2001-03-28 Thread Adrian Murphy

allegedly this works,but i haven't tried it and can't remember where i got
it but i used google,of course:

object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
 id=ebusiness width=191 height=174
param name=movie value="movie.swf"
param name=quality value=high
param name=bgcolor value=#00
  SCRIPT LANGUAGE="JavaScript"
!--

file://If this browser understands the mimeTypes property and recognizes the
MIME Type file://"application/futuresplash"...
if (navigator.mimeTypes 
navigator.mimeTypes["application/x-shockwave-flash"]){

   file://...write out the following EMBED tag into the document.
   document.write('embed src="movie.swf" quality=high bgcolor=#00
width=191 height=174 type="application/x-shockwave-flash"/embed ');
}

file://Otherwise,...
else {

   file://...write out the following IMG tag into the document. The image
need
   file://not be the same size as the Flash movie, but it may help you lay
out the

   document.write('img src="images/log1.gif" width="50" height="50" alt=""
border="0"');
}
--

/SCRIPT

  /object
- Original Message -
From: Simon Ould [EMAIL PROTECTED]
To: 'AJDIN BRANDIC' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, March 28, 2001 3:36 PM
Subject: RE: [PHP] Active-X


 The following code snippet was copied from
 http://javascript.internet.com/miscellaneous/check-mimes.html
 Looking at it, I guess that it only works with Netscape.
 Maybe for a less UA specific solution you could have a start page that
 contains a small flash movie that redirects the user to the flash enhanced
 version of your site.
 If they aren't redirected then they don't have a flash enabled UA:
redirect
 them to a standard HTML version of your site.

 Regards,

 Simon.
 !-- ONE STEP TO INSTALL CHECK MIMES:

1.  Add the specified coding into the BODY of your HTML document  --

 !-- STEP TWO: Put this code into the BODY of your HTML document  --

 BODY

 CENTER
 SCRIPT LANGUAGE="JavaScript"

 !-- This script and many more are available free online at --
 !-- The JavaScript Source!! http://javascript.internet.com --

 !-- Begin
 document.writeln("TABLE BORDER=1TR VALIGN=TOP",
 "TH ALIGN=lefti",
 "TH ALIGN=lefttype",
 "TH ALIGN=leftdescription",
 "TH ALIGN=leftsuffixes/TR")
 for (i=0; i  navigator.mimeTypes.length; i++) {
 document.writeln("TR VALIGN=TOPTD",i,
 "TD",navigator.mimeTypes[i].type,
 "TD",navigator.mimeTypes[i].description,
 "TD",navigator.mimeTypes[i].suffixes,
 "/TR")
   }
 document.writeln("/TABLE")
 // End --
 /SCRIPT
 /CENTER

 pcenter
 font face="arial, helvetica" size="-2"Free JavaScripts providedbr
 by a href="http://javascriptsource.com"The JavaScript Source/a/font
 /centerp

 !-- Script Size:  0.87 KB  --

  -Original Message-
  From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 28, 2001 14:46
  To: elias
  Cc: [EMAIL PROTECTED]
  Subject: Re: [PHP] Active-X
 
 
  Thanks Elias but have you got a url that I could look at.
  I have tried www.javascript.com and www.javascripts.com but could not
  find anything.
 
  Ajdin
 ... snip ...

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] why some dll's don't work

2001-04-02 Thread Adrian Murphy

Certain dll's i try to use simply refuse to work.

php.ini is edited correctly.
php_ftp.dll works
php_gd.dll don't
php_ldap.dll works
php_oci8.dll don't(with oracle 8i personal inastalled)
etc.
whats going on.all the requiste dll's are in the right folder.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problem with unset($PHP_AUTH_USER );

2001-04-03 Thread Adrian Murphy

I use a login script with the header() function and $PHP_AUTH_USER etc.
the problem is once i've logged in once ,i refresh the page i stay logged
in.
i want to do testing with different privileges so i want to be asked for a
username
and password each time i've refreshed the page.I thought
unset($PHP_AUTH_USER)
right after i check the db would work but it doesn't.I've also tried
varieties of  ways
to avoid caching the page as well but nothing seems to work.this i know is a
damn simple problem.
but it's driving me a bit nuts.i even tried emptying my temp internet files
but to no avail.
what's going on?
thanx
a


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Novice question - please help

2002-02-11 Thread Adrian Murphy

use str_replace() instead of ereg_replace() ...in the same way described
- Original Message -
From: brendan conroy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 9:15 PM
Subject: [PHP] Novice question - please help


 Hi,
THANK YOU for reading this.I would really appreciate it if someone
could
 please email me if they know any easy way or an existing function for
 removing an unknown ammount of space characters from an array.

 Iam having an awful lot of trouble trying to remove multiple space
 characters from an array,

   ie.   x   +   y
 123456789

 where there are three or more spaces in a row(rep'd above by 234  678),
 basically weird user input.

 I have written code already, but I cant see where Ive gone wrong, here it
is
 if you care to look at it, and have a good chuckle, told you I was a
novice!
 I included the start page that allows you to see what the code does, in
you
 want to look at it.
 Thank you for your time, I'd really appreciate any replies!


 HTML
 BODY


 ?


 $x = 0;
 $ay=array();
 $g=array();
 $c = explode (' ', $a);


for($q=0;$q=count($c);$q++)
 {
 echofont color=green;
 echo$c[$q];
 echoHR;
 echo/font;
 }


 $c=array_reverse($c);


 for($w = 0;$wcount($c);$w++)

 {
 echo $w;
 $e=array_pop($c);
 if(($e == ' ')||($e == NULL))
 {

 echohi space;
 array_push($ay,$e);
 echoHR;
 }
 else
 {
 echohi no space;
 array_push($g,$e);

 }
 }



 echo(count($g));



 for($x=0;$x=(count($g));$x++)
 {
 echoBR;
 echo$g[$x];
 echoHR;
 }

 ?

 /BODY
 /HTML




 ==
 start page code
 ==



 html
 head
 titlenpage.php/title

 /head

 body bgcolor=#FF text=#00


 form action=newplan2.php method=post
 enter polynomial ? echo $i;? here:input type=text name=a

 input type=submit name=submit value=Submit Pols!



 /body
 /html




 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.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] image generation issues

2002-02-11 Thread Adrian Murphy

Hi,
I'm using the code in the manual to draw text  on a png.
but Its not working - ImageString() works but not ImageTTFText()
I uploaded arial.ttf from windows to fonts/ folder
Any Ideas:
as a side note: PNG's - any real disadvantage to using them
 instead of gifs - not withstanding the compuserve issue and
old browsers.

the code
button.php
?php
Header (Content-type: image/png);
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, fonts/arial.ttf,Testing... Omega: 
#937;);
ImagePng ($im);
ImageDestroy ($im);
?
and i call it with
img src=button.php border=0 alt=



Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy

i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 2:36 AM
Subject: RE: [PHP] image generation issues


 when you say it doesn't work, do you mean that you get an error message or
 it just doesn't write the text to the image?

 -Original Message-
 From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 12, 2002 1:16 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] image generation issues


 Hi,
 I'm using the code in the manual to draw text  on a png.
 but Its not working - ImageString() works but not ImageTTFText()
 I uploaded arial.ttf from windows to fonts/ folder
 Any Ideas:
 as a side note: PNG's - any real disadvantage to using them
  instead of gifs - not withstanding the compuserve issue and
 old browsers.

 the code
 button.php
 ?php
 Header (Content-type: image/png);
 $im = imagecreate (400, 30);
 $black = ImageColorAllocate ($im, 0, 0, 0);
 $white = ImageColorAllocate ($im, 255, 255, 255);
 ImageTTFText ($im, 20, 0, 10, 20, $white, fonts/arial.ttf,Testing...
 Omega: #937;);
 ImagePng ($im);
 ImageDestroy ($im);
 ?
 and i call it with
 img src=button.php border=0 alt=



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




Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy

tried everything suggested and still get 'could not read font' oh well
thanx.

- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:00 AM
Subject: Re: [PHP] image generation issues


 Adrian,
 If you're using the code displayed, you need to use $im before you destroy
 it.
 If you want to deal with it as a .png then use:
 ImagePNG($im,some_name.png,100);
 and then pick up the file anytime using
 img src=some_name.png
 You can later remove it from the server using:
 unlink(some_name.png);
 hope this helps.
 Hugh

 - Original Message -
 From: Martin Towell [EMAIL PROTECTED]
 To: 'Adrian Murphy' [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Monday, February 11, 2002 6:36 PM
 Subject: RE: [PHP] image generation issues


  when you say it doesn't work, do you mean that you get an error message
or
  it just doesn't write the text to the image?
 
  -Original Message-
  From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, February 12, 2002 1:16 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] image generation issues
 
 
  Hi,
  I'm using the code in the manual to draw text  on a png.
  but Its not working - ImageString() works but not ImageTTFText()
  I uploaded arial.ttf from windows to fonts/ folder
  Any Ideas:
  as a side note: PNG's - any real disadvantage to using them
   instead of gifs - not withstanding the compuserve issue and
  old browsers.
 
  the code
  button.php
  ?php
  Header (Content-type: image/png);
  $im = imagecreate (400, 30);
  $black = ImageColorAllocate ($im, 0, 0, 0);
  $white = ImageColorAllocate ($im, 255, 255, 255);
  ImageTTFText ($im, 20, 0, 10, 20, $white, fonts/arial.ttf,Testing...
  Omega: #937;);
  ImagePng ($im);
  ImageDestroy ($im);
  ?
  and i call it with
  img src=button.php border=0 alt=
 


 --
 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] image generation issues

2002-02-11 Thread Adrian Murphy

Thanx for all the help.I discovered the STUPID
little problem.my ftp software was set so it uploded .ttf
in ascii instead of binary.all works now.
thanks again
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:38 AM
Subject: Re: [PHP] image generation issues


 Hi
 Some of MS fonts wont work, try downloading some freeware fonts.
 Tom


 At 01:24 PM 2/12/02, Adrian Murphy wrote:
 tried everything suggested and still get 'could not read font' oh well
 thanx.
 
 - Original Message -
 From: hugh danaher [EMAIL PROTECTED]
 To: php [EMAIL PROTECTED]
 Sent: Tuesday, February 12, 2002 3:00 AM
 Subject: Re: [PHP] image generation issues
 
 
   Adrian,
   If you're using the code displayed, you need to use $im before you
destroy
   it.
   If you want to deal with it as a .png then use:
   ImagePNG($im,some_name.png,100);
   and then pick up the file anytime using
   img src=some_name.png
   You can later remove it from the server using:
   unlink(some_name.png);
   hope this helps.
   Hugh
  
   - Original Message -
   From: Martin Towell [EMAIL PROTECTED]
   To: 'Adrian Murphy' [EMAIL PROTECTED];
   [EMAIL PROTECTED]
   Sent: Monday, February 11, 2002 6:36 PM
   Subject: RE: [PHP] image generation issues
  
  
when you say it doesn't work, do you mean that you get an error
message
 or
it just doesn't write the text to the image?
   
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image generation issues
   
   
Hi,
I'm using the code in the manual to draw text  on a png.
but Its not working - ImageString() works but not ImageTTFText()
I uploaded arial.ttf from windows to fonts/ folder
Any Ideas:
as a side note: PNG's - any real disadvantage to using them
 instead of gifs - not withstanding the compuserve issue and
old browsers.
   
the code
button.php
?php
Header (Content-type: image/png);
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white,
fonts/arial.ttf,Testing...
Omega: #937;);
ImagePng ($im);
ImageDestroy ($im);
?
and i call it with
img src=button.php border=0 alt=
   
  
  
   --
   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 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] Php contract dublin ireland

2002-02-13 Thread Adrian Murphy

Hi dublin php people
here's a 1 month contract i can't do.


PHP /MySQL Vacancy
 
Many thanks for  registering  your details with us during this last 12
months . I have outlined below details of an urgent PHP/MySQL contract which
you may be interested in.
 
If you feel the role is suitable please reply on the email address
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  and I can call you to
discuss the role in more detail.
 
This is just a one month contract and will consist of more debugging than
developing. We are looking for someone to start immediately.




[PHP] center text on image

2002-02-14 Thread Adrian Murphy

I was wondering if it's possible to centre text precisely on
an image.I'm thinking I need to get the width of of
the string in pixels?,take this away from imagesx(image) and
devide by 2 to get x value.
so has anyone achieved this?



Re: [PHP] Re: center text on image

2002-02-14 Thread Adrian Murphy

cool, only i can't get it exactly centred in the y position
cos the numbers are baseline relatedi.e the letter 'y' goes under the
line. any ideas?
- Original Message -
From: J Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 6:48 PM
Subject: [PHP] Re: center text on image



 If you're using GD2, try looking at ImageTTFBox() and ImageFTBox().
They'll
 give you the coordinates for a bounding box around the text. Use them in
 relation to the image to center it properly.

 J



 Adrian Murphy wrote:

  I was wondering if it's possible to centre text precisely on
  an image.I'm thinking I need to get the width of of
  the string in pixels?,take this away from imagesx(image) and
  devide by 2 to get x value.
  so has anyone achieved this?


 --
 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] Change gif image with php

2002-02-16 Thread Adrian Murphy

button.php
?php
  Header(Content-type: image/gif);

 $string=str_replace(%20,  , $string);
 $theimage = images/ . $button ..gif;
$im = imageCreateFromgif($theimage);
$white = ImageColorAllocate($im, 255, 255, 255);


$font = /fonts/VERDANAB.TTF;
 $box = imagettfbbox ( 12, 0, $font, $string);


 $th=$box[7]-$box[3];
 $th= $th + 2;
 $py = (imagesy($im) -$th)/2;

 $px  = (imagesx($im) -($box[2]-$box[0]))/2;

 $size = 12;



 ImageTTFText ($im, $size, 0, $px, $py, $white,$font,$string);

Imagegif($im);
ImageDestroy($im);
?

fot this to work you need to upload VERDANAB.TTF to a folder called  'fonts'
and you call the image like this:
to draw 'hello' on a button called 'mybutton.gif' stored in 'images' folder
img src=button.php?string=hellobutton=mybutton

- Original Message -
From: Rodrigo Peres [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Saturday, February 16, 2002 7:49 PM
Subject: [PHP] Change gif image with php


 Hi list

 I have some buttons made in photoshop in .gif format. This buttons have
 round corner, feather, multiple colors etc. There's a way to open it with
 php and write some text to it. I know that is possible to create images,
but
 what about to change them??? I need to do this because the text that will
 fill the buttons come from mysql and change everyday.

 Thank's in advance


 Rodrigo


 ps: If someone want to see the button I'm talking look in
 http://www.celebnet.com.br/home.php under the AS ++.


 --
 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] implement yourname.mysite.com redirection

2002-02-18 Thread Adrian Murphy

Hi,
I'd like to implement a system whereby people have a subdomain on my site like so:
yourname.mysite.com
I've been reading the apache docs that say you can do this via virtual hosts.
Can I do it so 'yourname' can be anything - where all requests are sent
to the same page where i can parse the uri and query a db based on 'yourname'.
any reason why my isp might be reluctant to do this.I'm presuming I can't
do it via .htaccess?
as a side note what are the affects of this kind of redirection as far as search 
engines
go.I've heard that doing this kind of thing on a 404 page is a bad idea.



Re: [PHP] if(isset($submit))

2002-02-28 Thread Adrian Murphy

just use an input type=hidden and call it submit,thats what i do
- Original Message -
From: jtjohnston [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 28, 2002 5:32 AM
Subject: Re: [PHP] if(isset($submit))


 So I can forget using type=image :(
 Wah, it's not fair!

 :) J

 Martin Towell wrote:

  I used this code
 
  form action=/inetpub/wwwroot/top.html method=get
  input type=image src=none.gif width=125 height=25 name=submit
  value=submit
  /form
 
  when I clicked on the image, I got this url
 
  file:///C:/inetpub/wwwroot/top.html?submit.x=118submit.y=20
 
  so php would get this as $submit_x and $submit_y
 
  HTH
  Martin
 
  -Original Message-
  From: jtjohnston [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 4:17 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] if(isset($submit))
 
  Has anyone tried:
 
  input type=\image\  name=\submit\ value=\submit\
  src=\next.gif\ border=\0\ align=\ABSCENTER\
 
  instead of :
 
  input type=\submit\ name=\submit\ value=\\
 
  I can't get this to work:
  if(isset($submit))
 
  with:
 
  input type=\image\  name=\submit\ value=\submit\
  src=\next.gif\ border=\0\ align=\ABSCENTER\
 
  I'm not coding correctly?
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

 --
 John Taylor-Johnston
 --
---

   ' ' '   Collège de Sherbrooke:
  ô¿ô   http://www.collegesherbrooke.qc.ca/languesmodernes/
- Université de Sherbrooke:
   http://compcanlit.ca/
   819-569-2064




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




[PHP] mod_rewrite

2002-03-01 Thread Adrian Murphy

I'm building a website buider app and I'm giving users a
url of the form  username.mysite.com but I want to redirect
all url's that end with mysite.com to a script and query
the db based on username.I've learned that I need to use
mod_rewrite for this.The documentation suggests that this will cause
extra load on the cpu.should I be worried about this?
I'm hosting with a third party.What will their reaction to this be.
Has anyone done this sort of thing and is it advisable.
I don't want to redirect from a 404 page as there's a search engine issue with that.
As a side issue,there may be a lot of database updating
involed in the site and i'm wondering should i use mysql(i am at the moment).
any real world examples of the performance of mysql?I know it's great for selects.
Thanx
adrian murphy



[PHP] preload dynamic image problems

2002-03-06 Thread Adrian Murphy

This seems strange to me but i promise it's happening.
I'm dynamically creating images for a page ,calling them so:
img src=butonn.php?string=hello
I'm also preloading the mouseover versions.
the problem is that the images are not being preloaded:
javascript problem you say?
the strange thing is that when i use the source of the php
page and save it as a html page,the html page works fine!
I've encountered a few strange problems with image generation stuff.any ideas
adrian




[PHP] Re: Comparrison

2002-03-27 Thread Adrian Ciutureanu

http://php.net/ereg

Ron [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 How would I compare to variables where I would want one variable to equal
 only part or some of the other variable?
 Here is the code

 ?
 if ($HTTP_USER_AGENT !== %MSIE 5.5%) {
  print You must upgrade your browser;
 } else {
  exit;
 }

 ?

 Any suggestions





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





[PHP] what should be my wishlist?

2002-04-02 Thread Adrian Murphy

Hi I'm creaating my wishlist for my php build for my isp.
I've got the usual stuff gd/ftp/xml etc and was wondering 
what else should i ask for e.g. i've never used pear but it might be useful? curl etc.



Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adrian Murphy

or use javascript href=javscript:form.submit()
or if you really wanted you could encrypt the variable
pass it via the url and then decrypt it on the next page!
to avoid a reload  put no-cache in the header.
- Original Message -
From: Daniel Alsén [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Tuesday, April 02, 2002 4:02 PM
Subject: [PHP] Passing a variable invisibly via a href?


 Hi,

 i need to pass a variable by letting the user click on a link. Right now i
 do it like: page.php?variable=value

 However, i don´t want the variable, and it´s value to appear in the adress
 bar of the browser. And i don´t want people to be able to pass the same
 variable by reloading the destination page.

 Any pointers on how i can do this?

 Regards
 # Daniel Alsén| www.mindbash.com #
 # [EMAIL PROTECTED]  | +46 705 38 10 30 #
 # ICQ: 63006462   | +46 8 694 82 22  #
 # PGP: http://www.mindbash.com/pgp/  #


 --
 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] using .htaccess to repoint

2002-04-10 Thread Adrian Murphy

Hi,
my isp uses wildcard dns to point to the root.
I want to put a .htaccess file in the root to
repoint the wildcard requests to a sub-folder but
leave the normal request alone.
plese help or tell me an article i can read(i've looked but haven't found
one specifically dealing with this.)
adrian.



[PHP] Editor

2002-06-14 Thread Adrian Greeman

I am just surprised that noone mentioned HTML-Kit among all the editors
suggested.  I think it is fine and it even gives you a quick preview in
browser window  for HTML.  It gives you PHP among various other options
colouring the code differently and you can just highlight code to surround
it with php tags for example.

Does Java and other stuff too.

Lots of plug-ins endlessly under development

And it's FREE.

I have it plugged in as the external text editor of choice with Dreamweaver.





Regards


Adrian Greeman


Telephone +44 20 8672 9661
Mobile +44 780 329 7447

e-mail:-
[EMAIL PROTECTED]

or

[EMAIL PROTECTED]


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




[PHP] about file permissions + cuteftp

2002-06-23 Thread Adrian Murphy

hi,
how come when i make a dir thus

mkdir($basedir,0777);

cute can't then chmod or delete said dir.
also vice versa : when i create a dir with cute
with 777 access php can't do anything with it.
it's very annoying.



[PHP] Register globals off

2002-07-01 Thread Adrian Greeman

I am learning PHP with version 4.2. (Win ME, Apache, MySQL) on a PC

I have to understand the new register globals off methods and it seems
like a good idea to learn that from the beginning but all the books and
beginners guides gives examples the old way.

Would it be true to say that every time an example is given where data is
passed on (for forms and so forth) that I can simply replace the variable in
the example with $_POST or $_GET?  Or do I have to do more?
eg if a simple PHP file for handling form input takes in the data using
$LastName can I simply use $_POST[LastName]??  It seems to work for a very
simple example.   But should I read the array into a variable first?  And do
I need to do any validation or declaring of variables etc??  [I did have a
problem reading in a number -  the solution was to put (int) before the POST
array name though I don't understand why that was not needed with a string.

I am also unclear what happens when you send something using header()  -
does that also go into an array - if so which one and how do I use it?

This may all seem unecessarily complicated but I am not yet au fait with the
whole thing.


Regards

Adrian Greeman




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




[PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy


whats wrong with this.
it's getting stuck somewhere



function urls_clickable($string) { 
for($n=0; $n  strlen($string); $n++) 
{ 
if(strtolower($string[$n]) == 'h') { 
if(!strcmp(http://;, strtolower($string[$n]) . strtolower($string[$n+1]) . 
strtolower($string[$n+2]) . strtolower($string[$n+3]) . $string[$n+4] . $string[$n+5] 
. $string[$n+6])) { 
$startpos = $n; 
while($n  strlen($string)  eregi([a-z0-9\.\:\?\/\~\-\_\\=\%\+\'\], 
$string[$n])) $n++; 
if(!eregi([a-z0-9], $string[$n-1])) $n--; 
$link = substr($string, $startpos, ($n-$startpos)); 
$link = $link; 
$string_tmp = $string; 
$string = substr($string_tmp, 0, $startpos); 
$string .= a href=\$link\ target=\_blank\$link/a; 
$string .= substr($string_tmp, $n, strlen($string_tmp)); 
$n = $n + 15; 
} 
} 
} 
return $string; 
}

$text = http://www.somewhere.org brbr;
echo urls_clickable($text);



Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy

relax friend.i was just asking

- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Adrian Murphy [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 2:08 PM
Subject: Re: [PHP] whats wrong with this function


 Yes, your problem is it doesn't work.

 HTH,
 ---John Holmes...

 PS: Think that's a worthless answer? Well...same for your question...

 - Original Message -
 From: Adrian Murphy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 03, 2002 8:47 AM
 Subject: [PHP] whats wrong with this function



 whats wrong with this.
 it's getting stuck somewhere



 function urls_clickable($string) {
 for($n=0; $n  strlen($string); $n++)
 {
 if(strtolower($string[$n]) == 'h') {
 if(!strcmp(http://;, strtolower($string[$n]) . strtolower($string[$n+1])
.
 strtolower($string[$n+2]) . strtolower($string[$n+3]) . $string[$n+4] .
 $string[$n+5] . $string[$n+6])) {
 $startpos = $n;
 while($n  strlen($string)  eregi([a-z0-9\.\:\?\/\~\-\_\\=\%\+\'\],
 $string[$n])) $n++;
 if(!eregi([a-z0-9], $string[$n-1])) $n--;
 $link = substr($string, $startpos, ($n-$startpos));
 $link = $link;
 $string_tmp = $string;
 $string = substr($string_tmp, 0, $startpos);
 $string .= a href=\$link\ target=\_blank\$link/a;
 $string .= substr($string_tmp, $n, strlen($string_tmp));
 $n = $n + 15;
 }
 }
 }
 return $string;
 }

 $text = http://www.somewhere.org brbr;
 echo urls_clickable($text);



 --
 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] whats wrong with this function

2002-07-03 Thread Adrian Murphy

thnks,
i didn't write the function so i've now replaced it
with something better.
- Original Message -
From: Stuart Dallas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 2:30 PM
Subject: Re: [PHP] whats wrong with this function


 On Wednesday, July 3, 2002, 1:47:05 PM, Adrian Murphy wrote:
  whats wrong with this.
  it's getting stuck somewhere

 Somewhere isn't very helpful. When asking for help be sure to include as
much
 information as possilble.

 Laying out your code so the structure can be seen...

 ?php
 function urls_clickable($string)
 {
   for($n=0; $n  strlen($string); $n++)
   {
 if(strtolower($string[$n]) == 'h')
 {
   if(!strcmp(http://;, strtolower($string[$n]) .
strtolower($string[$n+1]) . strtolower($string[$n+2]) .
strtolower($string[$n+3]) . $string[$n+4] . $string[$n+5] . $string[$n+6]))
   {
 $startpos = $n;

 while($n  strlen($string) 
eregi([a-z0-9\.\:\?\/\~\-\_\\=\%\+\'\], $string[$n]))
   $n++;

 if(!eregi([a-z0-9], $string[$n-1]))
   $n--;

 $link = substr($string, $startpos, ($n-$startpos));
 $link = $link;
 $string_tmp = $string;
 $string = substr($string_tmp, 0, $startpos);
 $string .= a href=\$link\ target=\_blank\$link/a;
 $string .= substr($string_tmp, $n, strlen($string_tmp));
 $n = $n + 15;
   }
 }
   }
   return $string;
 }

 $text = http://www.somewhere.org brbr;
 echo urls_clickable($text);
 ?

 It's getting stuck because you're moving the goalposts. It's a very bad
idea to
 base a loop on a variable that is changed within the loop. I suggest you
loop
 through one string while building a second string as the return value.

 On the other hand, I seem to remember seeing a regex posted on this list
 recently that did exactly this. I suggest you search the archives for it
 because it would save you a lot of hassle.

 --
 Stuart


 --
 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] mod_rewrite problem

2002-07-18 Thread adrian murphy



Hi,
the following code redirects www.usersite.mysite.biz  to 
www.mysite.biz/users/sites/usersite

the problem is when the 'www' is left out it doesn't work.
could someone help me to fix this?
many thanks




RewriteEngine on
RewriteCond   %{HTTP_HOST} ^www\.[^.]+\.mysite\.biz$
RewriteRule   ^(.+)%{HTTP_HOST}$1  [C]
RewriteRule   ^www\.([^.]+)\.mysite\.biz(.*) http://www.mysite.biz/users/sites/$1
RewriteCond   %{HTTP_HOST} ^www\.[^.]+\.mysite\.ie$
RewriteRule   ^(.+)%{HTTP_HOST}$1  [C]
RewriteRule   ^www\.([^.]+)\.mysite\.ie(.*) http://www.mysite.biz/users/sites/$1


adrian.



[PHP] what do i put in .htaccess to achieve this

2002-04-15 Thread Adrian Murphy

Hi,
I use wildcard dns to point all requests at the root e.g
whatever.mysite.com goes to root etc.however i'll like to redirect these requests to 
mysite.com/users/sites/whatever
so what do i put in the .htacces file bearing in mind that i want requests just for 
mysite.com to be left alone.
thanx
adrian



[PHP] what do i put in .htaccesss to achieve this

2002-04-15 Thread Adrian Murphy

Hi,
I use wildcard dns to point all requests at the root e.g
whatever.mysite.com goes to root etc.however i'll like to redirect these requests to 
mysite.com/users/sites/whatever
so what do i put in the .htacces file bearing in mind that i want requests just for 
mysite.com to be left alone.
thanx
adrian



[PHP] Re: [HELP] redirect browser pass variable !

2002-04-21 Thread Adrian Ciutureanu

{  header(Location: http://www.XXX.edu/index.php?variable=$variable;);
  exit;}

Joe [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am using header function to redirect browser.

 {  header(Location: http://www.XXX.edu/index.php;);
   exit;}

 Although it can redirect the browser but variable had not pass to next
page.

 So can anyone teach me how to pass variable and redirect browser at same
 time?

 Thx !

 Joe





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




[PHP] How to get allocated memory?

2002-04-22 Thread Adrian Ciutureanu

I get the PHP Fatal error:  Allowed memory size of N bytes exhausted and I
want to check free memory at some point in a script. How can I do that?



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




[PHP] Re: deleting lines in a textfield

2002-04-22 Thread Adrian Ciutureanu

?php
$file_name = 'test.txt';
$line_no_to_delete = 2;

$f = fopen($file_name, 'rw+');
$s = explode(\n, fread($f, filesize($file_name)));
unset($s[$line_no_to_delete - 1]);
fseek($f, 0);
fputs($f, implode(\n, $s));
fclose($f);
?

Kris Vose [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How would you go about deleting a specific line in a textfield via PHP?  For
example, I want to delete line 2 only and save the changes.  How would I go
about doing this using fopen and fwrite?

Kris




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




[PHP] Re: adding numbers to a file

2002-04-22 Thread Adrian Ciutureanu

?php
$file_name = 'test.txt';
$new_value = rand(1000, 100);

$f = fopen($file_name, 'rw+');
$s = explode(\n, fread($f, filesize($file_name)));
$s[1] = substr($s[1], 0, 11) . $new_value;
fseek($f, 0);
fputs($f, implode(\n, $s));
fclose($f);
?

Craig Westerman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have a simple count file named count_db that contains ONLY the
following:

 {
 'total' = 3954
 }

 How do I open file, find numbers in the file, add $newnumbers to existing
 numbers. Then write these new numbers over the original numbers and close
 the file. I'm just needing to do this once a day to correct a poor count.

 Thanks

 Craig 
 [EMAIL PROTECTED]



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




[PHP] Re: From where was function called?

2002-04-23 Thread Adrian Ciutureanu

You can use the 'magic constants' __FILE__ and __LINE__
For example, if you have an editor that can replace the newline \n
character, you can replace all \n with
\nerror_log(__FILE__ . '[' .  __LINE__ . ']');

Nico Van Der Dussen [EMAIL PROTECTED] wrote in message
3CC45EB5.6064.19C3129@localhost">news:3CC45EB5.6064.19C3129@localhost...
 Hi,

 I'm having a real problem:

 In a codeset of more than 5000 lines of code, I have a rogue call to a
 function.

 Is there a way I can determine in a function from where the call was
 made?  (Filename, linenumber etc)

 Thanks

 Nico




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




[PHP] Re: validating user input

2002-04-24 Thread Adrian Ciutureanu

No validating user input is needed if you are using OCIBindByName.
See also the Avertisment at www.php.net/OCIBindByName

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hi the M.L.

 I have to validate forms user inputs before the construction of my query
to
 my Oracle DB

 Does anybody know the list of characters that should be rejected (for
 example ;) ?

 Do you have a function to validate it ?


 regards
 Laurent Drouet





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




[PHP] load testing utility

2002-04-29 Thread Adrian Murphy

anyone have a recommendation for a good free/cheap  load testing utility for php/mysql 
sites?
thanx
adrian



[PHP] search engine indexing and redirects

2002-05-17 Thread Adrian Murphy

Hi all,
firstly: i know nowt about search engines/crawlers spiders really.
i'm giving users fake sub-domains i.e
www.username.mysite.com gets redirected to www.mysite.com/users/sites/username via 
mod_rewrite/wildcard dns
so i'm wondering if search engines will have any trouble indexing those sites.
i was talking to an 'internet consultant' who
has a flash red sports car and earns about 5 times more than me and he said i should 
look into this.
i would have thought that server-side redirects are no problem for crawlers.
i set up a google adwords thingy for one of the sites and it
worked for a while but now they've come back to me saying the url 
doesn't work when it clearly does.i've asked the google folks about this and am 
waiting for them to get back.
was just wondering if anyone had experience of this sort of thing.
thanks
adrian



[PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy

Hi,
my isp has set up an internal redirect that
resolves  www.mysite.biz to www.mysite.com
how can i check if the request was for the .biz version.
thx



Re: [PHP] apache redirect and request

2002-05-17 Thread Adrian Murphy

naw.i tried that and all i get is the .com all the time
- Original Message - 
From: Jared Boelens [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 17, 2002 2:34 PM
Subject: RE: [PHP] apache redirect and request


 getenv(HTTP_HOST); 
 
 Then parse the data as you need to to get to the root of the domain.
 
 -Jared
 
 -Original Message-
 From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 17, 2002 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] apache redirect and request
 
 
 Hi,
 my isp has set up an internal redirect that
 resolves  www.mysite.biz to www.mysite.com
 how can i check if the request was for the .biz version.
 thx
 
 
 -- 
 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] looking for training course in london

2002-05-17 Thread Adrian Murphy

Hi,
anyone know/done good php training courses in london
thx
adrian



Re: [PHP] what does this mean in plain english?

2002-05-17 Thread Adrian Murphy

The ? in this senario is called the ternary operator
basically shorthand for an if/else statement e.g

$theValue = ($theValue != ) ? ' . $theValue . ' :NULL;

is the equivalent of

if($theValue != ) {
$theValue =$theValue ;
}
else{
$theValue =NULL;
}

- Original Message -
From: Jeff Field [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 17, 2002 6:23 PM
Subject: [PHP] what does this mean in plain english?


 Hi. I'm fairly new to PHP and programming in general.  I'm learning mostly
 by deconstructing what others have written...but even though I have plenty
 of PHP books and have searched the Internet high and low, I'm stumped by
the
 exact meaning in the following function of what the question mark's (?)
 and colon's (:), mean and do?

 BTW, I'm not looking for an explanation of the function; just what the
 question mark's and colon's mean in plain english, so I'll know how to use
 them in other places.  Thanks!

 Jeff

 --
 function GetSQLValueString($theValue, $theType)
 {
   $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) :
$theValue;

   switch ($theType) {
 case text:
   $theValue = ($theValue != ) ? ' . $theValue . ' : NULL;
   break;
 case int:
   $theValue = ($theValue != ) ? intval($theValue) : NULL;
   break;
   }
   return $theValue;
 }
 --


 --
 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] Re: Session problem

2002-05-24 Thread Adrian Ciutureanu

All you have to do is to call

session_name(EmailSess);
session_start();

in rest of pages.

BTW: You don't really need to call session_name()


Manisha [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am facing so many problems - first file lock and now for session - I
 still could not understand how to get the session value in another page. I
 am very new to PHP. I tried many many ways to get it

 Actually I want to store ID in a session and want to get back this ID in
 rest pages. Can you give me one by one step to do it.


 First page -

 session_name(EmailSess);
 session_start();
 $ID = 1;
 session_register(ID);


 -

 How to get back this ID in another pages ?

 Please help, I am stuck

 Manisha





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




[PHP] Can't get Apache and PHP to run together -each seems to work OK WinME

2002-05-25 Thread Adrian Greeman

I am not an advanced user but not incapable.  Please bear with me for
any amateurishness.

I am trying to get PHP to work with Apache.
I have a Windows ME PC, 2Mhz and 512 of RAM.

I want it only to learn PHP and then test out a few things, using
MySQL too.

I downloaded Apache version 1.3.24 and installed it plain and
simple.It starts up.

I have also installed PHP version 4.2.1.  I have also a version of
MySQL loaded (4.0.1) and that sits happily running under a
WinMySQLAdmin logo in the corner of the screen.

I carefully followed the help files and looked up articles and books
for instructions for setting up the config file and have made changes
to Apache so the relevant sections now read like this.
(There seem only to be a few necessary changes)./


QUOTE
   ScriptAlias /cgi-bin/ C:/Program Files/Apache
Group/Apache/cgi-bin/

#
# C:/Program Files/Apache Group/Apache/cgi-bin should be changed
to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
Directory C:/Program Files/Apache Group/Apache/cgi-bin
AllowOverride None
Options None
Order allow,deny
Allow from all
/Directory

/IfModule

ScriptAlias /php/ C:/PHP/



# End of aliases.

END QUOTE


and ..


QUOTE

 #
# AddType allows you to tweak mime.types without actually editing
it, or to
# make certain files to be certain types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml

Action application/x-httpd-php /php/php.exe

END QUOTE

With this done the Apache config tester says the syntax is OK and when
I access localhost  (using IE6) up comes the Apache information page
saying it is running.

But when I ask for  localhost/phpinfo.php
(I have a phpinfo function written into a file with that extension)
I get an error 500 internal configuration is wrong message.



Maybe it is PHP that is wrong?So I have checked all the changes
needed for installing PHP --- again after reading the php site and
looking a FAQs etc.

I mean putting the php4tl file into Windows/System etc and PHP.ini
into Windows.  (I used the Windows installer anyway and have again
carefully followed the changes needed to the INI file.)



Still the problem.

A PHP FAQ says that if you get a 500 error (internatl config problem)
it is worth testing with the command line:

php.exe -i


so I did this in DOS. Reams of HTML stuff whizzed by.
According to the FAQ answer this means PHP  is OK.

So back to Apache.  But that is as above.

I tried Netscape version 2 and IE6   -   both give the same answer. So
it is not the browser because I have tried different ones.

It is not PHP because on the command line that works OK and shows
PHPINFO stuff.

It is not Apache because it says it is running in the browser windows
when you call localhost.

So - I am being driven slowly nuts with frustration.

May I ask for any ideas?

(I should add that I am a rank amateur trying to do all this so please
take it slowly).

Regards from
Adrian Greeman



Regards from
Adrian Greeman

52 Salterford Road, Tooting, London, SW17 9TF

Phone  +44 (0)20 8672 9661
Mobile  +44 (0)780 329 7447

Fax:  I can receive these
on the computer
but only when present
- please phone first


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




[PHP] xcopy inside of exec()

2002-05-29 Thread Adrian Christen

Hi!

I'm traying tu use the xcopy commando from win 2000 under php4, to move folders:

?
 //like this:
exec('cmd /c xcopy c:\source c:\target');
?

But it does not work ... also passthru() does not give any (expected) answer?
Where i'm wrong?

Thanx for your answers!

Adrian



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




Re: [PHP] Smart URLs

2002-06-02 Thread Adrian Murphy

 whenever a URL like
 mysite.com/thumbnails/funny/4
 i called the thumbnails.php is excuted, in which you

I think if you call it thumbnails.php it won't work.
however if the script is simply called thumbnails then it'll
work.of course you then must make sure that 'thumbnails'
is parsed as php.do this with a .htaccess file :

Files thumbnails
ForceType application/x-httpd-php
/Files

- Original Message -
From: Andrew Brampton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, June 02, 2002 1:20 PM
Subject: Re: [PHP] Smart URLs


 You can do this with just PHP, but I think php must be installed as a
 module.
 Basically place a file called thumbnails.php in your site route, then
 whenever a URL like
 mysite.com/thumbnails/funny/4
 i called the thumbnails.php is excuted, in which you chop up the URL, and
 find all your varibles...

 Here is a example of some URL chopping (some code I stole from my source)
 /*
 Sample URLs:
 /s/1/2/SchoolName/StudentName/ -Shows Student Page (with ID 2)
 /s/1/0/SchoolName/-Shows Students At School (with school ID 1)
 /s/1/2/   -would work as well (name in URL for search engines)
 /s/1/0/   -would work as well
 /s/-Shows Schools
 */

 $url_array=explode(/,$REQUEST_URI);  //BREAK UP THE URL PATH
//USING '/' as delimiter
 if ($url_array[1] == 's')
  {
  if (isSet($url_array[2]))
   $url_sID=$url_array[2];  //School ID
  if (isSet($url_array[3]))
   $url_stID=$url_array[3];//Student ID
  if (isSet($url_array[4]))
   $url_sName=$url_array[4];  //School Name (not used)
  if (isSet($url_array[5]))
   $url_stName=$url_array[5];//Student Name (not used)
  }
 /*

 There was a article on phpbuilder.com that explains the benefits and
 pitfalls of this idea... Here is the URL:
 http://www.phpbuilder.com/columns/tim19990117.php3 and I think there was a
 follow up article as well

 Enjoy
 Andrew

 - Original Message -
 From: Scott 'INtense!' Reismanis [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 03, 2002 5:28 AM
 Subject: [PHP] Smart URLs


  Hey all,
 
  I was recently trying my luck at dabbling in some mod_rewrite
  stuff, and I have run into numerious errors. Basically my aim is to
  re-write my sites URLs so instead of being say,
  mysite.com/thumbnails?type=funnygallery=4 the URL is neat, similar to
  many sites who would have something like mysite.com/thumbnails/funny/4
 
  What ways are there of achieving this (excluding, redirecting the URL
  and creating the page say index.htm automatically)? I have tried
  mod_rewrite for two days solid to no avail. I am not sure if it is my
  poor coding or the fact that I am running apache2 on a Windows platform
  which are said not to support such a module well. If any alternatives
  could be proposed or even better someone could suggest a mod_rewrite
  routine which would transparently transform any url like
  mysite.com/whatever/4/6 to mysite.com/whatever.php it would be greatly
  appreciated. So far the rewrite you see below will work with
  mysite.com/whatever/ however the minute you add something onto the end
  i.e. mysite.com/whatever/4/ it will raise the error Premature end of
  script headers: php.exe, instead of loading whatever.php as intended.
 
  RewriteEngine On
  Options +FollowSymlinks
  RewriteBase /
  RewriteRule ^/(.+)/(.+) $1.php [L]
 
  Thanks for your time and hopefully someone understands what I am trying
  to say :), and as always any suggestions at all would be awesome!
 
  Regards,
 
 
 Scott 'INtense!' Reismanis
 Mod Database System Administrator
 [EMAIL PROTECTED]
 http://www.moddb.com/ - Every Game, Every Mod, One
  Site... Go Figure!
 
 
 
 
  --
  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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] A quick question - Help Please !

2002-08-19 Thread Adrian Murphy

to do it with javascript u could post the form to
another local page with a form with hidden fields -
send the mail and use onload= to post the second form.
would be a messy way to do it but would work.

adrian murphy
- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Dan McCullough [EMAIL PROTECTED]; PHP General List
[EMAIL PROTECTED]
Sent: Monday, August 19, 2002 3:09 PM
Subject: Re: [PHP] A quick question - Help Please !


 That's REALLY strange that the payment site doesn't return anything...  So
 the user just hits a dead-end or what?  Can we see a test site?

 And the fact that it all needs to be secure makes it a little more
 challenging.

 Essentially, what you need is for one form to POST to two separate
 scripts... one local, and one on another server.  My thoughts are that
you'd
 need to POST to a local script which produces the email AND THEN submits
 info to the merchant.

 But the fact that this probably needs to be done:
 a) with POST
 b) with SSL

 Will prolly make it very tricky.  Search the archives for emulating POST
 or faking POST, because I know it's been discussed before.


 Yes, you probably CAN do it with javascript, but I'm not sure I'd be
 comfortable relying on it AT ALL -- if it doesn't exist, then your site
 breaks -- either the email or the merchant stuff will break if you rely on
 JS.


 Justin French


 on 19/08/02 11:54 PM, Dan McCullough ([EMAIL PROTECTED]) wrote:

  Hello everyone,
 
  I have a quick question.
 
  I am trying to do two seperate things on one submission, it would be
easy if I
  was submitting to
  my own page, but I am submitting to a payment processor company, and so
  several things will occur
  off-site, and there is nothing that comes back from the payment
processor when
  then payment is
  made so I can't handle it on the return.  And so what I am doing now is
when
  you land on the page
  to confirm that you want to place the order an email is created and sent
to
  the owner, I would
  like that to only get sent when the submit button is clicked .. and yes
I have
  tried onSubmit with
  it calling my php function.
 
  Any thoughts?
 
  thanks,
 
  dan
 
  __
  Do You Yahoo!?
  HotJobs - Search Thousands of New Jobs
  http://www.hotjobs.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] Apache 2

2002-08-20 Thread Adrian Ciutureanu

Hi,

There is a note at http://www.php.net/ChangeLog-4.php for Version 4.2.0
(Note: Apache2 support is EXPERIMENTAL.)
Is it still justified?

adu




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




[PHP] Apache 2 and PHP

2002-08-21 Thread Adrian Ciutureanu

At http://www.php.net/ChangeLog-4.php#4.2.0 there is a note (Note: Apache2
support is EXPERIMENTAL.)
Is this note still justified for PHP/4.2.2? Is it about security?



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




Re: [PHP] why is html code written like this? hr /

2002-09-02 Thread Adrian Murphy

thats xhtml - it's xml comliant html.
tags must be closed so a tag like hr which didn't
have a closing tag is written hr / 
so,for example in php the nl2br() function now produces
br / instead of the old br
- Original Message - 
From: Victor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 02, 2002 12:16 PM
Subject: [PHP] why is html code written like this? hr /


 When I learned html it was always written like this: /hr now I see
 people write it like this: hr /... why?
 
 - Victor  www.argilent.com
 
 
 __ 
 Post your free ad now! http://personals.yahoo.ca
 
 -- 
 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: Fw: [PHP] question about Location

2002-09-06 Thread adrian murphy

make sure there is no whitespace before first ?

- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:34 AM
Subject: Re: Fw: [PHP] question about Location


 Put your code that takes care of the post before the line 2, output the
 header and exit. Like this
 ?
 if($_POST['submit']) {
 do what needs to be done
 header(Location: nextpage.php);
 exit;
 }

 include start_html.php


 Meltem Demirkus wrote:

 I tried , but it is giving this error:
 
 Warning: Cannot add header information - headers already sent by (output
 started at C:\FoxServ\www\debugger\project_module\project_update_.php:2)
in
 C:\FoxServ\www\debugger\project_module\project_update_.php on line 37
 
 the line 2  is   ? include start_html.php ?
 
 and  start_html.php includes:
 
 ? include(defaults.php) ?
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
 HTML
 HEAD
 TITLE ? echo $page_title ?/TITLE
 META http-equiv=Content-Type content=text/html;
charset=windows-1254
 /HEAD
 BODY
 
 
 and line 37 is the header I wrote ? header(Location: yournewpage.php);
 ?
 
 
 - Original Message -
 From: Marek Kilimajer [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:55 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 ?  ? doesn't mean output unless you use echo or print or whatever to
 output from there anything.
 Just use header(Location: yournewpage.php); at the end.
 
 Meltem Demirkus wrote:
 
 
 
 I mean  I made a page with php and other stuff..And there is form
.When
 
 
 I
 
 
 click on okbutton  php is dpoing what it should . But after want the
 
 
 page
 
 
 
 
 to
 
 
 
 
 come to another link.I asked that before and they told me that ..
there
 
 
 
 
 must
 
 
 
 
 be no uotput but I am using ?...? which means  output..
 
 so I dont know what to do..
 meltem
 
 
 - Original Message -
 From: Brad Bonkoski [EMAIL PROTECTED]
 To: Meltem Demirkus [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 12:36 PM
 Subject: Re: [PHP] question about Location
 
 
 
 
 
 
 Not quite sure what you are getting at here?  A hyper link would
direct
 the user to another page :-)
 If you mean after a timeout/auto-magically perhaps you can try meta
 
 
 
 
 refresh:
 
 
 
 
 http://www.htmlhelp.com/reference/html40/head/meta.html
 
 HTH
 -Brad
 
 Meltem Demirkus wrote:
 
 
 
 
 Is there anyway  to direct my page to another after the php and
output
 process work on the page?
 
 thanks
 meltem demirkus
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --
 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Source code

2002-09-06 Thread adrian murphy

add nl2br() to make it look pretty e.g

span
?
$mem = join('', file('index.htm'));

$mem = htmlspecialchars($mem);
$mem = nl2br($mem);
echo $mem;
?
/span
- Original Message - 
From: Roman Duriancik [EMAIL PROTECTED]
To: PHP-General [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:53 AM
Subject: [PHP] Source code


 How I show in IE source code of html page with php ?
 
 
 roman
 
 
 -- 
 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] images no appearing

2001-09-24 Thread Adrian D'Costa

Hi,

I wrote a php script to create a dynamic graph (image/jpeg).  On my
development system the image appears on my website it gives Image/Jpeg
support not compiled.

Below are the config settings:

My system:
Configure Command ^@ './configure' '--prefix=/usr'
 ^@'--with-config-file-path=/etc' '--disable-debug'
 ^@'--enable-pic' '--enable-inline-optimization'
 ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs'
 ^@'--disable-static' '--with-exec-dir=/usr/bin'
 ^@'--with-regex=system' '--with-gd'
 ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm'
 ^@'--enable-debugger' '--enable-magic-quotes'
 ^@'--enable-safe-mode' '--enable-track-vars'
 ^@'--enable-ftp' '--with-mysql' '--with-xml'
 ^@'--enable-trans-sid'
 ^@'--with-readline=/usr/include/readline'

My webserver the info can be got from vvmm.net/phpinfo.php.

They my provider has given --with-jpeg-dir=/usr/lib still the image does
not appear.  Even in the gd section it does not give JPG Support
enabled.  Only give.  Right now I have changed the program to work with
gif.  My question, why not Jpg??

Adrian



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] images no appearing

2001-09-24 Thread Adrian D'Costa


Hi,

I wrote a php script to create a dynamic graph (image/jpeg).  On my
development system the image appears on my website it gives Image/Jpeg
support not compiled.

Below are the config settings:

My system:
Configure Command ^@ './configure' '--prefix=/usr'
 ^@'--with-config-file-path=/etc' '--disable-debug'
 ^@'--enable-pic' '--enable-inline-optimization'
 ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs'
 ^@'--disable-static' '--with-exec-dir=/usr/bin'
 ^@'--with-regex=system' '--with-gd'
 ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm'
 ^@'--enable-debugger' '--enable-magic-quotes'
 ^@'--enable-safe-mode' '--enable-track-vars'
 ^@'--enable-ftp' '--with-mysql' '--with-xml'
 ^@'--enable-trans-sid'
 ^@'--with-readline=/usr/include/readline'

My webserver the info can be got from vvmm.net/phpinfo.php.

They my provider has given --with-jpeg-dir=/usr/lib still the image does
not appear.  Even in the gd section it does not give JPG Support
enabled.  Only give.  Right now I have changed the program to work with
gif.  My question, why not Jpg??

Adrian




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Undelivered Mail Returned to Sender (fwd)

2001-09-24 Thread Adrian D'Costa



-- Forwarded message --
Date: Mon, 24 Sep 2001 08:35:03 +0200 (CEST)
From: Mail Delivery System [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Undelivered Mail Returned to Sender

This is the Postfix program at host mail.aaz-netmarketing.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to postmaster

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

[EMAIL PROTECTED]: can't create user output file. Command
output: procmail: Error while writing to /var/spool/mail/dtt


Reporting-MTA: dns; mail.aaz-netmarketing.com
Arrival-Date: Mon, 24 Sep 2001 08:35:03 +0200 (CEST)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; can't create user output file. Command output:
procmail: Error while writing to /var/spool/mail/dtt



Hi,

I wrote a php script to create a dynamic graph (image/jpeg).  On my
development system the image appears on my website it gives Image/Jpeg
support not compiled.

Below are the config settings:

My system:
Configure Command ^@ './configure' '--prefix=/usr'
 ^@'--with-config-file-path=/etc' '--disable-debug'
 ^@'--enable-pic' '--enable-inline-optimization'
 ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs'
 ^@'--disable-static' '--with-exec-dir=/usr/bin'
 ^@'--with-regex=system' '--with-gd'
 ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm'
 ^@'--enable-debugger' '--enable-magic-quotes'
 ^@'--enable-safe-mode' '--enable-track-vars'
 ^@'--enable-ftp' '--with-mysql' '--with-xml'
 ^@'--enable-trans-sid'
 ^@'--with-readline=/usr/include/readline'

My webserver the info can be got from vvmm.net/phpinfo.php.

They my provider has given --with-jpeg-dir=/usr/lib still the image does
not appear.  Even in the gd section it does not give JPG Support
enabled.  Only give.  Right now I have changed the program to work with
gif.  My question, why not Jpg??

Adrian



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP] Why this error to this newsgroup?

2001-09-24 Thread Adrian D'Costa

This is the same error I get.  The question is why the mails is going to:
mail.aaz-netmarketing.com when it should be going to :
pb1.pair.com

Adrian

On Sat, 22 Sep 2001, hvm wrote:

 Hi I have the same and I don't know if some one even get my questions, I
 never get a response.
 Maybe the questions are to difficult.
 
 Yours Hans.
 
 
 - Original Message -
 From: Gaylen Fraley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, September 22, 2001 6:34 PM
 Subject: [PHP] Why this error to this newsgroup?
 
 
  Every message that I post to news.php.net gets posted, but I receive this
  email:
  
  This is the Postfix program at host mail.aaz-netmarketing.com.
 
  I'm sorry to have to inform you that the message returned
  below could not be delivered to one or more destinations.
 
  For further assistance, please send mail to postmaster
 
  If you do so, please include this problem report. You can
  delete your own text from the message returned below.
 
  The Postfix program
 
  [EMAIL PROTECTED]: can't create user output file.
 Command
  output: procmail: Error while writing to /var/spool/mail/dtt
  --
 
  This just started, I believe, this week.  Is there some kind of an
  auto-responder that isn't working correctly?
 
 
  --
  Gaylen
  [EMAIL PROTECTED]
  http://www.gaylenandmargie.com
  PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: images no appearing

2001-10-03 Thread Adrian D'Costa

My local gd version is 1.6.2 or higher, online check the link
vvmm.net/phpinfo.php

Adrian

On Tue, 2 Oct 2001, Richard Lynch wrote:

 Older versions of GD will do GIF, but not JPEG, and vice versa...
 
 What versions of GD are on the two servers?
 
 --
 WARNING [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
 Volunteer a little time: http://chatmusic.com/volunteer.htm
 - Original Message -
 From: Adrian D'Costa [EMAIL PROTECTED]
 Newsgroups: php.general
 To: php general list [EMAIL PROTECTED]
 Sent: Monday, September 24, 2001 12:05 AM
 Subject: images no appearing
 
 
  Hi,
 
  I wrote a php script to create a dynamic graph (image/jpeg).  On my
  development system the image appears on my website it gives Image/Jpeg
  support not compiled.
 
  Below are the config settings:
 
  My system:
  Configure Command ^@ './configure' '--prefix=/usr'
   ^@'--with-config-file-path=/etc' '--disable-debug'
   ^@'--enable-pic' '--enable-inline-optimization'
   ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs'
   ^@'--disable-static' '--with-exec-dir=/usr/bin'
   ^@'--with-regex=system' '--with-gd'
   ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm'
   ^@'--enable-debugger' '--enable-magic-quotes'
   ^@'--enable-safe-mode' '--enable-track-vars'
   ^@'--enable-ftp' '--with-mysql' '--with-xml'
   ^@'--enable-trans-sid'
   ^@'--with-readline=/usr/include/readline'
 
  My webserver the info can be got from vvmm.net/phpinfo.php.
 
  They my provider has given --with-jpeg-dir=/usr/lib still the image does
  not appear.  Even in the gd section it does not give JPG Support
  enabled.  Only give.  Right now I have changed the program to work with
  gif.  My question, why not Jpg??
 
  Adrian
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] sending email to php script

2001-10-31 Thread Adrian D'Costa

On Mon, 29 Oct 2001, David Robley wrote:

 On Sat, 27 Oct 2001 03:23, JSheble wrote:
  A while ago an email came through here about how to parse out email
  message from a php script.  The thing that was mostly of interest to me
  is the ability to send an email to a php script, I guess through a
  sendmail alias?  I asked how to accomplish this, and never saw an
  answer come through.  So I'd like to ask again :o)
 
  Does anybody know what would be required or necessary to send an email
  to an address that would run a php script?
 
 You say sendmail, so do it thusly:
 
 Edit /etc/aliases and add a line like
 
 phpmail: | /pathto/your/php/script
 
 and run newaliases to update your alias database.

Actually, I am still trying to figure this out when I get time.  What I
did was:
 
phpmail: | lynx -dump  /pathto/your/php/script

But the problem is nothing appears to be capture in the script.  Or rather
in what format does this mail arrive.  I even tried to write it to a file
but nothing is written.

 
 You'll also need to compile php as a standalone, and put as the first 
 line of your php script
 
 #!/path/to/php -q

What if we need both version??


Adrian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   3   4   >