[PHP] Re:

2011-10-28 Thread Nirmalya Lahiri
.Do you want to feel orgasms several times?  
http://macrokid.ma.funpic.de/com.friend.page.php?jroyahoo_id=09ep0

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



Re: [PHP] Online tests for php

2011-04-13 Thread Nirmalya Lahiri
--- On Wed, 4/13/11, robert mena robert.m...@gmail.com wrote:

 From: robert mena robert.m...@gmail.com
 Subject: [PHP] Online tests for php
 To: php-general php-general@lists.php.net
 Date: Wednesday, April 13, 2011, 6:38 PM
 Hi,
 
 I am trying to hire some php developers for a local taks
 and I need to
 somehow perform a triage. One of the aspects is the
 knowledge of PHP itself
 so I was wondering if there is any set of questions
 (multiple choice) to try
 to do that.
 
 I am not looking for a  certification level in those
 tests but a way to at
 least know what this guy knows.
 


I think the best method is, ask the developers to do some small projects; like..

1) login page
2) user creation
3) sending email
4) file upload

And after completion just check that the projects are running properly or not.

---
নির্মাল্য লাহিড়ী [Nirmalya Lahiri]
+৯১-৯৪৩৩১১৩৫৩৬ [+91-9433113536]


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



Re: [PHP] Class not functioning

