[PHP] PHP Job Opening in UAE

2006-01-27 Thread M Saleh EG
Login Innovations, a new media  internet solutions studio in UAE is looking
for a resident-in-house PHP developer with at least 2 years experience.

Skills required:
OO knowledge and PHP5
PEAR aware
Framework and code libraries integration
CMS integration
SQL and PL-SQL (MySQL 4.x, MySQL 5)
XML and AJaX is plus

Send your resume to [EMAIL PROTECTED]


Re: [PHP] Suggestions for class design

2005-09-19 Thread M Saleh EG
From what I understand is you need a data objects class. Use a generic class 
such as PEAR's DB_DataObject (http://pear.php.net/package/DB_DataObject).

All you have to do is give the table name and the class for example would be 
in our case
DB_DataObject_Customer

And then querying the table would be in a line such as 
[code]
$customer_data=new DB_DataObject_Customer();
$customer-get, -insert,-find, -update and the other goodies given that 
you supply the right parameters.
[/code]

HTH.


Re: [PHP] How to start a global variable within a function?

2005-08-08 Thread M Saleh EG
simply,
$GLOBALS['varname']=some_value;
 M Saleh EG
+971-50-4779817

 On 8/8/05, Wong HoWang [EMAIL PROTECTED] wrote: 
 
 as title, how to do that?
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Re: dynamically selecting a function

2005-08-08 Thread M Saleh EG
hmm, there is an intresting way that AFAIK only exists in PHP which is the 
variable variable and variable function.
That is you could have a string to be a function name and then make the call 
with it in the following manner:
$step=1;
$func_const_name=step;
$dyn_func=$func_const_name.$step;
 and then the function call would look like
$dyn_func(); // which would result in step1();
 How about that? isnt it so beautiful? God Bless ZEND

 On 8/8/05, Norbert Wenzel [EMAIL PROTECTED] wrote: 
 
 Thomas wrote:
  Thanks Burhan. Is there much overhead?
 
  Norbert: that's what I am doing now, just wanted to save some code. :-)
 
  Thomas
 
  -Original Message-
  From: Norbert Wenzel [mailto:[EMAIL PROTECTED]
  Sent: 08 August 2005 11:18 AM
  To: php-general@lists.php.net
  Subject: [PHP] Re: dynamically selecting a function
 
  Thomas wrote:
 
 Hi there,
 
 
 
 How can I do something like this:
 
 
 
 [snip - theoretical code] if( isset($step) ) echo step.$step() ) [/snip]
 
 
 
 $step would be an int (I would check that before) and then I would have
 
  all
 
 sorts of functions like step1(), step2() . etc.
 
 
 
 Any ideas?
 
 
 
 Thomas
 
 
  What about switch / case?
 
  switch($step) {
  case 1:
  step1();
  break;
  case 2:
  step2();
  break;
  default:
  defaultStep();
  break;
  }
 
 
 i thought that would be too easy ;-)
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Inherit Methods

2005-08-08 Thread M Saleh EG
*parent* keyword does not belong to PHP5 !!! It's there in PHP4 as well!

On 8/8/05, Edwin Barrios [EMAIL PROTECTED] wrote: 
 
 Hi !
 
 you have to defined protected $var.
 
 This is a example where php5 OO model has a little ambiguities.
 Thing a few in your problem !, on de child class scope $var it's
 private then when yo execute printVar(), you aren't executed on parent
 scope you are calling a copie on child scope, then you don't have
 access to $var. Only when you use parent scope throw
 parent::printVar() , you realy calling the parent class instance into
 your child then print result.
 
 Then when you want to have a variable for being used on a public
 inherit method you have to defined protected
 
 On 8/8/05, Norbert Wenzel [EMAIL PROTECTED] wrote:
  Is it possible to run inherited methods in the scope of the child class?
  In my case I have an abstract class called 'Company' and some child
  classes. There is a non abstract function in 'Company' which prints
  '$this-phoneList'. That function should be the same to all child
  classes, without rewritting it in every class.
 
  I call the printing method via the child class like
  $childObject-printPhoneList();
  The call seems to be handed over to the parent class 'Company' which is
  fine. But the $this points to the phoneList of the abstract parent
  class. So the phoneList in the abstract class seems to be unset, since i
  have set the phone list in the child class.
 
  Here's a short example, showing what I mean:
 
  ?php
 
  abstract class AbstractClass {
 
  private $var;
 
  public function printVar() {
  echo('var: ' . $this-var . 'br');
  }
 
  }
 
  class ConcreteClass extends AbstractClass {
 
  public function __construct($var) {
  $this-var = $var;
  }
 
  public function printVarChild() {
  echo('var (child): ' . $this-var . 'br');
  }
 
  }
 
  $cl = new ConcreteClass(15);
  $cl-printVar();
  $cl-printVarChild();
  ?
 
  Output is:
  var:
  var (child): 15
 
 
  Has anyone an idea how to print the $var of the child, without copying
  the method in every child class?
 
  thanks in advance,
  Norbert
 
  --
  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
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] parallel execution of php code?

2005-08-08 Thread M Saleh EG
Check if you're using MySQL 4.1. If Yes use the subquery functionality. 
So you could have your query as following:
Insert into sometable where not id=NULL and id=Select id from mytable where 
bla like 'some pattern';
 Not really sure if it would work thogh. Havent tried it yet.
 HTH.
 On 8/8/05, Michael Sims [EMAIL PROTECTED] wrote: 
 
 Martin van den Berg wrote:
  I have this piece of php-code which inserts data into a database.
  Before inserting it must verify if the data is unique. The php code
  looks something like:
 
  $query = SELECT id FROM mytable WHERE bla LIKE  . $x .;
  $rows = execute( $query )
  if ( $rows == 0 )
  {
  /* some more processing */
  $query = INSERT INTO mytable .. etc etc
  execute( $query )
  }
 
  Now here is the problem: when the user enters the page, and directly
  refreshes the record is inserted twice Is is possible that both
  requests are processed simulatiounsly by the server (apache on linux)?
  And can I add something like a critical section or semaphore to
  overcome this problem.
 
 The problem with the approach above is that a race condition exists 
 between the
 check for the existence of the row in question, and the insertion of that 
 row. It's
 possible that the two requests can come so close together that both of 
 them execute
 their selects before either do their inserts. It's not very likely in the 
 simplest
 cases, but as the amount of traffic (or the number of users you have who 
 like to
 quickly click refresh) increases there is a greater chance that this race 
 condition
 will cause a problem.
 
 In my opinion it's best to let your RDBMS handle this concurrency problem, 
 since
 it's best equipped to do that. Ideally you would be using some sort of 
 constraint
 to prevent duplicate rows in your table...whether this is a primary key, 
 unique
 index, foreign key, etc. Inserting a duplicate row should result in an 
 error from
 the database. In that case you can trap for the error in your PHP code 
 (using
 functions like mysql_error()) and handle it appropriately (for example, 
 displaying a
 friendly error message, or simply ignoring the query).
 
 Another approach would be to start a transaction with a high isolation 
 level before
 executing the select, but to me this is less desirable because depending 
 on your
 database system it may cause contention problems if the entire table has 
 to be
 locked. Simply attempting the insert and catching the error should be much 
 lighter,
 assuming it's possible to create the appropriate constraint in your 
 database.
 
 HTH
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Average time spent on a page

2005-08-07 Thread M Saleh EG
My Algorithm would look something close to this,
 ForEach Session 
 ForEach Page_Visit
 Record Page_Load
 Record Page_Unload (could be clicking on a link on a page or just leaving 
the whole domain which might end the session as well)
 This would be the simplest form I coult put a rough algorithm for that.
 The actual solution would be a mixture of PHP, JS, SQL, and Apache Log 
reading.
Wow!!! I'm starting to visualize an application full of graphs and analysys 
for usabilty analysys and results. I'm so excited. I'm going to research 
more on this subject.

 On 8/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 
 
 Yes, I'm looking for the algorithm.
  
 - Original Message - 
 *From:* M Saleh EG [EMAIL PROTECTED] 
 *To:* [EMAIL PROTECTED] 
 *Cc:* php-general@lists.php.net ; Frank de Bot [EMAIL PROTECTED] 
 *Sent:* Sunday, August 07, 2005 6:36 AM
 *Subject:* Re: [PHP] Average time spent on a page
 
  Try using one of the log reader/analysis packages available for Apache or
 try doing it urself. 
  Are you looking for the algorithm? let me know.
 
  On 8/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED]  wrote: 
  
  LOL. This got nothing to do with my question . LOL again
  
  - Original Message -
  From: Frank de Bot  [EMAIL PROTECTED]
  Cc: php-general@lists.php.net
  Sent: Saturday, August 06, 2005 10:20 PM
  Subject: Re: [PHP] Average time spent on a page 
  
  
   [EMAIL PROTECTED] wrote:
  
  Hi,
  
  How can i found out the average time users spent on a page. Anyone 
  know a
  tutorial? 
  
  Thanks in advance for your help !!!
  
  
   A hello world page will take me around 15 secs I guess...
   A full blown website with everything you can imagine a few months 
  orso. 
  
   --
   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
  
  
 
 
 -- 
 M.Saleh.E.G
 97150-4779817 
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Average time spent on a page

