Re: [PHP] PHP EOL

2011-07-02 Thread viraj
t;; when sending out emails, the most compatible way is to use "\r\n" as Stuart has pointed out (plain text emails). ~viraj On Sat, Jul 2, 2011 at 7:15 PM, Stuart Dallas wrote: > On Sat, Jul 2, 2011 at 9:01 AM, Karl DeSaulniers wrote: > >> Hello All, >> Happy pr

Re: [PHP] PHP EOL

2011-07-02 Thread viraj
PHP_EOL is the best fit. you do not have to write multiple lines of code to do the same thing. ~viraj p.s. cross-posting is bad. removed db. from the cc list. On Sat, Jul 2, 2011 at 1:31 PM, Karl DeSaulniers wrote: > Hello All, > Happy pre independence for my American PHPers. And good

Re: [PHP] https help

2011-05-30 Thread viraj
yahoo don't have ssl enabled on all their content it seems. http://privacy.yahoo.com/privacy/us/security/details.html ~viraj On Tue, May 31, 2011 at 11:11 AM, Negin Nickparsa wrote: > it is the output: > http://www.yahoo.com/?s=https > > can i force it to show me > h

Re: [PHP] insert to table in php scripts

2011-05-28 Thread viraj
different ways, one simple method the 'header' function. http://www.php.net/manual/en/function.header.php ~viraj On Sat, May 28, 2011 at 1:50 PM, Negin Nickparsa wrote: > i used your exit too,yes it's better to hide the form after registration:) -- PHP General Mailing Lis

Re: [PHP] insert to table in php scripts

2011-05-28 Thread viraj
tables for duplicate records. if there are no duplicates, you are closer to the solution. ~viraj On Sat, May 28, 2011 at 1:31 PM, Negin Nickparsa wrote: > I click the submit button just one time! not twice > but when i go to MySql and select * from it > it shows me happening two times &g

Re: [PHP] Google Visualization Chart API

2011-02-17 Thread viraj
hi, the easiest way to convert a html (even with advance css styling) to pdf is http://code.google.com/p/wkhtmltopdf/ i guess. you may need, exec() function and bit of shell scripting. ~viraj On Fri, Feb 18, 2011 at 2:02 AM, Richard Quadling wrote: > On 17 February 2011 20:26, Ashle

Re: [PHP] 1984 (Big Brother)

2010-09-17 Thread viraj
> > Remind him that he must logout normally to lock the DB if you follow the thread closely, this is a requirement. boss may not logout properly :) that's why all suggest a mechanical ways for the job. pressure sensors, cameras etc etc ~viraj > > > > On Sep 12, 2010, a

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
On Tue, Sep 14, 2010 at 12:25 PM, viraj wrote: > got another idea.. setup the database on a machine which can detect > the availability of the boss. if the boss machine is on.. and > connected to network.. the script will try to verify the availability > of the bosses's ip and i

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
c has to be updated manually in the script) and starts or stops the database. this can be done with bit of shellexec and bit of shellscripting, if on linux with 'arp' (all employees and boss has to be in same subnet i guess.. ) ~viraj On Tue, Sep 14, 2010 at 7:17 AM, Andy McKenzie

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread viraj
similar to that 'mysql server has gone away' message. (boss has gone away) :) ~viraj On Mon, Sep 13, 2010 at 7:13 PM, Bob McConnell wrote: > From: tedd > >> At 9:10 AM -0400 9/13/10, Steve Staples wrote: >>>here's a silly idea... >>> >>>put the

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread viraj
pic in a php list. but i'm sure you will get some good hints. ~viraj > > Cheers, > > tedd > > > -- > --- > http://sperling.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread viraj
net spend their early age in incubators not connected to internet. in other terms, in 'local area networks' which use almost same set of internet standard protocols. ~viraj > > Look, I know that I can solve my clients problems by finding a host and > writing scripts to do what they want

Re: [PHP] New to PHP and the list

