Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
well,sorry change it to password=$pass (better) also check your errors by php yourpage.php it is more better to not stock in errors like this one

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
or if you want to do this risky and none secure thing try this: $query="select * from members where user='".$_POST['user']."'and pass=password('$pas')"; well first you must check errors in mysql then storing in session also it is better to use: $user=mysql_real_escape_string($_POST['user']); th

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
well I wonder! with error syntaxes now it is working? or without them?

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
it is better to use this one: http://www.php.net/mysql_real_escape_string if you don't use this by inputting just a qoute or this input '--' a hacker can easily hack your syntax in another steps your site will send a message like: error in mysql on this line lob lob .. in this part he will fin

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
well,what is the problem with these manuals :) ? google these ones: security exploits that are SQL injection, Cross Site Scripting(xss) and Cross Site Request Forgery many security issues you can find also for your code problems try this site: stackoverflow.com previous times when I had thes

[PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Hello List I want to use Cake PHP ,I have downloaded it from it's site,rename the folder to first_app and copied it to /srv/www/htdocs my root is here: /srv/www/htdocs by entering http://localhost/first_app/ it has some errors like these outputs: Warning: _cake_core_ cache was unable to write

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Thank you, I found that only the tmp directory must be writable then I used this one: also by right clicking and using wwwrun for user I tried to set them as you told chmod -R 0777 /srv/www/htdocs/first_app/app/tmp/ and the I get fatal Error: Fatal error

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
I have debugger.php in cake/libs I don't know why it doesn't access to this file and tell me can't find the class

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
cool I found this hidden file .htaccess: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] well I don't know that this apache module is enabled or not I changed the apache2 in /etc/sysconfig and add the rewrite in modules right here: APACHE_

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Finally I solved my problem! I have downloaded another version of cake that is less than 2 now it works like a charm:)

Re: [PHP] concatenating

2011-08-10 Thread Negin Nickparsa
read the manual http://www.php.net/manual/en/ref.strings.php A comprehensive concatenation function, that works with array and strings $arg) { if(is_array($arg)) { if(!isset($dim)) $dim = count($arg) ; elseif($dim != count($arg)) return FALSE ; $args[$key] =

Re: [PHP] PHP FPM and OCI crashes

2011-09-13 Thread Negin Nickparsa
is your oci module enabled in php.ini? I mean something like this? extension=oci8.so

Re: [PHP] PHP FPM and OCI crashes

2011-09-13 Thread Negin Nickparsa
use gdb

Re: [PHP] OpenId Provider

2011-10-27 Thread Negin Nickparsa
I don't know about LDAP but Zend openID provider can be a good choice http://framework.zend.com/manual/en/zend.openid.html On 10/28/11, Roy Kaldung wrote: > Hi, > > Can anybody recommend a good OpenId Provider? > I need one with LDAP integration if available. > > tia, > Roy > > -- > Roy Kaldung >

Re: [PHP] want to get Regular Expressions

2011-10-28 Thread Negin Nickparsa
you want to get which part of the url? On 10/28/11, Ashley Sheridan wrote: > > > yuxiangye wrote: > >>get the url form the source of >> >>http://jingji.cntv.cn/yaowen/20111027.shtml withRegular Expressions. I >>want to get the Regular Expressions >> >>-- >>PHP General Mailing List (http://www.ph

Re: [PHP] Novice question

2011-10-30 Thread Negin Nickparsa
Your question is NOT Novice and I really want to know the answer like you. On 10/30/11, John Allsopp wrote: > Hi > > I'm afraid I've fallen a little out of touch with PHP dev, so a stupid > question for you. > > I want to write a script that requests a URL and then reads that website > .. I'm int

Re: [PHP] Regular Expression

2011-11-04 Thread Negin Nickparsa
http://weblogtoolscollection.com/regex/regex.php On 11/4/11, drive view wrote: > Hi > > I'm new to PHP. I'm currently trying understand how to apply the patterns > for the preg* commands and I am having difficulty finding a good source > explaining in detail how to build a filter. I would appre