2005-08-06 Thread M Saleh EG
Try using one of the log reader/analysis packages available for Apache or
try doing it urself. 
 Are you looking for the algorithm? let me know.

 On 8/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 
 
 LOL. This got nothing to do with my question . LOL again
 
 - Original Message -
 From: Frank de Bot [EMAIL PROTECTED]
 Cc: php-general@lists.php.net
 Sent: Saturday, August 06, 2005 10:20 PM
 Subject: Re: [PHP] Average time spent on a page
 
 
  [EMAIL PROTECTED] wrote:
 
 Hi,
 
 How can i found out the average time users spent on a page. Anyone know 
 a
 tutorial?
 
 Thanks in advance for your help !!!
 
 
  A hello world page will take me around 15 secs I guess...
  A full blown website with everything you can imagine a few months orso.
 
  --
  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
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Running a PHP script everyday

2005-07-30 Thread M Saleh EG
If you're on windows desktop try this... it might sound a lil lame but 
it works.
Schedule a task to open IE or FF and pass a url to the task . That's it. The 
task will execute that page in a given interval.

On 7/30/05, Rory Browne [EMAIL PROTECTED] wrote:
 
 If your script needs to be run by the webserver - if for some reason
 cli won´t work for you, then you could always automate a call to the
 webserver using wget.
 
 You can get wget for win32 as well as Unix/Linux, so you shouldn´t
 have any problems here.
 
 On 7/30/05, André Medeiros [EMAIL PROTECTED] wrote:
  You can cron the script to run.
 
  Do the following:
 
  1) Add #!/usr/bin/php as the first line on your .php file. If
  /usr/bin/php isn't where your php binary lives, type whereis php to
  find out
  2) Make sure you chmod +x your php script.
  3) http://www.linuxforums.org/tutorials/1/tutorial-4017.html
 
  On 7/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   In my pevious hunt through cron I didn't even notice the PHP CLI. So I 
 will be figuring that out today probably.
  
   My server runs on Linux. Not sure which distro though. I'll have to 
 ask.
  
   My script will be getting e-mail addresses from my SQL db and sending 
 them a pic of the day. I got the HTML MimeMail 2.5.1 to work perfectly, 
 now I just need to figure out how to make it run without me doing anything.
  
   Thanks!
  
   Andrew Darrow
   Kronos1 Productions
   www.pudlz.com http://www.pudlz.com
  
  
   - Original Message -
   From: James Kaufman [EMAIL PROTECTED]
   To: php-general@lists.php.net
   Sent: Saturday, July 30, 2005 10:07 AM
   Subject: Re: [PHP] Running a PHP script everyday
  
  
On Sat, Jul 30, 2005 at 09:17:20AM -0700, [EMAIL PROTECTED] wrote:
 I have a PHP script that I need to run once a day. I have it 
 currently
 setup so that I just run it from my cell phone, but I would prefer 
 something
 automated. I'd looked into a cron job, but that just looks like 
 it's for
 doing linux command line stuff on my host.

 I also thought about writing a never ending while loop with an if 
 statement
 that checks to see if it's time to run the script, then when it is 
 time, it
 runs. Then checks to see if it's time again.

 But even assuming I could get it working, do I really want to have 
 a PHP
 script that runs all the time. This could be bad if it ate up all 
 the CPU on
 my server. I'm not even sure I have access rights to kill the 
 process once I
 start it.

 Any suggestions?

 Andrew Darrow
 Kronos1 Productions
 www.pudlz.com http://www.pudlz.com

   
You don't state what OS you are using, but you certainly can use 
 cron under
Linux to run a PHP script. What really matters is what does the PHP 
 script do?
For example, I have a PHP script that I run periodically that 
 retrieves data
from a database and updates a text file on the disk. What does your 
 script do?
   
--
Jim Kaufman
Linux Evangelist
public key 0x6D802619
CCNA, CISSP# 65668
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   
   
   
   
   
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 
 7/28/2005
   
   
  
 
  --
  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
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-26 Thread M Saleh EG
In general, anyone could then say oh .Net framework, Java framework, 
CPAN, or then any other full blown frameworks bloated!
I believe these kind of posts would not effect noone but it might create a 
bad perception for the net/platform voyagers!

Every framework, be it based on a language or an environment has a 
flexibility level that could satisfy some segment of programmers, and thus 
keeping some segments unhappy. It's a matter of prefrence and the kind of 
functionalities and repositories that a programmer or a team might need.
However, a general adjective can not be given just like that without any 
specification of the matter and why it is said it is in our case Bloated.

In all the cases if someone thinks a framework is bloated. Should just keep 
it bloated for him/herself. Programmers, and specially PHP programmers who 
are the majority of web-programming in IT labor market. So being it bloated 
for someone or perceived to be bloated has no meaning for some other 
programmers, unless having the same needs and environment. 

It's simply a matter of prefrence. Period.

M.Saleh.E.G
+97150-4779817


Re: [PHP] Displaying an Outlook Calendar on a webpage using PHP

2005-06-06 Thread M Saleh EG
But why would you do that when you can share the Calendar over outlook?

On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote: 
 
 That looks like some of my code.. or a derivative of my code. For some 
 reason, my PC at work here is having issues with PHP instantiating with COM 
 so I can't test this, but the code you posted is conspicuously missing all 
 the braces { }. I'm guessing that's not your issue though... or else you'd 
 be getting some kind of error maybe.
 
 Anyway, here's a re-braced version of the code. It should produce 
 something when run through a web browser, but you might View Source and see 
 what shows up there.
 
 This does require Outlook to be installed on the PC that PHP is running 
 on, as that's how COM works. I never messed around with remote COM calls, 
 but I'm sure there's some way to do that.
 
 If someone wants to try this code and see if there are other issues 
 besides the missing braces. I don't see anything obviously wrong with it 
 (besides maybe some sloppy programming on my part :). I'll see about 
 checking it when I get home tonight if I have time.
 
 ?php
 $comobjOutlook = new COM(outlook.application) or die(Outlook not 
 loaded);
 
 //$comobjOutlook - Activate;
 
 # This is your mailbox name just like it appears in your Folders view.
 # It might be 'Inbox' or something else.
 $targetmailboxname = Mailbox - Baiocchi, Justin (CSIRO IT, Armidale);
 
 
 # This is the folder you're looking for. In this case, I'm looking for 
 calendar
 # items, but you can look for any folder. You need to add another loop to 
 look
 # for subfolders. Although there's probably a better way, that's how I did 
 it when
 # I needed to get to Personal Folders/Inbox/Subfoldername
 $targetfoldername = Calendar;
 
 $objNamespace = $comobjOutlook-GetNameSpace(MAPI);
 $objFolders = $objNamespace-Folders();
 $mailboxcount = $objFolders - Count();
 
 
 $foundmailbox = FALSE;
 for ($i=1; $i=$mailboxcount; $i++) {
 $folderitem = $objFolders -Item($i);
 if ($folderitem - Name == $targetmailboxname) {
 $objMailbox = $folderitem;
 $foundmailbox = TRUE;
 
 $foundcal = FALSE;
 if ($foundmailbox) {
 $objFolders = $objMailbox-Folders();
 $foldercount = $objFolders - Count();
 
 for ($i=1; $i=$foldercount; $i++) {
 $folderitem = $objFolders - Item($i);
 if ($folderitem - Name == $targetfoldername) {
 $objCalendar = $folderitem;
 $foundcal = TRUE;
 }
 }
 }
 
 
 if ($foundcal) {
 $objItems = $objCalendar-Items();
 $itemcount = $objItems-Count();
 
 for ($i=1; $i=$itemcount; $i++) {
 $apptitem = $objItems - Item($i);
 $apptstart = $apptitem - Start();
 $apptend = $apptitem - End();
 $apptallday = $apptitem - AllDayEvent();
 $apptrecur = $apptitem - IsRecurring();
 $apptsubject = $apptitem - Subject();
 $apptlocation = $apptitem - Location();
 
 $secondsadj = $apptstart - 14400;
 $startadj = date(m/d/Y H:i:s, mktime(0,0,$secondsadj,1,1,1970));
 
 $secondsadj = $apptend - 14400;
 $endadj = date(m/d/Y H:i:s, mktime(0,0,$secondsadj,1,1,1970));
 
 if($apptallday) $allday = All Day; else $allday = ;
 if($apptrecur) $recurring = Recurring; else $recurring = ;
 
 echo $apptsubject @ $apptlocation\r\nFrom: $startadj To: $endadj\r\n;
 
 if ($allday   OR $recurring  ) echo $allday $recurring\r\n;
 echo \r\n\r\n;
 }
 } else {
 die (Did not find calendar folder);
 }
 } else {
 die(Did not find target mailbox: $targetmailboxname);
 }
 }
 ?
 
 
 
 = = = Original message = = =
 
 Hello all,
 
 I am trying to publish an Outlook Calendar on a web page using PHP and
 COM. I have managed to track down on the net some examples of how it
 could be done. The most promising is the code below. However, all that
 happens is that outlook.exe is started on the server, but nothing is
 displayed on the web page and it just times-out.
 
 I am running PHP 4.0.18 on Windows 2003 server and I have Outlook 2002
 installed on the server.
 Does anybody know why it doesn't work?
 
 Thanks
 Justin
 
 
 ___
 Sent by ePrompter, the premier email notification software.
 Free download at http://www.ePrompter.com.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] htmlArea - a 'client editor'