2010-09-11 Thread viraj
the server side limit imposed through php.ini. (see http://www.php.net/manual/en/ini.core.php file uploads section) > > Or do I have to do this: > > > $MAX_UPLOAD_SIZE = 30000; > <<<_END > > I'm also concerned that in the first instance, a malicious user can >

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread viraj
maintain a session, storing checksum in session instead of client side (hidden field in form) will be more safe/secure and will help in improving the mechanism (persistent classes, serialized data etc) ~viraj > updated or not after the submit? Or is it worth reloading the old values > fr

Re: [PHP] a test (list is too quite)

2010-09-05 Thread viraj
On Sun, Sep 5, 2010 at 12:37 AM, a...@ashleysheridan.co.uk wrote: > http://www.bash.org/?quote=76416 > finding the 'tutorial' (tut.php) on php.net should be the first challenge for any fresher. and a very good reason to encourage developers to read carefully :) ~viraj > Me

Re: [PHP] Does array_splice() fit for case ?

2010-08-26 Thread viraj
hi alfredo.. i really love to help.. but could you please explain a bit clear. may be with sample input arrays and the expected out put array. ~viraj On Thu, Aug 26, 2010 at 7:45 PM, Alfredo Palhares wrote: > Hello, > > This is kinda a noob question, but that's what i am :)

Re: Re[2]: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread viraj
looks prettier and clean. variables - $firstName classes - MyBestClass functions - TheGreatestFunctionInTheWorld classes (auto-loadable) - Service_Maps (eg: maps class in service module) hope this makes a neat coding style. ~viraj On Tue, Jul 27, 2010 at 4:08 PM, Andre Polykanine wrote:

Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread viraj
$firstName is the most readable.. for variables. does anybody have negative thoughts on using the same naming format for method/function and for class names? i guess it's worth sharing! many thanks! ~viraj On Tue, Jul 27, 2010 at 3:02 PM, Ashley Sheridan wrote: > On Tue, 2010-07-27

Re: [PHP] State and City Database

2010-07-11 Thread viraj
8.8.8 hope to open the geo api soon for free/public use. ~viraj >> >> Cheers, >> >> tedd >> > > Hey Tedd, > > Maybe this helps. I used the data files for some other projects.. > > http://earth-info.nga.mil/gns/html/ > http://geonames.usgs.gov/ >

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread viraj
hi nick, :: is what we call 'scope resolution operator', $this is your 'current scope'. i guess you better read http://www.php.net/manual/en/language.oop5.php.. all sections :)) ~viraj On Sun, May 2, 2010 at 8:11 PM, Nick Balestra wrote: > I am trying to understand h

Re: [PHP] Error handling strategies (db related)

2010-04-28 Thread viraj
/mysql raised error, i conditionally check whethr it's 'live', 'beta' or 'dev' environment and use different error_handlers. if it's 'production' environment, the error handler will write the detail error with all back-trace and possible sql queries

Re: [PHP] Forgot what to install

2010-04-08 Thread viraj
it's apache2 module for php #apt-cache search php5 apache libapache2-mod-php5 - server-side, HTML-embedded scripting language (Apache 2 module) ~viraj On Fri, Apr 9, 2010 at 8:32 AM, David McGlone wrote: > Hey guys, quick question. I had to re-install my Ubuntu, and I forgot > wha

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread viraj
['my_id] you can not expect a variable value set in to $_POST array to reflect on a totally different page without making it a form post (aka use of proper headers). i guess, it's time to you to read about session_start() method and the array $_SESSION available in php :) ~viraj On Thu, Feb

Re: [PHP] Newbie needs help

2010-01-07 Thread viraj
try http://www.php.net/manual/en/function.preg-replace-callback.php. you need to read a bit on 'regular expressions' http://www.gskinner.com/RegExr/ will be handy in crafting a suitable regex to capture your 'tags' ~viraj On Thu, Jan 7, 2010 at 2:16 PM, John Taylor-Johnston

Re: [PHP] pass by reference variable length args

2010-01-05 Thread viraj
if func_get_args supports pass by reference, we could have avoid the loop and pre-defined arg list. something like.. extract(func_get_args) :D cheers! ~viraj On Wed, Jan 6, 2010 at 11:04 AM, viraj wrote: > thanks rob! > > here goes the working method. > > public function bin

Re: [PHP] pass by reference variable length args

2010-01-05 Thread viraj
#x27; . $i] = &${'arg'.$i}; } call_user_func_array('mysqli_stmt_bind_result',array_merge(array($this->stmt),$args)); } $stmt->bind_result($id, $test); $stmt->fetch(); echo $id, $test; ~viraj On Wed, Jan

[PHP] pass by reference variable length args

2010-01-05 Thread viraj
hi all, i'm trying to write a wrapper function for "mysqli_stmt_bind_results". and expect it to work the same way it accepts and bind results to the original function. the problem is, i couldn't find a way to pass the args by reference via func_get_args and register the out put from call_user_func

Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-04 Thread viraj
e 'not supported but stable' http://en.wikipedia.org/wiki/PHP ~viraj On Tue, Jan 5, 2010 at 7:22 AM, Varuna Seneviratna wrote: > Since there are two stable versions 5.3 and 5.2 .What is the difference > between these two streams and What is the need for maintaining two streams? &

[PHP] mysql resoc iterator

2009-10-31 Thread viraj
IteratorAggregate over Iterator seems the best fit for the task as i do not want seeking back and forth. thanks! ~viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] turning off a E_STRICT or fix for a bad coding habit