Re: [PHP] Regular Expression

2011-11-04 Thread Negin Nickparsa
your welcome my Friend,I used it myself. On 11/4/11, drive view wrote: > Thanks alot Negin for the prompt reply. This is most useful. > > Regards > > Best Toni > > On Sat, Nov 5, 2011 at 6:30 AM, Negin Nickparsa wrote: > >> http://weblogtoolscollection.com/re

Re: [PHP] Google Search Appliance and PHP

2011-11-05 Thread Negin Nickparsa
step 2:http://php.net/manual/en/book.xml.php try to know about Xml parser On 11/3/11, Gates, Jeff wrote: > I am a newbie in PHP. > > I need to create a search using Google's Search Appliance for a site I'm > designing but don't have the slightest idea on how to do it. Because I want > to incorp

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread Negin Nickparsa
are you sure about ATD03518726535\n? can you try if ( dio_write($handle, 'AT') )?

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

2012-02-17 Thread Negin Nickparsa
I am in windows yeah I tried this one if(shell_exec('C:\Program Files\GAMS23.7\gams.exe trnsport_php.gms')) echo 'yes' ; else echo 'no'; it wil show me no my another try: if(shell_exec('cd C:\Program Files\GAMS23.7') ) echo 'yes'; else echo 'no'; it will show me No aga

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

2012-02-17 Thread Negin Nickparsa
yes it prints nothing by this code if (($out = system('C:\Program Files\GAMS23.7\gams.exe trnsport_php.gms')) !== FALSE) { print('Not error'); printf('Output is "%s"', $out); } else { print('Error'); }

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

2012-02-17 Thread Negin Nickparsa
I don't know what is going here!? well it shows no error but the out put is nothing and my gams when running should make a text file but by running,it doesn't happen so It has problem

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