2005-06-04 Thread M Saleh EG
www.FCKEditor.net http://www.FCKEditor.net
FCKEditor is the best i've ever seen. 
Check it out.
 
 On 6/3/05, Rory Browne [EMAIL PROTECTED] wrote: 
 
 htmlArea afaik only works on MSIE 5+. It doesn't work on 
 Mozilla/Firefox/etc.
 
 On 6/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Ryan A:
  Do you mean htmlArea?
 
  http://www.dynarch.com/projects/htmlarea/
 
  .. we used htmlArea in one of our projects and were quite happy with the 
 simple user interface. It had a couple of bugs ... but maybe the newer 
 release has squashed these? Check with the developer.
 
  Rob.
  http://www.globalissa.com
  _
  Ryan A wrote:
  Hey guys (and girl...as we have one on the list...(that i know of)),
  snip
  2nd question
  I will need a kind of client editor for when people write their 
 messages into the forum,
  eg: make this bold and that italics and that centered and that with an 
 image
  and so on I had actually seen a (dhtml, I think) form some time back 
 where you could
  preview your message at the side as you made changes...somewhat like 
 what google has for
  their ad-cents accounts where you can change the colors of your ad and 
 immediatly
  it shows the changes at the side in a box.
  I remember sometime back someone posting some WYSIWYG kind of editors 
 which
  loads on the clients machine with just a textbox and the buttons to go 
 bold,
  italics,centered etc unfortunatly looking into the archives i cant find 
 it.
 
  Thanks,
  Ryan
 
  --
  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
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-22 Thread M Saleh EG
I'd recommand you to use the HTML_TEMPLATE_IT. It's a PEAR class for 
templating; I've personaly worked on it for building skinnable applications 
in which users and admins can change the look of the pages. Bottom line, 
it's a PEAR library/extension so no hastle since most of the hosts include 
it in their PHP installations. This template does alot of handy jobs such as 
nested blocks templating and rendering. However, it does not have the bells 
and the whistles of Smarty. Simply it does the job, it's efficient, and very 
elegant since your HTML templates would have only 2 extra stuff. One which 
is the HTML style comments to define and close blocks and the, Two which is 
the variable names to be placed whithin curly braces. So templating does not 
realy have a language in IT it's just a ditributed method of writing HTML 
and feeding data which forms another Tier in your application not another 
Application by itself.
 Benefits you'll get by using this PEAR library/extension is that you 
wouldnt need to tutor the designers on how to use a procedural markup 
templating language hence more flexibility and shorter learning curve. And 
plus it does not need no configuration and you could write your own nice 
wrapper classes to do special things for you, such as rendering pages 
templates, or blockwise template files with predefined variable to be 
inserted in the template files simple as that. e.g. you could write a 
function or a class method to route template files and then only pass them 
an array and the function would do the whole thing from rendering to 
displaying. especialy if you use the Web Standards and Semantic Design 
skinning would mean only switching CSSs and slight changes in your 
structural markup(template files).
 Note: If by any change your ISP/Host does not have the PEAR package 
installed you could just put it in a directory and simply append it to your
include_dir directive so that you could include/require the class file (only 
1 file is the whole package) directly w/o routing to its location.
 I'd honestly never implement Smarty for an application I'd work alone on 
and then give it up to designers I'd use Smarty while working with team 
mates of the same range of understanding of the Web Dev/ Design in a team 
environment for better performance and that's only if the application 
screens are more than 100 and the administration. 
 HTH.
 M.Saleh.E.G
97150-4779817


Re: [PHP] SWF duration time

2005-05-21 Thread M Saleh EG
here are the steps for a logical playtime duration of an SWF movie.
The length/ duration of the movie is calculated by dividing the number of 
frames by the frame rate speed.
Now that was the main time line... what about the other movies nesting 
inside the _root and its successors?
run a tree calculation if possible and then just calculate the acumelative 
duration. That's just one theory .. not even practical to force a huge 
overhead on the clients web browser for such a think... or even the 
serverside script and banging your server. 
 If you could give abit more details about what you want to do... and why 
you need the duration for... it could be easier to answer rather than 
general answers. HTH.
 
M.Saleh.E.G
Web Developer
Login Innovations U.A.E
97150-4779817


Re: [PHP] Code to bypass a certain php.ini directive

2005-05-20 Thread M Saleh EG
Sure you can!
 ini_set(display_errors, On);
 HTH.

 On 5/21/05, Mário Gamito [EMAIL PROTECTED] wrote: 
 
 Hi,
 
 I have this server with display_errors=Off in php.ini
 
 Now that i'm developing a new site. is there some code i can insert in
 the begining of a .php file to set only for this file (not sitewide)
 display_errors=On ?
 
 Thanking you in advance.
 
 Warm regards,
 Mário Gamito
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread M Saleh EG
What is the purpose of your templating system? And what does it solve? 
These questions are the ones I'd ask myself if I was creating one. However, 
there are a lot of them out there so does your templating system solve a 
problem and is a solution? or just yet another templating class? 
 As its well known templates are made for several reasons such as separating 
server-side and client-code, separating designers and developers work in 
team environment, theme able and multy layout and language systems... and a 
lot more that could me mentioned. 
 I've personally used the HTML_Template_IT package from pear along with 
Smarty. And now I'm back to normal HTML including for small projects that 
have a short life cycle, for longer life cycle projects I'd use the IT 
package. Will never use smarty again; it just makes another layer in the 
programming not in the system in other words, it becomes another language to 
add to your programming instead of being a component/tier though it provides 
much more flexibility than the any other package available.
 There are a number of articles on Templating I've selected a very 
criticizing article to share that lives at
www.phppatterns.comhttp://www.phppatterns.com. I so much agree with
him. At the same time I see a big need for
templating. Here is the link to the article.
http://phppatterns.com/index.php/article/articleview/4/1/1/
  Hope that helps. 
 Regards,
M.Saleh.EG http://M.Saleh.EG
+971-50-4779817


Re: [PHP] Zend Certification Exam

2005-04-26 Thread M Saleh EG
M Saleh EG wrote:
 Any advice from the ones that passed?
 Thanks

Aaron Gould wrote:
What exactly are you after? Why does it matter if a person has passed
or not? As long as someone has taken the exam, that should be
sufficient enough to provide some advice.

I dont understand what's the problem if I asked? 
So why such a reply? I don't understand.

A couple tidbits of advice have already been given to you, including by me.

On 4/25/05, Aaron Gould [EMAIL PROTECTED] wrote:
 
 M Saleh EG wrote:
  Any advice from the ones that passed?
  Thanks
 
 What exactly are you after? Why does it matter if a person has passed
 or not? As long as someone has taken the exam, that should be
 sufficient enough to provide some advice.
 
 A couple tidbits of advice have already been given to you, including by 
 me.
 
 --
 Aaron Gould
 Programmer/Systems Administrator
 PARTS CANADA
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Zend Certification Exam

2005-04-26 Thread M Saleh EG
Well glad that now u put it this way!
For me all that matter is jus knowing wat's gonna be up at the exam. 

When I said someone who passed it realy wanned to know how to tackel the 
whole thing... u might fail once n pass the second time. 
I still dont get/understand the negative way of looking at my question. In 
all the cases thanks for your replies. Will never put such a question up 
here.