2009-09-27 Thread viraj
t and tried to turn it off, but didn't help. this code was working perfect before.. even with this error.. it works. any idea about a workaround? or some reading suggestions! many thanks ~viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calendar tutorial

2009-09-07 Thread viraj
to the developer and heavily depends on the specific requirements. date_parse and strtotime were very useful php functions. ~viraj > > Many Thanks > > Haig Vancouver BC > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic navigation menu

2009-06-11 Thread viraj
s the child. use a mysql view or a simple join to join those two tables. then loop through the result using a recursive function. ~viraj > > My problem is when I query the data I can't place the child at their > appropriate position. > > Please you help will be appr

[PHP] automatic timezone adjustment

2009-06-09 Thread viraj
aving time, and even records leap seconds', does this means, that i do not have to worry about DST calculations? many thanks! ~viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] a weired query issue

2009-01-08 Thread viraj
nid it returns me the same row! how come this possible? `id` is a integer and the storage engine is myisam. i'm on debian and mysql version is 5.0.51a-15 ~viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redeclare classes dynamically

2008-10-22 Thread viraj
h the eos. but i get this fatal error.. Cannot redeclare class controller in /home/vir blah blah.. yeah, i know it's because i try to declare the same class name several times. my question is.. what is the best way to implement this? many thanks ~viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Kill Magic Quotes

2008-08-07 Thread viraj
eans only single quotes are escaped as ''. Double quotes, backslashes and NULL's will remain untouched and unescaped. See also ini_get() for retrieving its value. ~viraj > > See this page for how to disable it: > > http://www.php.net/manual/en/security.magicquotes.di

Re: [PHP] Character set problems

2008-04-04 Thread viraj
have access to my.cnf, add.. "init-connect='SET NAMES utf8'" under the [mysqld] section. happy utf8ing ~viraj On Fri, Apr 4, 2008 at 3:32 PM, Rob Gould <[EMAIL PROTECTED]> wrote: > mysql_query("SET NAMES utf8"); > > This above line of cod

Re: [PHP] passing variables values using POST

2008-03-18 Thread viraj
? Why can't you display the thankyou.php > page inline rather than bouncing off the client? or you can register the firstname into a session variable and use it on the landing page. but what stut suggests is the best. ~viraj > > -Stut > > -- > http://stut.net/ > >

[PHP] filedownload and output buffering