2009-12-14 Thread Nirmalya Lahiri
--- On Tue, 12/15/09, Allen McCabe allenmcc...@gmail.com wrote:

 From: Allen McCabe allenmcc...@gmail.com
 Subject: [PHP] Class not functioning
 To: phpList php-general@lists.php.net
 Date: Tuesday, December 15, 2009, 6:17 AM
 Hey everyone, I just delved into
 classes recently and have been having
 moderate success so far.
 
 I have a puzzler though.
 
 I have the following class decalred and instantiated:
 
 class Notify {
  var $q = array();
 
  public function addtoQ($string, $class)
  {
   $message = 'span class='. $class .''.
 $string .'/span';
   $this-q[] = $message;
  }
 
  public function printQ()
  {
   if (isset($q))
   {
    echo 'p align=center
 class=notification';
    foreach($this-q as $msg)
    {
     echo $msg .\n;
    }
    echo '/p';
   }
 
   return;
  }
 
  function __destruct()
  {
   if (isset($q))
   {
    unset($this-q);
   }
  }
 } // END CLASS Notify
 
 
 And in my script, I call it like so:
 $Notif = new Notify;
 
 I have run other statements in other classes that should be
 adding to the $q
 array (ie. Notify::addtoQ('ERROR! There Was An Error
 Updating The
 Database!', 'error');)
 
 However, when I try to get my webpage to display them
 using:
 
 $Notify-printQ();
 
 it does not seem to want to loop through this array (and
 print the
 messages). I am getting NO error message, in fact
 everything 'looks' fine,
 I'm just not seeing the appropriate message.
 
 Any help would be appreicated!
 

Allen,
 You have made a small typing mistake in function printQ() where you would like 
to checked the array for its existence. By mistake you have wrote if 
(isset($q)). But your array variable is not an freely accessible array,the 
array is embedded into an object. So, you have to write the like if 
(isset($this-q)).

 Another point, you can't add a message into the array by calling the member 
function addtoQ() using scope resolution operator ::. If you really want to 
add message into the array, you have to call the member function from within 
the object. (ie. $Notif-addtoQ('ERROR! There Was An Error Updating The 
Database!', 'error');).

---
নির্মাল্য লাহিড়ী [Nirmalya Lahiri]
+৯১-৯৪৩৩১১৩৫৩৬ [+91-9433113536]





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



Re: [PHP] string concatenation with fgets

2009-11-24 Thread Nirmalya Lahiri
--- On Wed, 11/25/09, aurfal...@gmail.com aurfal...@gmail.com wrote:

 From: aurfal...@gmail.com aurfal...@gmail.com
 Subject: [PHP] string concatenation with fgets
 To: php-general@lists.php.net
 Date: Wednesday, November 25, 2009, 7:00 AM
 Hi all,
 
 I'm trying to append some text to what I read from a file.
 
 My code;
 
 $file = fopen(foo.txt, r);
 while (!feof($file)) {
     $line = fgets($file);
     print $line.sometext;
     }
 fclose($file);
 
 foo,txt;
 a
 b
 c
 d
 e
 f
 g
 
 And when I run the script, it looks like;
 a
 sometextb
 sometextc
 sometextd
 ...
 
 
 Any ideas?
 


So, what output you actually wants from your program?

Is it like this
asometextbsometextcsometext..

or, like this
asometext
bsometext
csometext


---
নির্মাল্য লাহিড়ী [Nirmalya Lahiri]
+৯১-৯৪৩৩১১৩৫৩৬ [+91-9433113536]






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



Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Nirmalya Lahiri
Paragasu,
You are making a very good plan. I, from 2004 working on PostgreSQL. I can't 
show you anything because my project(web based application) is a inhouse 
intranet project, but postgresql is too much powerfull.

---
Nirmalya Lahiri
[+91-9433113536]


--- On Mon, 6/30/08, paragasu [EMAIL PROTECTED] wrote:

 From: paragasu [EMAIL PROTECTED]
 Subject: [PHP] can you give me example of website using postgresql database?
 To: php-general@lists.php.net
 Date: Monday, June 30, 2008, 5:43 PM
 i am planning to use postgresql for my next project (social
 network).
 anyone can point me any website using postgresql database?
 it will help me a lot.. thanks..
 
 -- 
 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] Strategy to protect images

2008-06-15 Thread Nirmalya Lahiri
 Yes... you can do it. Instade of direct url image, use the url of a php script 
written(algorithm) below..

?php
/*
Write down the code to check
authentication of users
if( unauthorise user )
 then exit from code
*/

/* Read the image data from file */
header('Content-type: image/jpeg');
/* echo the raw image data */
?


---
Nirmalya Lahiri
[+91-9433113536]


--- On Sun, 6/15/08, Stefano Esposito [EMAIL PROTECTED] wrote:

 From: Stefano Esposito [EMAIL PROTECTED]
 Subject: [PHP] Strategy to protect images
 To: php-general@lists.php.net
 Date: Sunday, June 15, 2008, 5:18 PM
 Hi all,
 
 i have to forbid users of my site to view images directly
 (i.e.
 writing the image URL in the address bar) but they'd be
 able viewing
 them from the pages of the site. What's the best way of
 doing it, or
 something similar? Is there a common strategy using PHP?
 Thank you for
 any hint :-)
 
 Ciao,
 Stefano
  
  
  --
  Email.it, the professional e-mail, gratis per te:
 http://www.email.it/f
  
  Sponsor:
  VOGLIA DI VACANZE ? 
 * A Riccione i Family Hotels sono gli alberghi
 specializzati per le vacanze dei bambini
  Clicca qui:
 http://adv.email.it/cgi-bin/foclick.cgi?mid=7984d=15-6
 
 -- 
 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] How to structure code for forms

2008-06-08 Thread Nirmalya Lahiri
--- On Sun, 6/8/08, Ethan Whitt [EMAIL PROTECTED] wrote:

 From: Ethan Whitt [EMAIL PROTECTED]
 Subject: [PHP] How to structure code for forms
 To: php-general@lists.php.net
 Date: Sunday, June 8, 2008, 4:31 PM
 I am new to PHP and have been researching ways to structure
 code for forms.
 I have found a
 few basic tutorials that present, validate  present
 errors, and then
 process form data.  I was
 wondering if anyone could share their approach on how they
 structure these
 actions?  Ideally,
 I would like to separate each action in separate functions.
  Thanks in
 advance...
 
 Regards
 Ethan



Hi,
 I think it is better for you to follow MVC design pattern in PHP. Search  
internet for any good manual on MVC design pattern. You can read the manuals of 
any good PHP framework also like Joomla, CakePHP  These frameworks are 
also follow MVC design pattern.

---
Nirmalya Lahiri
[+91-9433113536]


  

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



Re: [PHP] Socket create with ssl server

2008-04-10 Thread Nirmalya Lahiri
--- Alan Willsher [EMAIL PROTECTED] wrote:

 Hi how do you use socket_create with an ssl server
 
 ie I would do something like
 
 $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 socket_bind($sock, $sourceip);
 socket_connect($sock, 'server.com', 2043);
 
 but if I do
 
 $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 socket_bind($sock, $sourceip);
 socket_connect($sock, 'ssl://server.com', 2043);
 
 I get Warning: socket_connect(): Host lookup failed [-10001]:
 Unknown host
 
 Where do I need to add the ssl://
 

Hi,
 before test your sample program, please check the name
ssl://server.com from any DNS server that, the name is really
present in internet or not. Your problem is basically name resolution
error from DNS server. To check the name, apply host command from
unix/linux terminal.

 Another point is...as I know the url of ssl encripted page starts
with https://; not with ssl://...!!!


---
Nirmalya Lahiri
[+91-9433113536]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] regex usage