On 4/26/05, Aaron Gould [EMAIL PROTECTED] wrote:
 
 Chris Ramsay wrote:
  Perhaps it came across as a bit cheeky to Aaron - I kind of got the
  impression that an answer from someone who has had a go but not passed
  the exam was not good enough for you...
 
  Really, I doubt whether there is any difference in doing the exam
  whatever the outcome, seeing as what you wanted to know was about
  taking the exam in the first place.
 
 That's exactly the impression I got too Chris. Glad I'm not the only
 one to see it that way! I felt a bit inadequate there for a moment. :)
 
 Regardless, my advice still stands (if it still matters coming from a
 unsuccessful exam taker) -- don't rush the exam and take your time.
 Some of the questions are tricky in their wording.
 
 As an aside -- for those who are unsuccessful with the exam, don't
 worry, it doesn't mean your a bad programmer. I've been programming PHP
 for five years now, and there's very little I can't do with it.
 
 I just stink at exams; I get antsy when sitting for 30-60 minutes with
 just a pencil and paper in a quiet room.
 
 --
 Aaron Gould
 Programmer/Systems Administrator
 PARTS CANADA
 
 Proudly underperforming in exams for years...
 



-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Zend Certification Exam

2005-04-25 Thread M Saleh EG
Any advice from the ones that passed? 
Thanks

On 4/23/05, Greg Donald [EMAIL PROTECTED] wrote:
 
 On 4/23/05, M Saleh EG [EMAIL PROTECTED] wrote:
  Anyone who passesd?
 
 If I can pass.. well, good luck! :)
 
 --
 Greg Donald
 Zend Certified Engineer
 http://destiney.com/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] Zend Certification Exam

2005-04-23 Thread M Saleh EG
Anyone who passesd?

On 4/22/05, Aaron Gould [EMAIL PROTECTED] wrote:
 
 M Saleh EG wrote:
  Hi everyone.. kind of OT
  Anyone who's passed it in the list? I'm having my exam on May 7th. Gone
  through the guide book once. Sounds easy according to the guide.
  I dont think it's as easy as i'm thinking it is any experience?
  Thanx in advance.
 
 My advice -- take the full amount of time given to you, and go back over
 your answers should you have time left over.
 
 I took it at the 2005 PHP Quebec Conference (it was part of the fee).
 I finished it in an hour, but had 90 minutes alotted. I did not pass,
 and still regret not taking the time to go back over the answers I was
 unsure of. I think that if I had taken the full time, I would have had
 a better shot.
 
 You'll likely have better luck, as I normally don't do well with exams
 in general.
 
 As an aside, I think the exam needs to mature a bit more. I was confused
 a few times, and found a few questions that involved cases I had
 certainly experienced in five plus years of PHP development. I'm sure
 that'll happen in due time as the certification is only a couple years 
 old.
 
 --
 Aaron Gould
 Programmer/Systems Administrator
 PARTS CANADA
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] PHP vs ASP .NET

2005-04-23 Thread M Saleh EG
I don't recommand this article at Oracle at all!!
It's a very biased one and intends to misguide as a marketting gig. I'd like 
you to read healthy articles that truely compare. BTW
ASP.nethttp://ASP.netcan not be compared with PHP5 because they are
totaly different.
It's like comparing Apples and Oranges. PHP can be compared to ASP not 
ASP.net http://ASP.net because it's totaly a different thing. HTH. Been 
there, done that.

On 4/23/05, hanez [EMAIL PROTECTED] wrote:
 
 On Saturday 23 April 2005 19:33, Reynier Perez Mira wrote:
  Hi list:
 
  I have a problem with ASP .NET community in my Universty and I need to
  solve it. The thing is that they say me that ASP .NET is better than 
 PHP,
  so I need information to response they about this theme. Can you put me
  some sites, statics, intrview to big personalities, articles to response 
 ?
 
 My meaning about this:
 
 ASP .NET is not just a scripting language but more a plattform for 
 Enterprise
 (web) applications. It really has many more features then PHP and i would
 compare ASP .NET more with JAVA/J2EE. I don't know much about ASP .NET 
 since
 i am more familiar with PHP and maybe some little bit JAVA. I think it is
 better to compare with a scripting language like Python or Ruby. You could
 compare the old versions of ASP with PHP because this was nearly the same. 
 I
 never have coded with ASP since i very rarely touch a windows box but it
 looked like VisualBasic code.
 
 Take a look here (Search Google: asp .net vs php5 ):
 
 http://www.oracle.com/technology/pub/articles/hull_asp.html
 
 Regards
 
 Johannes Findeisen
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] PHP vs ASP .NET

2005-04-23 Thread M Saleh EG
I did not say that you compared! Sorry if I put it that way. I said the 
article at Oracle does that.
In all the cases that article does not fairly illustrate anything. It's a 
merketing trick for novices!

On 4/23/05, hanez [EMAIL PROTECTED] wrote:
 
 On Saturday 23 April 2005 20:27, M Saleh EG wrote:
  On 4/23/05, hanez [EMAIL PROTECTED] wrote:
   On Saturday 23 April 2005 19:33, Reynier Perez Mira wrote:
Hi list:
   
I have a problem with ASP .NET community in my Universty and I need 
 to
solve it. The thing is that they say me that ASP .NET is better than
   PHP,
  
so I need information to response they about this theme. Can you put 
 me
some sites, statics, intrview to big personalities, articles to
response
  
   My meaning about this:
  
   ASP .NET is not just a scripting language but more a plattform for
   Enterprise
   (web) applications. It really has many more features then PHP and i 
 would
   compare ASP .NET more with JAVA/J2EE. I don't know much about ASP .NET
   since
   i am more familiar with PHP and maybe some little bit JAVA. I think it 
 is
   better to compare with a scripting language like Python or Ruby. You
   could compare the old versions of ASP with PHP because this was nearly
   the same. I
   never have coded with ASP since i very rarely touch a windows box but 
 it
   looked like VisualBasic code.
  
   Take a look here (Search Google: asp .net vs php5 ):
  
   http://www.oracle.com/technology/pub/articles/hull_asp.html
  
  I don't recommand this article at Oracle at all!!
  It's a very biased one and intends to misguide as a marketting gig. I'd
  like you to read healthy articles that truely compare. BTW
  ASP.net http://ASP.nethttp://ASP.netcan not be compared with PHP5 
 because they are
  totaly different.
  It's like comparing Apples and Oranges. PHP can be compared to ASP not
  ASP.net http://ASP.net http://ASP.net because it's totaly a 
 different thing. HTH. Been
  there, done that.
 
 Okay, please read my post again!
 
 I would not compare PHP with ASP .NET. This is what i wrote. I found that 
 link
 to Oracle within 5 seconds via Google and did not read the whole text but
 Reynier Perez Mira could understand the difference with it.
 
 Please read carefully before reply and please don't top post!
 
 
 Regards
 
 Johannes Findeisen
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] radio buttons in $_POST