2006-12-12 Thread viraj
(it seems i'm not clear about those functions yet..). could somebody please help me on this? many thanks ~viraj http://192.168.1.71/\r\n"; . "IDList=" . "IconFile=http://192.168.1.71/favicon.ico\r\n"; .

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread viraj
the array elements. a common data base function to insert the data will ease your life further. ~viraj On 5/10/06, Chris Grigor <[EMAIL PROTECTED]> wrote: morning all, Is there an easier way of doing the following?? form1 submitting to form1.php So my question is, if I have a form

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread viraj
time format, time zone or family name(last name)!!, it will be a real mess!! just my two cents! if i have misinterpreted something please clear me. thanks. ~viraj On 11/3/05, Ligaya Turmelle <[EMAIL PROTECTED]> wrote: > > >There already is: > > http://php.net/imap

Re: [PHP] Re: about PHP

2005-09-20 Thread viraj
iscussion-Installing-PHP-Under-Personal-Web-Server ~viraj. > (i.e.PWS) so only i am asking how to view the PHP > pages in my local server (i.e.PWS)as a asp page > > thanking you for your kindly reply > K.Srinivasan > > --- viraj <[EMAIL PROTECTED]> wrote: > > >

Re: [PHP] Re: Problem with mysql_connect(...)

2005-09-20 Thread viraj
http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Installation/Q_21077014.html ~viraj. On 9/19/05, Mark Rees <[EMAIL PROTECTED]> wrote: > > I'm trying to connect to my MySQL server with mysql_connect(...). The server > is up and running, and I'm running

Re: [PHP] Re: about PHP

2005-09-19 Thread viraj
lr=&oi=defmore&q=define:PHP > how can i view the php pages in windows98 PWS?.could please be specific. write a little more, explaining what you want to do with php and your current knowledge in programming. so the others on the list can help you better to solve your issue. ~viraj.

Re: [PHP] imap_open

2005-09-18 Thread viraj
er requires some sort of secure login. Could this be the it depends, http://www.php.net/manual/en/function.imap-open.php ~viraj. > problem? If yes, how can it be solved? If no, what other causes could it be? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubsc

Re: [PHP] It's A Windows World

2005-09-18 Thread viraj
no! it's not a Windows World anymore.. ;-) http://news.netcraft.com/archives/web_server_survey.html ~viraj. On 9/16/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Howdy group! > > As many of you may or may not know, I made the switch to another company > recently a

Re: [PHP] scrolling the table

2005-09-18 Thread viraj
this is not a php question.. why don't you google a little bit before make any posts to the list? http://www.google.com/search?hl=en&q=DIV+tags anyway, try CSS, you can achieve it using DIV and SPAN tags. do a little R&D work. happy scrolling! ~viraj. On 9/16/05, R. Vijay D

Re: [PHP] can't connect to mysql

2005-09-13 Thread viraj
/3948 ~viraj. On 9/13/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > Hi there! > > What code are you using? Try with the mysqli... > http://se2.php.net/manual/en/ref.mysqli.php > > /G > > - Original Message - > From: "blackwater dev" <[EMA

Re: [PHP] suggestions needed to use "session"

2005-09-06 Thread viraj
another good one, but for intermediates http://www.zend.com/zend/tut/session.php ~viraj. On 9/6/05, Robert Graham <[EMAIL PROTECTED]> wrote: > Nahalingam Kanakavel wrote: > > >Hi all, > > > >I am new to PHP. > >I know some thing about SESSIONS in PHP, I am

Re: [PHP] Re: PHP/MySQL offline

2005-09-05 Thread viraj
de your live web site. so your client can put boot his/her pc with this cd and start browsing the site. this way you can use whatever the LAMP combination! http://www.google.com/search?hl=en&q=howto+remaster&spell=1 http://taprobane.org/ ~viraj. > Runs an apache server, php &am

Re: [PHP] Create password for .htaccess file

2005-09-03 Thread viraj
script. this is a good starting point.. http://www.webmasterworld.com/forum92/3274.htm happy .htaccesing ~viraj. > > Thanks in advance for your help > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-23 Thread Viraj Kalinga Abayarathna
can you send me the fread() part of your script? and what is the OS you are tring this? any how i like to share my coding which I did few weeksback for one of my Windows buddy. Vk. Ragnar wrote: > Hi Vk, > > I tried this beforehand, but to no avail. The documentation > also states that this

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-22 Thread Viraj Kalinga Abayarathna
are you uploading the file through a HTML form? if so check the FORM for the following hidden input field... increace the above value (in bytes) to a bit more value than your maximum file size you are tring to upload. happy coding... Vk. Ragnar wrote: > Hi guys/gi

Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
lows... ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile)"; and try, but investigate for "why you are getting two quotes instead of one quote. Viraj [EMAIL PROTECTED] wrote: Well, I tried that and this is what i got: INSERT INTO tutor (tutor_name, tutor_contact, tutor_email, tutor_

Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
t;; then execute the script, and check whether it show s the correct values for the '$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile'. you will note the problem. Viraj [EMAIL PROTECTED] wrote: Hi all, I am trying to do a simple INSERT data

Re: [PHP] Re: goto label

2003-12-08 Thread Viraj Kalinga Abayarathna
if you are porting an old programme, try using "SWITCH", some time back i successfully ported a lengthy code in to PHP which had many "GOTO"s . Viraj note: also, i had to use some parameter passing mechanism. Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, i

Re: [PHP] Linux Issues

2003-09-07 Thread Viraj Kalinga Abayarathna
Stephen, Try Debian Woody (3.0) with latest stable KDE desktop. You will be ammazed with the GUI, it's like a Dream.. very fancy , smooth and colourfull. regards Viraj Stephen Craton wrote: > > Well, I'm wanting one with a really nice GUI and great functionality. I'll &g

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Viraj Kalinga Abayarathna
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: > > * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > > > >header("Cache-control: private"); > > > > p.s. > > and also if there is any one wo knows what exactly this

[PHP] Re: web-mail problem

2003-09-03 Thread Viraj Kalinga Abayarathna
[EMAIL PROTECTED]) [-5] - mta166.mail.scd.yahoo.com) <[EMAIL PROTECTED]> (reason: 550 Requested action not taken: mailbox unavailable) can you change the To: to my email address and try. it's [EMAIL PROTECTED] or [EMAIL PROTECTED] or [EMAIL PROTECTED] regards Viraj Lingua2001 wrote

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Viraj Kalinga Abayarathna
sion. try this. Viraj p.s. and also if there is any one wo knows what exactly this header line means, please post a brief decription. thanks. hecchan wrote: > > Hi, > Using IE 6 (XP) i can't see the source generated for PHP even the page > works properly (It doesn't happ

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi Nicole, You can not retrieve information stored in a cookie which set by one domain from some other domain. Try passing all the information you want with the image SRC tag. regards Viraj Nicole wrote: > > OK. Thanks. > > I have the hidden image code: > > http://thet

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
you mean after "" ??? no you do not put. just think this way, if you want to diplay the HTML content just jump out by the php code by typing "?>" and back to PHP by " > You do realize that you don't need a semicolon right after correct? > > -Dan >

