Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-12 Thread Duken Marga
etting is *the show has ended* which is wrong. A > test example is at http://www.lakesidesurrey.co.uk/test.php. > > You can also me what I am doing wrong? > > Thanks > Terry > -- Duken Marga

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Duken Marga
tly a curiosity thing really, as this thing is > going to be re-written faster than an school project the eve before > hand-in. > > -- > Thanks, > Ash > http://www.ashleysheridan.co.uk > > > -- Duken Marga

Re: [PHP] set up mass virtual hosting with apache/nginx and PHP ... best practice 2012?

2012-08-25 Thread Duken Marga
the program is small and just doing a simple task and if the suPHP program still work for the latest Apache today, why do we must question it? Even small notepad from 10 years ago can still be used today, right? If you want advanced and simple task to manage files for each user, you must buy commercial program like cPanel or Plesk. -- Duken Marga

Re: [PHP] set up mass virtual hosting with apache/nginx and PHP ... best practice 2012?

2012-08-25 Thread Duken Marga
ctories would look like: > /mnt/somedir//**docroot > > - students would be able to create PHP applications executed with > their own permissions > > - I would be able to configure all 5,000 accounts with a single > configuration (1 virtual host rule?) > > Do you know what the "best practices" are for now ... here in 2012? > > -- Dante > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Duken Marga

Re: [PHP] PHP & Database Problems -- Code Snippets

2012-05-02 Thread Duken Marga
ow7[0]; > > echo "\n"; > echo " $Indx \n"; > echo " $Site \n"; > echo " $_GLOBALS[mdr] \n"; > echo " $Notes \n"; > echo " $Weight \n"; > echo " $BMI \n"; > echo " $Date2 \n"; > echo "\n"; > > > while($row8 = mysqli_fetch_array($result2, MYSQLI_BOTH)) > { >global $finished; >echo "\n"; >echo " $row8[0] \n"; >echo " $_GLOBALS[mdr] \n"; >echo " $row8[2] \n"; >echo " $row8[3] \n"; >echo " $row8[4] \n"; >echo " $row8[5] \n"; >echo " $row8[6] \n"; >echo "\n"; >echo "row8"; print_r($row8[1]); > > } >echo ""; >$flag = 1; > > } >} /* end step4 */ > } /* End Switch */ > > WELCOME SCREEN: > >function show_welcome() >{ > > $first_name = isset($_REQUEST["Fname"]) ? $_REQUEST["Fname"] : ""; > $last_name = isset($_REQUEST["Lname"]) ? $_REQUEST["Lname"] : ""; > $medrec = isset($_REQUEST["MedRec"]) ? $_REQUEST["MedRec"] : ""; > $phone = isset($_REQUEST["Phone"]) ? $_REQUEST["Phone"] : ""; > $height = isset($_REQUEST["Height"]) ? $_REQUEST["Height"] : ""; > > echo ""; > echo " Site: />"; > echo " Record Number: value='", $medrec, "' />"; > echo " First Name: "; > echo " Last Name: "; > printf("Two Capital Letters\t\t\t Five Numbers\t\t\t\t Text - No > Numbers\t\t\t Text - No Numbers\n\n\n"); > echo " Phone: "; > echo " Height: "; > printf("XXX-XXX-\t\t\tInches\n\n"); > echo " Male checked>"; > echo " Female >"; > echo " "; > echo " "; > echo " value='already_seen'>"; > >} > ?> > > I hope this helps. > > Ethan > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Ethan Rosenberg, PhD > Pres/CEO > Hygeia Biomedical Research, Inc > 2 Cameo Ridge Road > Monsey, NY 10952 > T: 845 352-3908 > F: 845 352-7566 > <mailto:erosenberg@**hygeiabiomedical.com > >erosenber**g...@hygeiabiomedical.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Duken Marga

Re: [PHP] PHP & Database Problems

2012-05-02 Thread Duken Marga
t;> Site Medical Record First Name Last Name Phone Height Sex History >> AA 10003 Stupid Fool 325 563-4178 65 Male Has been convinced by his >> friends that he is obese. Normal BMI = 23. >> Index Site Medical Record Notes Weight BMI Date >> >> Notice that it is entered into record 10003 >> >> The data is "First Try" >> >> Index Site Medical Record Notes Weight BMI Date >> 2590 AA 10003 First Try 189 31.4 02 May 2012 >> >> Help and advice, please. >> >> Thanks. >> >> Ethan >> >> >> >> > > -- > Jim Lucas > > http://www.cmsws.com/ > http://www.cmsws.com/examples/ > http://www.bendsource.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Duken Marga

Re: [PHP] whats wrong

2012-03-31 Thread Duken Marga
gt; First Name > Last Name > Telephone > Email Address > > //LOOP through all table rows > while ($row=mysql_fetch_array($result)) { > echo""; > echo"".$row['id'] . "; > echo "" . $row['firstName'] . ""; > echo "" . $row['lastName'] . ""; > echo "" . $row['telephone'] . ""; > echo "" . Srow['email'] . " echo""; > } > //free result memory and close database connection > mysql_free_result($result); > mysql_close(); > ?> > > > > thanks > -- Duken Marga

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Duken Marga
port_php.gms')) !== FALSE) > { >  print('Not error!'); > >  printf('Output is "%s"', $out); > } > else > { >  print('Error'); > } > Fatih it shows again nothing why I should set the full path even when I run > my file on the pat

Re: [PHP] how to execute Exe file in system

2012-02-17 Thread Duken Marga
t; > it shows me Error > > and again using this one: > > if(system('./gams.exe trnsport_php.gms')) > echo 'Not Error'; > else echo'Error'; > > has printed again Error > > I tried exec too but no result I don't know what is wrong here.

Re: [PHP] php sendmail_from

2012-01-10 Thread Duken Marga
alexus.org/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Duken Marga http://duken.info

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-01 Thread Duken Marga
evel.com > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Duken Marga

Re: [PHP] mysql_fetch_object() equivalent for mongoDB

2011-09-07 Thread Duken Marga
->find(); echo 'Id: ' . $posts->Id; -- Duken Marga On Wed, Sep 7, 2011 at 1:28 PM, chamila gayan wrote: > hi all, > > Is anybody aware of mysql_fetch_object() equivalent/similar implementation > for mongoDB? > thanks.. > > ~Chamila Gayan > -- PHP Gener