2005-04-23 Thread M Saleh EG
That's because Radio Buttons and Check Boxes do not return anything if not 
checked or selected.
So you gotta explicitly do it ur self. That is u gotta check for it's 
validity and non-empiness.
e.g. in ur scenario
if(!isset($_POST['radio_test'])) { //print out all the options unselected } 
else
{ // print the value and show the rest empty in the report }

On 4/23/05, Ashley M. Kirchner [EMAIL PROTECTED] wrote:
 
 
 I have this form.html:
 
 form method=post action=form.php
 text input input type=text name=input_testbr /
 radio input1 input type=radio name=radio_test value=test1 /
 radio input2 input type=radio name=radio_test value=test2 /
 input type=submit value=Submit
 /form
 
 Then I have this script (form.php):
 
 ?php
 foreach ($_POST as $key = $val)
 echo $key = $val\n;
 ?
 
 If I simply submit the form empty, all I get back from the script is
 the text input $key. The radio button doesn't show up. Why is that and
 how can I have it show up? (the radio input does show up once one of
 the radios is checked, but I need it to show up when empty as well.)
 
 --
 H | I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Imaging . 3550 Arapahoe Ave. #6
 http://www.pcraft.com . . . . Boulder, CO 80303, U.S.A.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] hosted 2 factor authentication services?

2005-04-23 Thread M Saleh EG
www.dreamhost.com http://www.dreamhost.com is the best choice and the best 
value for money! Check it out.

On 4/23/05, 1 2 [EMAIL PROTECTED] wrote:
 
 Hi
 
 I am using php and apache 2 on linux for a web
 application.
 
 Don't know if this is off topic but I don't know where
 else to ask.
 
 I am looking for some place relatively cheap that
 could provide hosted authentication services along
 with time based authenticater fobs like those found
 from securID, verisign etc.
 
 Ideally I would like to hook this into my current
 login page with the hosted server returning a a yes/no
 for a specific user.
 
 Anyone know of a company that does this sort of thing?
 I am in the UK and ideally would like to find
 someplace nearby or with good links UK/Europe/N
 America/India
 
 Many thanks for any pointers.
 
 Jack
 
 __
 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
 
 


-- 
M.Saleh.E.G
97150-4779817


[PHP] Zend Certification Exam

2005-04-22 Thread M Saleh EG
Hi everyone.. kind of OT
 Anyone who's passed it in the list? I'm having my exam on May 7th. Gone 
through the guide book once. Sounds easy according to the guide.
I dont think it's as easy as i'm thinking it is any experience? 
Thanx in advance.

-- 
M.Saleh.E.G
97150-4779817


Re: [PHP] reverse MD5 ???

2005-04-21 Thread M Saleh EG
It's simple. 
If your system supports it performance wise. 
Grab the id and compare it against the md5 version of the id saved in the 
cookie.
if( $_COOKIE['id'])== md5($id))
{
 //.. then allow or let the user to do something
}
 that's if you have the id already known. otherwise if you donno the id you 
gotta grab all the ids and md5 them and then compare them against the one 
stored in the cookie; which I dont recommand and is realy a stupid thing to 
do.
 HTH

 On 4/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 
 
 On 21 Apr 2005 Jason Barnett wrote:
 
  Any information that you wouldn't want in the script in plain text, you
  probably don't want in the database in clear text. Moreover MD5 is a
  one way hash and although it is broken, you probably don't want to spend
  the processing time needed to reverse it.
 
 In the general case, no reasonable amount of processing time will
 reverse it since (AFAIK) you have to brute force test all possible
 values, though for very short text it can sometimes be done, and there
 are online databases out there.
 
 For the OP, this is part of what it means to use a hash or digest (MD =
 message digest) as opposed to an encrypted value. The conversion
 from the original text to the hash is one-way and as a general rule
 cannot be reversed except by trying every possibility for the original
 text, which becomes an astronomical task with even very small text
 lengths. For example, for text using a-Z, A-Z, and 0-9, there are 218
 trillion possible 8-character values (62 ^ 8) and 839 quadrillion
 possible 10-character values.
 
 Imagine MD5 (this is a very crude analogy) as taking a letter, tearing
 it up into tiny pieces, rearranging them according to some complex
 predefined algorithm, then selecting a hundred or so pieces with
 individual letters on them and putting those together as a code, and
 burning the rest. There is no way you can reproduce the letter from
 the code, except in the limited case where the letter is very short and
 your code actually incorporates all the pieces.
 
 I believe the places where MD5 can be broken by brute force are where
 common words or phrases are used -- then it is possible to create a
 database of possibilities and their MD5 hashes and the database lookup
 is then quite fast. For example this allows people who have the MD5
 hash of a password to break short, common words used as passwords very
 easily. But if the MD5 value is not there, you are still stuck. For
 the example above (10-character values using A-Z, a-z, and 0-9) if my
 calculations are correct it would take about 32 million gigabytes to
 store those 839 quadrillion values and their matching MD5 digests in a
 database, not counting indexing (which adds to this) nor compression
 and other optimization (which could reduce it).
 
 I am not talking about general security here and saying it is OK to
 expose the MD5 values, just looking at the difficulty of reversing
 them.
 
 --
 Tom
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817


[PHP] Visual PHP Editor?

2005-04-11 Thread M Saleh EG
We are yet blessed with existense of Zend IDE with the new features such as 
SQL views.
But, is there a tool such as VS.Net http://VS.Net? in the means of 
visualness of the editing stage too?

Of corse we do have the PEAR repositories and the other libraries that make 
our life much
easier. True OOP helped alot too. But still! Anything like
VS.NEThttp://VS.NETthat would draw a web-based
grid on the page or form validation visualy? anything sort of thing like 
that?

I'm again trying to clarify it as much as I can. The same things could be 
done by coding and is 
actualy convenient atleast for me. But still any visual tool?

This is no biased post regarding MS or Open Source so please dont abuse the 
post.


M.Saleh.E.G
Creative Director
Login Innovations
971-50-4779817


Re: [PHP] Re: Persistent PHP web application?

2005-01-18 Thread M Saleh EG
What I mean by Application-Scope variables is  variables that can be
available for the Application or Web-Application all the time after
starting the application by a trigger. After having the triger fired
those Application-Scope Variables, Datastructures, Object, and
refrences would be available for all the requests. That's how I'd
equate persistant PHP-Applications to having Application-Scope PHP
variables.

A lame Example to illustrate the purpose of Application-Scope
variables would be the persistant DB connections. Not 100% the same
but it's for the same purpose

So if you could have a huge object persistant( Application-Scope
object ) that does alot of work for you then that object is a PHP
persistant application which I call Application-Scope var or object !

Hope that clears it out.


On Tue, 18 Jan 2005 11:10:29 +0100, Zouari Fourat [EMAIL PROTECTED] wrote:
 can u explain a bit more : The answer would be Application-Scope
 vars wish we had it in PHP
 
 On Tue, 18 Jan 2005 02:42:46 +0400, M Saleh EG [EMAIL PROTECTED] wrote:
  The answer would be Application-Scope vars wish we had it in PHP
 
  M.Saleh.E.G
  97150-4779817
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: Persistent PHP web application?

2005-01-18 Thread M Saleh EG
There would be 10s of ways of doing this I assume... depends on which
technologies and resources you have access to.

Jochem Mass said:
firstly this goes against the basic principle of 'SHARE NOTHING' that
php is based on - so I doubt that the basic php environment will be
changed to accomodate such a feature any time soon.

I kindda agree with you Jochem! that's one of the reasons where PHP
beats others in performance.

Richard Lynch said:
Just throw them in a database.
It's a 10-line two-function PHP script you can write in 10 minutes.
Why would you want somebody else to do that for you?

?! I don't understand you Richard? :s How's that related? or maybe you
have a server farm fired with Oracle and 100 web servers all running
in a load balance loop.
This is about a huge application that was discussed dealing with huge
data structures... I don't know if you read the previous posts.





On Tue, 18 Jan 2005 10:20:55 -0800, Rasmus Lerdorf [EMAIL PROTECTED] wrote:
 M Saleh EG wrote:
  What I mean by Application-Scope variables is  variables that can be
  available for the Application or Web-Application all the time after
  starting the application by a trigger. After having the triger fired
  those Application-Scope Variables, Datastructures, Object, and
  refrences would be available for all the requests. That's how I'd
  equate persistant PHP-Applications to having Application-Scope PHP
  variables.
 
  A lame Example to illustrate the purpose of Application-Scope
  variables would be the persistant DB connections. Not 100% the same
  but it's for the same purpose
 
  So if you could have a huge object persistant( Application-Scope
  object ) that does alot of work for you then that object is a PHP
  persistant application which I call Application-Scope var or object !
 
  Hope that clears it out.
 
 For single-server multi-threaded architectures this is trivial to do,
 but it doesn't scale to the multi-server multi-process architecture PHP
 uses.
 
 -Rasmus
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: which is best php editor?

2005-01-17 Thread M Saleh EG
What's the purpose of your coding?
Applications? Just some sort of dynamic code here n there? or Huge OOP
application with a team of programmers?

I started with PHPEdit, Moved to Magna and then tried Dreaweaver to
communicate with designers. And then came Zend 2.5 n then Got shocked
with Zend 3.5 and now i'm on the Zend 4.0 Beta.  In all the cases I'd
recommand Zend if you wish to buy rather than using a free one.

But it all depends on u  the amount of work you want to get done with
ur editor or IDE.

HTH
 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: Persistent PHP web application?

2005-01-17 Thread M Saleh EG
The answer would be Application-Scope vars wish we had it in PHP

M.Saleh.E.G
97150-4779817

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



Re: [PHP] php editor

2005-01-17 Thread M Saleh EG
Zend Especialy with Zend 4.0 beta and Zend platform wow...
that's all i'm gonna say. I had day on Zend 3.5 where I used to see
.Net programmers openning Visual Studio.net and playing with their DB
on their left hand panels on the same IDE and I used to say
man..god help me with mySQLCC and Query Browser now with Zend
4.0 (beta) i'm experiencing the magic of having all the stuff
together
Profiling, Debugin, Code Completion and Syntax highliting, mn it's
just what I needed to have. Abit expensive but realy worth it! I
wouldnt like programming on any programming language if I had a poor
IDE or Editor n maybe that's me.

M.Saleh.EG
+97150-4779817

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



Re: [PHP] How to argue with ASP people...

2005-01-03 Thread M Saleh EG
Not to offend u or backup ASP but ur just wrong...

You said:
You
can't actually create a class.

That's not true! u might not be knowing the syntax of creating a class
in vb or js script. Sorry but this is the truth my friend.


On Mon, 3 Jan 2005 10:27:05 -0800 (PST), Richard Lynch [EMAIL PROTECTED] 
wrote:
 You can spend a small fortune in ASP adding in COM objects (or writing
 them) so it will eventually have maybe HALF the functionality of PHP.
 
 http://php.net/
 
 ASP's Object Oriented feature set is a joke.
 All the object-ness is built into pre-packaged stuff from MS -- You
 can't actually create a class.
 
 ASP has no include function.  This makes life very very very difficult to
 write decent code.
 
 ASP database drivers are slower than PHP's, for those few databases that
 ASP even supports.
 
 $$$ -- ASP costs a *LOT* more than PHP, by the time you get done factoring
 in *ALL* expenses.
 
 --
 Like Music?
 http://l-i-e.com/artists.htm
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] How to argue with ASP people...