Re: [PHP] Backup Database

2003-09-02 Thread Viraj Kalinga Abayarathna
you can write a PHP script to backup the DB to a SQL file and run that script using crond at scheduled time or periodiacally as you define in cron regards viraj Shaun wrote: > > Hi, > > Is there a facility out there that I can use to automatically backup my > database to m

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, rgd viraj Seth Willits wrote: > > On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: > > >> > >> > >> Lots of > >>

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... happy coding Viraj Seth Willits wrote: > > I'd like to show

Re: [PHP] web-mail problem

2003-09-02 Thread Viraj Kalinga Abayarathna
tell you exactly whats going on there. Viraj Lingua2001 wrote: > > Hi all, > > I am trying to solve a problem related to mail( ). I am not > sure whether it is from SMTP directly or html tags used for html form mail. > I got the following message, and has

Re: [PHP] undefined variable

2003-08-29 Thread Viraj Kalinga Abayarathna
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: > > You seem confused with POST & GET, instead of using _POST to retrieve > values from the form, you use $senders_name, and further down you set > $_POST["msg&

Re: [PHP] How to get data from database with a click

2003-08-15 Thread Viraj Kalinga Abayarathna
try java scripts, there is a function called "onChange()", you can attach this with your combo box and can submit (SELF) the form upon the content change in combobox. I have done this long time back, i'll send you the coding if still i have that script in my archives. Viraj

Re: [PHP] host name

2003-08-15 Thread viraj
echo $HTTP_HOST; did the job perfectly thanks Justin Viraj Quoting Justin French <[EMAIL PROTECTED]>: > > > > > Have a look at the output, find the variable you need, then manipulate > it if needed. > > Justin French > > On Friday, August 15,

[PHP] host name

2003-08-14 Thread viraj
be passed to domain1.php, if the visitor from http://domain2.com the header hould be pass to domain2.php. thanks Viraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php