2012-02-17 Thread Negin Nickparsa
if (($out = system(' "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_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 path I d

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

2012-02-17 Thread Negin Nickparsa
It generates NULL

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

2012-02-17 Thread Negin Nickparsa
I changed it to this one: $out = $cmd; now it shows string(85) "C:/Program Files/GAMS23.7/gams.exe "C:/Program Files/GAMS23.7/trnsport_php.gms" 2>&1"

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

2012-02-17 Thread Negin Nickparsa
Apache

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

2012-02-17 Thread Negin Nickparsa
Duken how you use " and again another " without a dot? I tried yours it says: *Warning*: system() [function.system ]: Cannot execute a blank command in *C:\Program Files\GAMS23.7\calling_gams.php* on line *23* Error

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

2012-02-17 Thread Negin Nickparsa
stuart $out = `$cmd`; what it will do? what is `? I didn't ever seen it

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

2012-02-17 Thread Negin Nickparsa
Fatih it shows this: ERRORNULL maybe program Files which has space should have something like \ which I don't know ha? or because of Null It is correct?

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

2012-02-17 Thread Negin Nickparsa
ow! Thanks I got Stuart meaning Now

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

2012-02-17 Thread Negin Nickparsa
ok sorry,I tried yours It generates Null. On Fri, Feb 17, 2012 at 4:06 PM, Stuart Dallas wrote: > Please quote the relevant parts of the email you're replying to - your > emails have massively diminished usefulness to the archives. > > On 17 Feb 2012, at 12:21, Negin Nickpa

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

2012-02-17 Thread Negin Nickparsa
Oops no! it shows this one: string(100) "'C:/Program\' is not recognized as an internal or external command, operable program or batch file. " On Fri, Feb 17, 2012 at 4:10 PM, Negin Nickparsa wrote: > ok sorry,I tried yours It generates Null. > > > On Fri, Feb 17

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

2012-02-17 Thread Negin Nickparsa
Stuart I changed it to this one:$cmd = 'C:/Program\\Files/ Now it tells: string(43) "The system cannot find the path specified. " On Fri, Feb 17, 2012 at 4:12 PM, Negin Nickparsa wrote: > Oops no! it shows this one: > string(100) "'C:/Program\' is not r

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

2012-02-17 Thread Negin Nickparsa
gram or batch file. " Change the \\ in the commands to just a single \ but leave the space after > it. > > On Fri, Feb 17, 2012 at 4:10 PM, Negin Nickparsa wrote: > >> ok sorry,I tried yours It generates Null. >> >> >> On Fri, Feb 17, 2012 at 4:06 PM, Stuart

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

2012-02-17 Thread Negin Nickparsa
le. I tried \\\ string(101) "'C:/Program\\' is not recognized as an internal or external command, operable program or batch file. " On Fri, Feb 17, 2012 at 4:25 PM, Stuart Dallas wrote: > On 17 Feb 2012, at 12:53, Negin Nickparsa wrote: > > this one: > $cmd =

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

2012-02-17 Thread Negin Nickparsa
2"'); in php manual But I didn't know how to work with it It doesn't use any back slashes On Fri, Feb 17, 2012 at 4:29 PM, Negin Nickparsa wrote: > I can't move Gams because it has many dll files which should be in there. > gams.exe should be execute in that path

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

2012-02-17 Thread Negin Nickparsa
and this One system ("\"c:\\program files\\myapp\\myapp.exe\" params_for_myapp"); On Fri, Feb 17, 2012 at 4:36 PM, Negin Nickparsa wrote: > I read about > > The useless command may be like "c:" or "cd". > > Example: > > system('c

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

2012-02-17 Thread Negin Nickparsa
$cmd = system ("\"C:\\Program Files\\GAMS23.7\\gams.exe\" trnsport_php.gms"); $out = `$cmd`; var_dump($out); It shows NULL On Fri, Feb 17, 2012 at 4:38 PM, Negin Nickparsa wrote: > and this One > system ("\"c:\\program files\\myapp\\myapp.exe\" params_f

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

2012-02-17 Thread Negin Nickparsa
curtis what do you mean --c? On Fri, Feb 17, 2012 at 4:54 PM, Curtis Maurand wrote: > > "C:\/Program\ Files\\..." > > --C > > > Negin Nickparsa wrote: > > I can't move Gams because it has many dll files which should be in there. > > gams.exe shou

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

2012-02-17 Thread Negin Nickparsa
owing me how to write path files in php from windows Xp running Apache server? On Fri, Feb 17, 2012 at 5:02 PM, Negin Nickparsa wrote: > curtis what do you mean --c? > > > On Fri, Feb 17, 2012 at 4:54 PM, Curtis Maurand wrote: > >> >> "C:\/Program\ Files\\..." >

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

2012-02-17 Thread Negin Nickparsa
Fatih C:\Program Files\GAMS23.7 this is where my Gams is. maybe the problem is with permissions what should I do for permissions? what shoud I do to write this path file:'( I need it! when echo system('dir') shows me files of C:\Program Files\GAMS23.7 then it shoud run the command gams.exe transpor

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

2012-02-17 Thread Negin Nickparsa
Fatih what is about another parts?

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

2012-02-17 Thread Negin Nickparsa
it's wrong Fatih because it shows me another color in editor On Fri, Feb 17, 2012 at 5:24 PM, Negin Nickparsa wrote: > Fatih what is about another parts? >

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

2012-02-17 Thread Negin Nickparsa
:) On Fri, Feb 17, 2012 at 5:27 PM, Fatih P. wrote: > well then fix it. i m not using editor. >

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

2012-02-17 Thread Negin Nickparsa
exe to egams.exe it recognizes but It can't run through system so my problem in path file has solved here Thanks to All of you. now I should find some solutions for permissions It doesn't relate to address file if I'm correct On Fri, Feb 17, 2012 at 5:27 PM, Negin Nickparsa wrot

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

2012-02-17 Thread Negin Nickparsa
I <3 myself sooo Much :) It works now like a charm I am successfully finished:D this is my SIMPLE solution no need to set path files! :D echo exec('C:\WINDOWS\system32\cmd.exe'); echo exec('gams.exe trnsport_php.gms'); It works like a charm:) On Fri, Feb 17, 2012 at 6

<    1   2