2004-12-31 Thread M Saleh EG
the ob_start() in ASP is Response.Buffer=True

ASP doesnt handle it for you automaticaly! 
Just wanted to notify ;)


On Fri, 31 Dec 2004 03:14:31 -0500, John Holmes
[EMAIL PROTECTED] wrote:
 mail.pmpa wrote:
  Can I do any session handling before calling header(Location: $url); ?
 
 Yeah, sure. You just can't have any output before you redirect with a
 Location header (unless you use output buffering as a workaround).
 
 This is basic HTTP and ASP has to play by the same rules. If you can
 have output before Response.Redirect, then ASP is just doing the
 buffering for you before it sends a Location header.
 
 --
 
 ---John Holmes...
 
 Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
 
 php|architect: The Magazine for PHP Professionals  www.phparch.com
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Programmatic Browser Rendering Engine?

2004-11-11 Thread M Saleh EG
I've seen screenshots of websites using Live website rendered and
shown in an IFRAME scaled down to say.. 50%
. 
IFRAME is your keyword I guess. 

However, your idea is realy creative.


On Wed, 10 Nov 2004 13:39:00 -0800 (PST), Richard Lynch [EMAIL PROTECTED] 
wrote:
 Please Cc: me, as it's been quite some time since I posted 50 emails per
 day to this list... :-^
 
 I'm interested in anybody's experience, good or bad, in what I am naively
 coining as a Programmatic Browser Rendering Engine:
 
 In an ideal world, it would be a PHP function definition not unlike this:
 
 
 bool imagesurfto(resource image, string url, [int width, int height]);
 
 This function surfs to the given URL, as if a browser window the
 dimensions (imagesx, imagesy) of image were opened to that URL, and places
 in image a representation of what the user would see if they surfed to
 that site.
 
 If width and height are provided, the surfing is done as if the browser
 window were the provided width and height, and the result is then scaled
 to fit into image.
 
 Example:
 ?php
 $image = imagecreatetruecolor(800, 600);
 imagesurfto($image, 'http://php.net');
 header(Content-type: image/jpeg);
 imagejpeg($image);
 ?
 
 This displays what a user would see surfing to the PHP home page, if their
 browser window was open to 800x600.
 
 ?php
 $image = imagecreatetruecolor(400, 300);
 imagesurfto($image, 'http://php.net');
 header(Content-type: image/jpeg);
 imagejpeg($image);
 ?
 
 This displays the same image as the first example, only scaled down to
 half-size.
 
 
 In my case, I have a GUI to admin a web-site by adding links, and I want
 to give the user some Interface Feedback that the URL they have typed as a
 destination for their link looks like what they expect.
 
 If this is all known technology and everybody is already doing it, please
 tell me what everybody else has decided is the correct term for this, as
 I've got No Clue. :-)
 
 I'm also very very very open to other ideas how to achieve my goal:
 The user should see an image of what the link goes to, so they will notice
 if it's not the right URL, as they edit/review their link choices.
 
 This could be useful in sites that allow administrators maintain a Links
 Page semi-automatically.
 
 It could be particularly useful these days now that domain squatters and
 speculators are taking over every expired domain and throwing a bunch of
 advertisement/pay-per-click links on them.  Just checking that a link is
 valid is no longer Good Enough to know that you are linking to what you
 want to link to.  But that's only one portion of the problem I want to
 address, so keeping an eye on domain expiration records would solve this
 case, but not the more general issue.
 
 And, of course, if you somehow magically allowed another optional argument
 of which browser to use... Wow!  I could visually compare side-by-side the
 images of what my layout looks like on all the browsers?  Sign me up!
 Okay, so this is probably NOT do-able.  But the rest doesn't seem like it
 should be that tricky...
 
 Hm.  Does a frame allow a scaling factor?  Might actually make me
 want to use frames [shudder] if they do.
 
 PS  If somebody familiar with, say, Mozilla, were to create a PHP function
 such as I described above, you'd have instant fame and glory.  Hint, hint.
 
 --
 Like Music?
 http://l-i-e.com/artists.htm
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] page redirect question

2004-11-10 Thread M Saleh EG
The keyword you are looking for is ob_start()
Or Output Buffering ! Check that out.


On Wed, 10 Nov 2004 09:39:06 +0530, Zareef Ahmed [EMAIL PROTECTED] wrote:
 
 Hi,
 
   Alas there is no any other way to redirect the page without sending
 headers in PHP.
 You may use javascript for this purpose.
 
 Well it is matter of programming practice.
 We must do processing before presenting the content to users.
 It will be helpful in many situations.
 
 So instead of doing
 
 1.Draw header
 2. Draw middle bar upon user input and according to business logic.
 3. Draw footer
 
 We Must Use
 1. Make Business logic and process user input  and  do required task
 such as redirection
 2. Store result of step 1 in any entities like variables.
 3. Draw Header
 4. Make Middle bar using set entities.
 5. Draw footer.
 
 This is just a overview of approach. You may need to process more things
 along with middle bar, but it is good idea to do logical  processing
 before presentation.
 
 Zareef Ahmed
 
 -Original Message-
 From: Victor C. [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 09, 2004 9:37 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] page redirect question
 
 Hi,
 
 Is there anyway to redirect php page other than using
 HEADER(LOCATION:URL) ?
 Header can only be called if nothing is written to HTML... Is there
 anyway around it?
 
 Thanks,
 
 --
 
 
 --
 Zareef Ahmed :: A PHP develoepr in Delhi ( India )
 Homepage :: http://www.zasaifi.com
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Passing values from a new window

2004-11-06 Thread M Saleh EG
Javascript.
Simply just update ur fields at the parent window.

On onUnload even of the popup do this
self.opener.formName.fieldName.value=document.popupformName.popupfieldName.value;

Your keywords to check in Javascript papers are parent_window,
window_opener and Javascript DOM. If you're using Dreamweaver then ur
blessed by having a Javascript at the palm of ur hand.

HTH.


On Fri, 05 Nov 2004 13:03:31 -0800, Todd Cary [EMAIL PROTECTED] wrote:
 I have a button that creates a new window.  The surfer may enter data in
 the new window, and if he does, when the window is closed by the surfer,
 can the information update fields on the original page - the page/window
 from which the new window was created?
 
 I have seen instances where the surfer can open a new window to get
 email addresses and these addresses appear in the first window.
 
 Todd
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] GUI editor for php?

2004-11-02 Thread M Saleh EG
Well a gui editor? do u mean something like Visual Studio for windows
application design? or just an IDE. if it's the latter I'd
recommand u to check out Zend Studio or NuSphere.


On Mon, 1 Nov 2004 17:19:33 -0500, Andy B [EMAIL PROTECTED] wrote:
 Hi.
 
 Is there any GUI editors out there for php? if so does anybody know of a
 good one that doesnt cost a ton of money??
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] calling javascript

2004-11-01 Thread M Saleh EG
The idea is very simple. It just needs you to know the concepts.

On the form processing page whenever u find an error just print or echo this : 
script type=text/javascript
err_popup();
/script

e.g. ? if( empty($_POST['firstName']) )
   {
 echo script type=\text/javascript\;
 echo err_popup();;
 echo /script;
   }
   ?

Given that the definistion of the JS err_popup() function has been
done in the header part of the markup

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



Re: [PHP] Protecting Javascript via PHP

2004-10-28 Thread M Saleh EG
Even if u make ur JS files dynamicaly made on the fly, browsers cach
that dynamic JS.
To be specific you'd get a file like script.php?parameter=pValue as a
.php file that is cached after being rendered. So ur JS will be there
stored in the cached static .php file ( a file with PHP extension
including only ur rendered JS code in windows
internet_temporary_folder ) !

The best way to do make ur code hard to get is obfuscating ur JS code.
I think so !

Try one of these or google more than me :) keywords = obfuscating javascript 
-http://www.w3compiler.com/
-http://www.semdesigns.com/Products/Obfuscators/index.html?Home=SourceObfuscators