2008-02-17 Thread Nirmalya Lahiri
--- Valedol [EMAIL PROTECTED] wrote:

 Is there a mothod to check string`s length with regex or the only
 way is  
 using strlen?
 
 I want string consisting of 4 digits
 and check string with this code:
 
 if (preg_match(/\d{4}/,$_POST[id]))
 { echo $_POST[id]; }
 
 but preg_match  returns true when string consists of 4 or more
 digits
 -- 

To check only 4 digit, you have to specify max lengh of the string in
length specifier..

if (preg_match(/\d{4,4}/,$_POST[id]))
 { echo $_POST[id]; }

---
Nirmalya Lahiri
[+91-9433113536]


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: [PHP] generate xls file on fly

2008-02-14 Thread Nirmalya Lahiri
--- Hiep Nguyen [EMAIL PROTECTED] wrote:

 On Fri, 8 Feb 2008, Per Jessen wrote:
 
  Hiep Nguyen wrote:
 
  let say that user searched and found 10 records,
  in the meantime, other users may change any of these 10 records,
  so if we saved mysql statement and re-run mysql statement again,
 the
  result might be different.  to prevent this problem, i only want
 to
  download records that returned on this page only.
 
  This is more of a caching issue - then you determine how long you
 want
  to keep the results for, and only re-run the mysql query when the
  results have gone stale.
 
 
  /Per Jessen, Zürich
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 in the last couple days, i've looked into php $_SESSION and kinda
 get the 
 concept.  my question is can i use $_SESSION to store mysql
 statement? 
 what is the pro/con to store mysql statement in $_SESSION?
 with $_COOKIE, i can use setrawcookie to avoid urlencoding.  is
 ther 
 anything similar in $_SESSION?
 
 thanks,
 t. hiep

Hiep,
 There is no need to use setraw in case of session. Because every 
session variable keeps its value as it is assign to it. Where as in
case of cookie by default browser encode the cookie in urlencoding
format. To stop this feature of browser we use setrawcookie() function.

---
Nirmalya Lahiri
[+91-9433113536]


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



[PHP] Unable to run my sample application from CakePHP

2008-02-14 Thread Nirmalya Lahiri
Hi all,
 CakePHP is a new tool for me, I never worked on any framework
before..! To learn about CakePHP I already read
http://manual.cakephp.org pages and copy the code sample from that
manual. I installed cake in /var/www/html directory. In my Apache
server webroot is /var/www/html. Now my question is how can run my
application(What will be the URL to access my application? In one
point I am sure that the database configuration is OK, because when I
through the URL http://127.0.0.1/cake to the server, the server
returns a CakePHP introductory page with a status

Your database configuration file is present.
Cake is able to connect to the database.

---
Controller page name: users_controller.php having class name
UsersControllers with member function login().

view page name: login.thtml

model page name: user.php
---

Please help me...

---
Nirmalya Lahiri
[+91-9433113536]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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



Re: [PHP] Static variable in a class method

2008-02-13 Thread Nirmalya Lahiri
--- Pauau [EMAIL PROTECTED] wrote:

 I have a class method which declares a static variable
 within.However, 
 across all the instances of the class, the current value on that
 variable 
 replicates. Is it the intended functionality? Example: class A {   
 public 
 function foo() {static $i=0;$i++;}}$obj1 = new 
 A();$obj1-foo(); //$i = 1 $obj2 = new A();$obj2-foo(); //$i = 2
 where I 
 think it should be 1, becaue it's a new instance. 
 

Pauau,
 Please visit the link below for help..
http://www.php.net/manual/en/language.oop5.static.php

---
Nirmalya Lahiri
[+91-9433113536]


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: [PHP] Run Process in back ground

2008-02-12 Thread Nirmalya Lahiri
--- Richard Kurth [EMAIL PROTECTED] wrote:

 Is there a way that I can call a function that will send an email
 and 
 then move on redirecting to another website without having to what
 for 
 the email to send?
 SendEmail($memberemail,$MailFrom,$MailHost);
 header(Location:http://domain.com;);
 
 -- 

Richard,
 You can do it in other way. The steps are
1 Just keep the emails in database.
2 Write another shell/PHP script which will fetch email from
database and send the email using local/remote MTA.
3 Run this script from cron as background process.


---
Nirmalya Lahiri
[+91-9433113536]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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



Re: [PHP] PHP 5.2.5 installation

2008-02-12 Thread Nirmalya Lahiri
--- Yoshika Kehelpannala [EMAIL PROTECTED] wrote:

 Hi,
 
 I have downloaded and setup the Apachi web server and My SQL
 5.0.51a prior
 to my PHP installation on the windows platform. As I have
 downloaded the PHP
 5.2.5 version (msi) and installed it on my system, it gave some
 errors that
 says a lot of dll's and sort of files are missing. I checked how to
 install
 it on your site and found only the basic 5.xx is documented. Please
 help me
 on this.
 
--

Yoshika,
 Please post the name of dll's and other files which are reported as
missing..!!! Without that no one can identify the error...

---
Nirmalya Lahiri
[+91-9433113536]


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [PHP] Trouble with PHP server script

2008-02-10 Thread Nirmalya Lahiri
--- Robert Cox [EMAIL PROTECTED] wrote:

 Is it possible to use the $_SERVER['PHP_AUTH_USER']; construct in
 a URL
 forwarded site?  I am trying to find the authorised user id so that
 I can
 access an SQL database with it.  Anyone got some ideas?
  
 PHP looks like this
  
  ?php
  //Get User
   $user = $_SERVER['PHP_AUTH_USER'];
   
  // Get User type
   $db = mysql_connect(localhost, ., .) or die(Can't
 connect to
 database: .mysql_error());
 mysql_select_db() or die(Can't select
 database:
 .mysql_error());
   
   $query = SELECT * FROM user WHERE staffid LIKE $user;
   $result = mysql_query($query) or die ('Not a valid User: ' .
 mysql_error());
 
 ?
  

Robert,
 I think this link will help you to solve the problem.
http://bugs.php.net/bug.php?id=29132

---
Nirmalya Lahiri
[+91-9433113536]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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



Re: [PHP] fgets???

2008-02-08 Thread Nirmalya Lahiri

--- Daniel Brown [EMAIL PROTECTED] wrote:

 On Feb 8, 2008 12:11 PM, Pastor Steve [EMAIL PROTECTED]
 wrote:
  I think I may have written the question wrong. I only want to
 display the
  first line. It is a news story with a headline. I only want to
 display the
  headline in the link.
 
  The output I want is:
 
  The
 
  But I am getting:
 
  The file looks like this.
 
  Does that make more sense?
 
 ?
 $handle = fopen($filename);
 $data = fgets($handle);
 echo $data.\n;
 ?
 
 So long as you don't do a while() loop or something similar,
 fgets() will only read the first line.
 
 -- 
 /Dan
 
 Daniel P. Brown
 Senior Unix Geek
 ? while(1) { $me = $mind--; sleep(86400); } ?
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


Another method
 ?
 $data = file($filename);
 echo $data[0].\n;
 ?



---
Nirmalya Lahiri
[+91-9433113536]


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: [PHP] phpPgAdmin

2006-11-04 Thread Nirmalya Lahiri
--- Alain Roger [EMAIL PROTECTED] wrote:

 Hi,
 
 Is there a way via PhpPgAdmin to export/import the whole database
 info
 (structure, schema, tables, index, sequences, data...) ?
 
 Because i developed my database on local server and now i want to
 import to
 my web hoster server...
 
 and i do not want to recreate everything manually :-(
 
 thx,
 
 Al.
 

Alain,
 Why are you not using pg_dump command from the shell prompt of
postgresql administrative user account for doing backup? If you do
so, then you can restore backuped data in any postgresql server.

Nirmalya Lahiri
(+91-94331-13536)


 

Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates 
(http://voice.yahoo.com)

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



[PHP] getRow method of DB_Common class

2006-05-22 Thread Nirmalya Lahiri
Dear all,
 I am using getRow() method ob DB_Common class to get a single row from a 
table. As per document 
http://pear.php.net/manual/en/package.database.db.db-common.getrow.php this 
method return a single dimension array. But when I am using it, it returns a 
two dimension array. I don't know why... Please help me.
 
 -- Nirmalya
 

-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

[PHP] Smarty error

2006-05-05 Thread Nirmalya Lahiri
Dear all,
  I wrote this script using Smarty template,which gives a syntax error ..
 
 syntax error: unrecognized tag:  (Smarty_Compiler.class.php, line 436)
 
 
 I wrote a javascript block in template file,where I use '{'. This '{' 
acctually shows the problem. How can I solve this problem?
 
 --Nirmalya Lahiri
 

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: [PHP] Smarty error

2006-05-05 Thread Nirmalya Lahiri
Dear all,
  I solved the problem using {literal}{/literal} tag. Thanks every one, who 
gives me tips to solve the error.
 
 --Nirmalya
 

Nirmalya Lahiri [EMAIL PROTECTED] wrote: Dear all,
  I wrote this script using Smarty template,which gives a syntax error ..
 
 syntax error: unrecognized tag:  (Smarty_Compiler.class.php, line 436)
 
 
 I wrote a javascript block in template file,where I use '{'. This '{' 
acctually shows the problem. How can I solve this problem?
 
 --Nirmalya Lahiri
 
  
-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: [PHP] Command Line PHP Advice

2006-01-29 Thread Nirmalya Lahiri
 
Hi,
 you can do this by using unix command 'for'. Please apply the
command written below  reply me your experiment result.

for filename in `ls *.txt`;do ./edit.php $filename var1 var2;done


--Nirmalya
 

Angelo Christou [EMAIL PROTECTED] wrote: Hello List
I would like some advice from PHP users regarding PHP and the command line. I 
have a PHP script that does a whole bunch of stuff to a file on my intranet.

./edit.php filename var1 var2

Everything works fine but I need to run it on a list of files  - 

./edit.php invoice00212.txt var1 var2
./edit.php invoice00213.txt var1 var2
./edit.php invoice00214.txt var1 var2

I have a list of several thousand files that will change every month. The list 
has the filenames and variables, like this so I am half way there I think -

invoice00212.txt var1 var2
invoice00213.txt var1 var2
invoice00214.txt var1 var2

My question is how should I incorporate this with my PHP script?

I read that it's better to split scripts up into small reusable parts so my 
plan is to keep the logic out of the edit.php script and simply pass the 
variables to it using another script. Am I on the right path doing this?

I am only a beginner with PHP so I admit I don’t really know what I’m doing, 
that is why I am asking for pointers from the PHP Mail List :)

Below is my model, however I am unsure how to achieve this or even if it's the 
best way to do it?

open filelist.txt
for each line create $filename $var1 $var2
then run
./edit.php $filename $var1 $var2
loop back to the next line
end

Many thanks in advance,
Ang.
 

  
-
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.



-
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with your Yahoo! Mail.

Re: [PHP] Command Line PHP Advice

2006-01-29 Thread Nirmalya Lahiri
Angelo,
  I am very happy after knowing that it is working. :)
 
 --Nirmalya
 
 
Angelo Christou [EMAIL PROTECTED] wrote: 
Hello Nirmalya,

Thank you for your response. With the help of your reply, I've now got it 
working! :)

Ang.



Nirmalya Lahiri [EMAIL PROTECTED] wrote: Hi,
 you can do this by using unix command 'for'. Please apply the
command written below.. reply me your experiment result.

for filename in `ls *.txt`;do ./edit.php $filename var1 var2;done


--Nirmalya



--- Angelo Christou  wrote:

 Hello List
 I would like some advice from PHP users regarding PHP and the
 command line. I have a PHP script that does a whole bunch of stuff
 to a file on my intranet.
 
 ./edit.php filename var1 var2
 
 Everything works fine but I need to run it on a list of files  - 
 
  ./edit.php invoice00212.txt var1 var2
 ./edit.php invoice00213.txt var1 var2
 ./edit.php invoice00214.txt var1 var2
 



   

-
Bring words and photos together (easily) with
  PhotoMail  - it's free and works with your Yahoo! Mail.



-
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with your Yahoo! Mail.

[PHP] Use of Ampersand in php

2006-01-22 Thread Nirmalya Lahiri
Hi everybody,
 Can any one tell me, what is the use of ampersand '' in php? Is it
a pointer operator like 'C' language? Kindly note the example

?php
$a=1;
$b= $a;
$c=$a;
echo $b,$c;
?

 After running this example I got result 1 for both variable $b and
$c. Why so?

--Nirmalya

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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