[PHP] Re: PHP Security

2005-08-26 Thread mikespook
http://phpsec.org/
PHP Security Consortium

this is what you want.hehe~it`s helpful

Ian C . McGarvey [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
I have been studying PHP all summer because I wanted to put some PHP code 
on my schools web site. I got to school and went to the web design teacher. 
I asked him if they had installed PHP on their server. He said that the 
district thinks that it would be a HUGE security risk and that people at my 
school would try to hack into the server (what bull). Anyway, can you give 
me some tips to make the server secure? Any help would be appreciated! 

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



[PHP] Re: error while running com

2005-08-22 Thread mikespook
Could u show me ur source code?

sangram [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
 Hi,
 i had uploaded the com application on win2003 server with word 2003
 installed.It runs perfect The traffic of word files increases or other
 reasons the following message starts displaying.

 Warning: (null)(): Unable to obtain IDispatch interface for CLSID
 {000209FF---C000-0046}: Server execution failed in
 c:\inetpub\wwwroot\localuser\sound1007\www\com.php on line 15
 Unable to instanciate Word


 If the server is rebooted again the application starts without errors.
 Pls help me what will be the problem.
 Sangram. 

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



[PHP] Re: exec ping

2005-08-21 Thread mikespook
The PEAR package Net_Monitor and Net_Ping is useful for you. It`s esay way 
to detact the host~~

^_^

Juan Pablo Herrera [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
Hi all!
I have following script:
$comando = system('ping 168.192.0.1', $nn);
echo $nn;
Well, i need that only show the first ten lines of the ping and kill
the process.
How can i make it?

Regards,
JP 

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



[PHP] Re: which operating system?

2005-08-15 Thread mikespook
debian is my choice~
but usually, we use freebsd in our corp.

high traffic I think distribution system is best way~
only php not enough~

Sebastian [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
I will be building a new server and wondering what would be a good choice 
for php/mysql/apache other than redhat.

 I was thinking either Debian or CentOS. can anyone share their thoughts on 
 them for php environment?

 does anyone use them on high traffic php sites? or is there not a 
 difference in what distro you run php on?

 sorry these may sound like stupid questions but i mostly used redhat since 
 i started using php and thought i'd try something different.

 thanks.



 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.338 / Virus Database: 267.10.8/71 - Release Date: 8/12/2005 

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



[PHP] Re: Large forms to Mysql table...

2005-08-14 Thread mikespook
Like this: $str = print_r($_POST, true);

then insert $str into db.

It`s easy way~~right?

Andras Kende [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
Hello,



I have a html page with 70+ form fields some like 40 fields are only used
for entering quantity numbers…



Is it a good idea to put this 50 fields of the form fields into a single
text mysql field?



Somehow process it with php before, put inside of some kind of xml
structure?



Just don’t want to do Mysql table with 70 fields…







Thanks,





Andras Kende

http://www.kende.com




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 0.0.338 / Virus Database: 267.10.8/71 - Release Date: 8/12/2005



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



[PHP] Re: PHP smarty - nested queries and arrays

2005-08-11 Thread mikespook
Warning: Smarty error: unable to read resource: welcome/Object.tpl in
/usr/local/lib/php/Smarty/Smarty.class.php on line 1088

You should check your Smarty`s template_dir. Put the templates into the 
template_dir, then the Smarty will find them.

Like this:

$smarty = new Smarty();
$smarty-template_dir = '/home/mike/tpl/';
$smarty-display('test.tpl');

You should put the file 'test.tpl' into dir '/home/mike/tpl'.

Amanda Hemmerich [EMAIL PROTECTED] 
??:[EMAIL PROTECTED]
 Hello!

 I'm using PHP and Smarty to try to build an array of arrays using the 
 results from nested queries.  I am just learning about nested arrays, and 
 I'm not sure what I'm doing wrong.

 I am hoping someone can give me a hint as to what I am doing wrong.  I 
 looked on php.net, but still couldn't figure it out.

 If I remove the PHP foreach loop, it works fine, except, of course, no sub 
 projects show up.   The error must be in there, but I'm just not seeing 
 it.

 I get the following error with the code below:
 Warning: Smarty error: unable to read resource: welcome/Object.tpl 
 in /usr/local/lib/php/Smarty/Smarty.class.php on line 1088
   PHP STUFF
 $query =SELECT * FROM projects WHERE parent_project_id is NULL OR 
 parent_project_id = '';

 $projects = $db-getAssoc($query, DB_FETCHMODE_ASSOC);

 foreach ($projects as $key = $project) {
  $query =SELECT * FROM projects WHERE parent_project_id = 
 $projects[$key]['project_id'];
  $sub = $db-getAssoc($query, DB_FETCHMODE_ASSOC);
  $projects[$key]['subs'] = $sub;
 }
 $tpl-assign('projects', $projects);
   SMARTY STUFF
 {foreach from=$projects item='entry'}
b{$entry.short_name}/bbr /
ul
{foreach from=$entry.subs item='sub'}
li{$sub.short_name}/li
{foreachelse}
liNo subs for this project/li
{/foreach}
/ul
 {foreachelse}
bNo projects found/b
 {/foreach}

 Can anyone point me in the right direction?

 Thanks,
 Amanda 

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