On Thu, 28 Oct 2004 19:01:55 +0200, Ryan A [EMAIL PROTECTED] wrote:
 Hey!
 Thanks dude, that DOES make it harder for ther person to get to your JS
 codeI have seen various solutions like this like code-secure from
 securecents.com (although I think the article you mentioned is better)
 
 I was thinking more of a php solution, passing some variables and looking at
 the calling scripts etcthis way the .js file does not even get cached in
 the visitors/users machine...
 Just playing around with ideas,...this list is full of _really_ intelligent
 people I was hopeing someone else can build on it and maybe pool some of
 their ideas in on top of mine...
 
 Thanks,
 Ryan
 
 
  http://scriptasylum.com/tutorials/encdec/encode-decode.html
  is a good article on wasy to achieve this
  On Thu, 28 Oct 2004 16:24:24 +0200, Ryan A [EMAIL PROTECTED] wrote:
 
   Hey,
 
   I have been searching around the web for a way to mangle my
  javascript
 
   code the way some people do it to HTML/PHP etc so its not so easy to
  read.
 
  
 
   There is no sure way to do it and if a person is REALLY determined to
  get
 
   to your code...he can, but I would like that person to go through some
  extra
 
   effort before he gets to it...
 
  
 
   the idea being to have a tag like this:
 
   script language = JavaScript 1.2
 
   src=javascript.php?some_parameter_here
 
  
 
   if the correct $some_parameter_here (or parameters) is passed then to
  output
 
   the codeif it can output the code only to another php script too it
 
   would be great...
 
  
 
   I have also been reading the doc at shiflett.org as the present question
  of
 
 --
 
 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-25 Thread M Saleh EG
Exactly Daniel ! I should've mentioned that too. Thanx for making it clear.


On Mon, 25 Oct 2004 15:45:36 +0200, Daniel Schierbeck [EMAIL PROTECTED] wrote:
 M Saleh Eg wrote:
  OR you could control ur method and have optional arguments in ur
  argument list and decide what to do according to that.
 
  e.g. public function _construct($param1=0, $param2=, $param3=null)
  {
 if($param1)
 
 
 if($param2)
 
 
 if($param3)
 
  }
 
  $obj=new className(1);
  //Or
  $obj=new className(1,hello);
  //Or
  $obj=new className(0,,some_value);
 
  Bottom Line:
  Optional arguments might be a workaround lack of polymorphism sometimes !
 
 
 Better use
 
if (isset($param1)) { ...
 
 then, otherwise values such as 0 will cause difficulties.
 
 --
 
 
 Daniel Schierbeck
 
 Help spread Firefox (www.getfirefox.com):
 http://www.spreadfirefox.com/?q=user/registerr=6584
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: overiding functions (constructors mostly)

2004-10-24 Thread M Saleh EG
OR you could control ur method and have optional arguments in ur
argument list and decide what to do according to that.

e.g. public function _construct($param1=0, $param2=, $param3=null)
{
   if($param1)
   

   if($param2)
   

   if($param3)
   
}

$obj=new className(1);
//Or
$obj=new className(1,hello);
//Or
$obj=new className(0,,some_value);

Bottom Line:
Optional arguments might be a workaround lack of polymorphism sometimes !


On Sun, 24 Oct 2004 22:59:25 +0200, Daniel Schierbeck [EMAIL PROTECTED] wrote:
 Walter Wojcik wrote:
 
 
  I want to override the constructor for a class i am writing but when i try it says 
  i cant redefine it.  Is the a whay to have two (or more) functions with the same 
  name that accept different agrumants and calls the right one based on the 
  arguments (it would have to be based on number of args because of the loose typing 
  of php.).
 
 
  Knowledge is power, Those who have it must share with those who don't

  -Walter Wojcik
 
 
 
 
  -
  Do you Yahoo!?
  vote.yahoo.com - Register online to vote today!
 No. But you can use func_num_args() to decide how many arguments the
 constructor (or any other function) was called with, and then make your
 decisions.
 
 class Foo
 {
public function __construct ()
{
if (func_num_args()  2) {
$this-one(func_get_args());
} else {
$this-two(func_get_args());
}
}
 
protected function one ($args)
{
// foo
}
 
protected function two ($args)
{
// bar
}
 }
 
 --
 Daniel Schierbeck
 
 Help spread Firefox (www.getfirefox.com):
 http://www.spreadfirefox.com/?q=user/registerr=6584
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Strange Array Error

2004-10-21 Thread M Saleh EG
On Thu, 21 Oct 2004 14:28:26 +0100, Shaun [EMAIL PROTECTED] wrote:
 Hi,
 
 I have been trying for the past two hours to understand why I get an error
 with the following code:
 
 ?php
 $test_array[] = array();
   //Change it to $test_array=array();  
   /*Your statement adds an array to the current+1 position of the
array since you've put the [] after the variable the PHP interpreter
initializes it as an array type of variable so it takes that action*/

 $i = 0;
 while($i  7){
  $test_array[$i] += $i;
  echo '$day_total[$i] = '.$day_total[$i].'br';
// Change the single quotes to double quotes
// i.e. echo {$day_total[$i]}={$day_total[$i]}br /; 
// Add ++$i; here
 }
 ?

Notes: -Always use double quotes if you want to concatanate vars with strings.  
  -Whe ur using arrays in ur strings that is to be
concatenated delimit the array by { and }.
  -Take a look at sprintf function to better format strings in
case ur familiar with C coding style.
  -Sometimes googling might not help nor PHP.net. So, the PHP
manual is ur friend. e.g you could go to Array section in PHP manual
and find out what's up :)

 
 Fatal error: Unsupported operand types in
 /usr/home/expensesystem/public_html/test.php on line 5
 
 I am trying to create a loop where $i is added to array element $i, and
 can't find any information relating to this on google or php.net...
 
 Thanks for your advice.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

Hope that helps.
-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Simple Time Question

2004-10-21 Thread M Saleh EG
You might want to look at this:
http://www.php.net/manual/en/function.date.php


On Thu, 21 Oct 2004 08:48:54 -0600, Ben Miller [EMAIL PROTECTED] wrote:
 Probably a stupid question, but hopefully has a simple answer.  Is there a
 way to get Grenwich Mean time?  time() and date() functions that I can see
 only seem to get date/time from the server, which knowing where that is,
 could easily figure out GM time, but would rather go the other way.
 
 Thanks.
 
 Ben
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Open or Save PHP page?

2004-10-18 Thread M Saleh EG
.php files are still not associated with PHP extension on Apache. That
means the php4apache.dll, or php4ts.dll is not associated in Apache to
deal with PHP files.

Check ur Apache conf files. Edit httpd.conf. On the module loading
section and adding module section.Check if the php4apache.dll or
php4ts.dll are loaded.

It's about types and handles as well. 

Your keywords are : AddType, AddModule, LoadModule, php4Apache, and
php4ts.dll. Dig into these!


On Mon, 18 Oct 2004 17:57:33 -0500, Chris [EMAIL PROTECTED] wrote:
 Win XP Pro
 Apache 1.3.31 - Win MSI
 PHP 4.3.8 - Win MSI
 
 Followed directions in PHP install.txt to install PHP as a module for
 Apache.
 Server runs and servers HTML pages fine.
 PHP.INI copied to Apache installation folder.
 When selecting link to load a PHP file, system asks to open or save the PHP
 file with Dreamweaver - associated with PHP.  Server's not interpreting the
 script.
 
 ideas?
 
 -Chris
 
 


-- 
M.Saleh.E.G
97150-4779817

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



[PHP] PHP5 and Multi Inheritance?

2004-10-17 Thread M Saleh EG
Is direct multi inhertance supported in PHP5? 

I'm on PHP4, didnt find this on the docs nor at zend's. It might be
the reason of migrating to PHP5 for me. Any Idea? anyone who tested
it? by this I dont mean the chaining method of inheriting. I mean
direct multi inheritance!

Thanx in advance.

-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Is there a way to...

2004-10-17 Thread M Saleh EG
secure it with apache .ht* files for directory and file settings or
the main config file.


On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake
[EMAIL PROTECTED] wrote:
 GH wrote:
 
 Is there a way to make sure that a page is only loaded via a
 
 require or include statement? or other type of SSI?
 
 I would like to make sure that a 'parent document'  (namely
 admin_template.php) only calls the php file?
 
 Thanks
 
 
 
 leave if outside htdocs
 
 --
 Raditha Dissanayake.
 
 http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
 Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
 Graphical User Inteface. Just 128 KB | with progress bar.
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread M Saleh EG
Thanx Mathew
I guess I found it, it's disapointing though.

Here was the answer: http://www.zend.com/php5/andi-book-excerpt.php#Heading3

Copied from the link above
4. Interfaces
Gives the ability for a class to fulfill more than one is-a
relationships. A class can inherit from one class only but may
implement as many interfaces as it wants.
Copied from the link above


On 17 Oct 2004 13:30:36 -, Matthew Weier O'Phinney
[EMAIL PROTECTED] wrote:
 * M Saleh Eg [EMAIL PROTECTED]:
  Is direct multi inhertance supported in PHP5?
 
 I believe so -- this was one of the new features of the object model
 introduced in PHP5. My understanding is that you have to create
 interface classes that a class can then implement. Unfortunately,
 interface classes are abstract -- no code allowed other than
 declarations.
 
  I'm on PHP4, didnt find this on the docs nor at zend's. It might be
  the reason of migrating to PHP5 for me. Any Idea? anyone who tested
  it? by this I dont mean the chaining method of inheriting. I mean
  direct multi inheritance!
 
 I saw a number of mentions of it when PHP5 was first released, but the
 only reference I can dig up now is at:
 
http://www.zend.com/php5/andi-book-excerpt.php#Heading3
 
 and, unfortunately, when it talks about interfaces being how multiple
 inheritance is achieved, fails to give an example.
 
 Surely somebody has a more definitive answer, but I thought I'd give it
 a shot.
 
 --
 Matthew Weier O'Phinney   | mailto:[EMAIL PROTECTED]
 Webmaster and IT Specialist   | http://www.garden.org
 National Gardening Association| http://www.kidsgardening.com
 802-863-5251 x156 | http://nationalgardenmonth.org
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] mod-rewrite

2004-10-17 Thread M Saleh EG
Yes it does! It aint off topic. 
Pate is trying to figure out how to integrate mod_rewrite
functionality with his PHP scripts.

If you're new to mod_rewrite then you can use this alternative PHP
script that does the work for u.  Here you go:
http://www.zend.com/codex.php?id=674single=1



On Sun, 17 Oct 2004 09:16:37 -0400, John Nichel [EMAIL PROTECTED] wrote:
 Pete wrote:
  I have just started using mod-rewrite, and have two questions...
 snip
 
 And neither one of them have anything to do with PHP.
 
 --
 By-Tor.com
 It's all about the Rush
 http://www.by-tor.com
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



[PHP] Subdomains pointing to index.php?Page=Contacts

2004-10-12 Thread M Saleh EG
How a subdomain is pointed to a dynamic page section?

If a dynamic url with querystrings gets rewritten somehow to look like
directory based url... then how would I point a subdomain to it?

-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Help with Array Sorting Please

2004-10-08 Thread M Saleh EG
i'd recommand u to use trees if u got complicated data arrays.

use tree datascturcutres... u could sort n do watever then
or jus queues or stacks depending on what u wanna do

Try PEAR Tree class it might help

Hope that was usefull.


On Fri, 8 Oct 2004 20:13:10 +0200, Nick Wilson [EMAIL PROTECTED] wrote:
 
 * and then Nick Wilson declared
 
  * and then Ford, Mike declared
  php
 
 sorry about the dupes everyone, i changed router today and resent a
 whole bunch of stuff b4 i realized it wasnt goint out...
 
 
 --
 Nick W
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] read aspx files

2004-10-08 Thread M Saleh EG
Do u mean using .aspx as ur file extensions? and then setup Apache to
read them as php file?

If that's the case then ur talking about types and extension handlers.

Try or research about:
Add Type in apache docs.
and handlers.


On Fri, 08 Oct 2004 11:23:02 -0700, Robby Russell [EMAIL PROTECTED] wrote:
 On Fri, 2004-10-08 at 15:00 -0300, celso andrade wrote:
  hi all,
 
  how do i setup a apache+php server to read aspx files
  as php files?
 
  i need it to parse aspx files.
 
  thank you
 
 Do you mean run aspx files?
 Or just read them? If so, you should just be able to read the contents
 of yourfile.aspx on the local disk.
 
 PHP doesn't run aspx files..
 
 -Robby
 
 --
 /***
 * Robby Russell | Owner.Developer.Geek
 * PLANET ARGON  | www.planetargon.com
 * Portland, OR  | [EMAIL PROTECTED]
 * 503.351.4730  | blog.planetargon.com
 * PHP/PostgreSQL Hosting  Development
 /
 
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] Securing Servers

2004-10-08 Thread M Saleh EG
Hi there,

I'd agree with Radhita saying how about getting a low cost shared
hosting solution instead?

but plz Radhita, don't bring your biased opinions about MS vs
Opensource or Linux vs Windows over here. It's so subjective and plus
gets an off-topic topic more off !

We all benefit from this valuable list so plz dont make your posts a flood!


On Sat, 09 Oct 2004 07:29:11 +0600, raditha dissanayake
[EMAIL PROTECTED] wrote:
 Hi,
 This is some what off topic.
 
 Stephen Craton wrote:
 
 Hello,
 
 I'm in the process of hooking up my own personal web server for use by
 certain clients to view the progress on work I'm doing for them. However,
 I'm on a shared network that is behind a firewall and some computers on the
 network need to stay secure as possible. I've heard that if you gain access
 to one computer, the whole thing is vulnerable.
 
 
 It depends on the configuration of your other machines.
 
 I've going to be running Apache with PHP on my Windows box that has
 
 
 if you are concerned about security windows is out.
 
 antivirus all set up and whatnot. My question comes in terms of port
 security. Since I'll be having the port open for Apache, I want to make sure
 nothing naughty gets through the port.
 
 This is pretty hard to do. Once you open the port you allow virtually
 anything through but on linux iptables can do some basic checks against
 malformed packets etc.
 
  What should I do to secure it to the
 best ability? Is there any special firewall I can use or any special tricks
 I should do? How should I configure Apache and PHP in order to keep it as
 secure as possible but still functional?
 
 I have considered using Linux, but until I can get myself a separate
 computer box to dedicate to the server, I'm stuck with using my personal
 computer as the server as well and all my programs/games need Windows.
 
 
 how about getting a low cost shared hosting solution instead?
 
 Any help here would be greatly appreciated.
 
 Thanks,
 Stephen Craton
 
 
 
 
 -- 
 Raditha Dissanayake.
 
 http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
 Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
 Graphical User Inteface. Just 128 KB | with progress bar.
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
M.Saleh.E.G
97150-4779817

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



Re: [PHP] refresh page automaticly on PHP

2004-09-30 Thread M Saleh EG
or u can use this method from JS
You could refresh the page in various ways

1- make a rerequest to the server to give u the same page again: using
the PHP Header function.

2-using the html Header refresh tag

3-Java Script to reload the document

Since the 1st and 2nd methods are discussed in the earlier posts I'll
show another way of doing it by Javascript.

This is useful if you're using a templated based markup rendering to
replace ur Head JS tags or Body JS tags.

Javascript redirection and reloading is done as the following:

-if u want to reload the page after showing the page write this in body tag
CODE
echo script type=\text/javascript\ location.reload();/script;
/CODE

-if u want to reload the page the moment the page is requested then do
this in the head tag
CODE
echo script type=\text/javascript\
 window.onload = location.reload();
 /script;
/CODE

Hope this is usefull.

On Thu, 30 Sep 2004 09:32:50 -0700 (PDT), Chris Shiflett
[EMAIL PROTECTED] wrote:
 --- welly limston [EMAIL PROTECTED] wrote:
  how to make my page refresh automaticly?
 
 You can use a Refresh header:
 
 Refresh: 3; url=http://example.org/
 
  Can i use PHP function?
 
 http://www.php.net/header
 
 Hope that helps.
 
 Chris
 
 =
 Chris Shiflett - http://shiflett.org/
 
 PHP Security - O'Reilly HTTP Developer's Handbook - Sams
 Coming December 2004http://httphandbook.org/
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



-- 
M.Saleh.E.G
Web Developer 
www.buzinessware.com 
97150-4779817

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



[PHP] PHP Web-App Frameworks?

2004-09-28 Thread M Saleh EG
Anyone with hands on PHP frameworks?

I tried Mojavi, BlueShoes, GPF, PHP-MVC, and alot of more ( alot of
them are available)

I need the answer from an experienced programmer( not a php newbie )
rather an application designer or a windows-dna programmer who is into
php.

I have some sort of understanding and facts after using these frameworks.
But I need some feedback from people who used it more than months 
experimented it in web-application design.

Any sugestions?  Any Comments?

-- 
M.Saleh.E.G
97150-4779817

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



[PHP] Re: PHP Web-App Frameworks?

2004-09-28 Thread M Saleh EG
On Tue, 28 Sep 2004 18:09:48 +0400, M Saleh EG [EMAIL PROTECTED] wrote:
 Anyone with hands on PHP frameworks?
 
 I tried Mojavi, BlueShoes, GPF, PHP-MVC, and alot of more ( alot of
 them are available)
 
 I need the answer from an experienced programmer( not a php newbie )
 rather an application designer or a windows-dna programmer who is into
 php.
 
 I have some sort of understanding and facts after using these frameworks.
 But I need some feedback from people who used it more than months 
 experimented it in web-application design.
 
 Any sugestions?  Any Comments?
 
 --
 M.Saleh.E.G
 97150-4779817
 



-- 
M.Saleh.E.G
97150-4779817

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