Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
structure and then you can use disposition string, find the "attachment" and then return the array. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 3:27 PM, Domain nikha.org wrote: > Hello all, > > im posting this here, because the bug report system of "php.net"

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
structure and then you can use disposition string, find the "attachment" and then return the array. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 3:27 PM, Domain nikha.org wrote: > Hello all, > > im posting this here, because the bug report system of "php.net"

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Negin Nickparsa
your problem is from the permissions. Sincerely Negin Nickparsa On Tue, Aug 13, 2013 at 11:30 AM, MichaƂ Kochanowicz wrote: > Hello > > I've got a file, which can't be checked with filesize(). I copy it (with > permissions) and then I can filesize() the copy. This is same di

Re: [PHP] high traffic websites

2013-09-19 Thread Negin Nickparsa
it may be helpful for someone. I liked GTmetrix kinda helpful and magic. <http://gtmetrix.com/#!> Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 4:42 PM, Sebastian Krebs wrote: > 2013/9/18 Camilo Sperberg > > > > > On Sep 18, 2013, at 14:26, Haluk Karamete > wr

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
country is 9 Am in other country, 3 PM in other country . By the way Thank you so much guys, I wanted tidbits and you gave me more. Stuart, I recall your replies in other situations and always you helped me to improve.list is happy to have you. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
simultaneously and the videos are in the website not on another server like YouTube and so streams are really consuming the bandwidth. Also,It is troublesome to get backups,when getting backups you have problem of lock backing up with bulk of data. Sincerely Negin Nickparsa On Wed, Sep 18

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
sking this question. it is kind of beneficial for all people and not has been asked directly. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 10:45 AM, Sebastian Krebs wrote: > > > > 2013/9/18 Negin Nickparsa > >> In general, what are the best ways to handle high traffic

[PHP] high traffic websites

2013-09-17 Thread Negin Nickparsa
In general, what are the best ways to handle high traffic websites? VPS(clouds)? web analyzers? dedicated servers? distributed memory cache? Sincerely Negin Nickparsa

[PHP] totally a newbie in sending phone number to a webserver

2013-05-21 Thread Negin Nickparsa
I registered a SMS web service and I have username and password and there are methods as follow which I can use: balance receive send send to all send advanced status status advanced suppose I have a form and I will get the phone number from user also I have user name,pass and url of the web serv

Re: [PHP] ODBC

2013-05-18 Thread Negin Nickparsa
do you have the driver in linux? https://www.microsoft.com/en-us/download/details.aspx?id=28160 On Tue, May 7, 2013 at 11:46 AM, georg wrote: > but isnt there some yum command that will fix things for me (download if > necessary, but I actually think > the ODBC would be in the distribution of

Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-15 Thread Negin Nickparsa
7;id='+ id ; $.ajax({ type: "POST", url: "download_number.php", data: dataString, cache: false, success: function(html) { $("#div_"+id).html(html); } }); window.open('download.php', '_blank' ); }); so cool!!:) On Mon, Oct 15, 2012 a

Re: [PHP] Is it possible to click download button,and run 2 tasks downloading a file and show number of downloads(ajax)simultaneously?

2012-10-15 Thread Negin Nickparsa
Thanks Tedd, ajax works fine now,when submiting a button it will show the number and it doesn't have any problem $(function() { $(".button").click(function(){ var id=$(this).attr('id'); var dataString = 'id='+ id ; $.ajax({ type: "POST", url: "download_number.php", data: dataString,

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

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
:) 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
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
Fatih what is about another parts?

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
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
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
$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
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
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
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
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
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
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
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
ow! Thanks I got Stuart meaning Now

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
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
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
Apache

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
It generates NULL

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
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
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 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] 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] 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] 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] 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] 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] 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] 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] PHP FPM and OCI crashes

2011-09-13 Thread Negin Nickparsa
use gdb

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] 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] 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] 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
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
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

[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] 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

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 I wonder! with error syntaxes now it is working? or without them?

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,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
in this line password='$_POST[pass]'"; you have error change it to password='$_POST['pass']'";

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
did you set the ?

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
you must check setting your session with this one: if(isset($_SESSION['user'])) { // Identifying the user $user = $_SESSION['user']; // Information for the user. } tell me what you have done in login page?

Re: [PHP] Sending a message

2011-08-04 Thread Negin Nickparsa
in previous pages you must have a login page and in login page you must store the username and then in next steps you have username in $_SESSION['user'] now if it is not your problem then what is the problem?

Re: [PHP] PHP runs but apache says its a faulting module every so often

2011-07-31 Thread Negin Nickparsa
did you run phpinfo()?

Re: [PHP] I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
another point: I think you tried it in shell as a root but in browser it can't execute it as a root again I agree with Shawn it is from permission try the command that I told you I mean edit the command and then run it in browser

Re: [PHP] I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
Bulint clear private data or cookies maybe your browser stores something and can't act for this clear them and then try and tell us the result 2011/7/28 Bulent Malik > ** > > > > >> did you try it in shell? or just You tried it in PHP? > > Yeah, I tried it on shell and it works on it. Also if

Re: [PHP] I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
Arthur would you please explain it in more details?

Re: [PHP] Re: I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
also by gcc you can use code it and run the gcc in shell I like this one: setfacl -m u:wwwrun:rw the path that you would like for permissions you can set it for the folders you have then run this compiler it will make an executable file you can give a name to them by -o 'r' and 'w' are for read

Re: [PHP] Re: I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
If you want to execute shell commands as root theres another solution too try this: shell_exec('sudo -u root ls -l /var/tmp') but the solution Of shawn is better then it will not needed to set it again in another commands

Re: [PHP] I can't execute pf commands

2011-07-28 Thread Negin Nickparsa
did you try it in shell? or just You tried it in PHP?

Re: [PHP] Membership site

2011-07-28 Thread Negin Nickparsa
http://www.php.net/manual/en/security.database.sql-injection.php http://www.php.net/manual/en/security.database.storage.php

Re: [PHP] Members area Login with permissions!

2011-07-24 Thread Negin Nickparsa
you didn't set the $message for example here that you mentioned: You have successfuly been logged in. You can now access the advanced area. change it to $message="You have successfuly been logged in. You can now access the advanced area"; hope it will help.

Re: [PHP] PHP control structure

2011-07-13 Thread Negin Nickparsa
if the problem is only the assigning it's an example: in mysql you can have this one: create table store_list(id_markets int auto_increment,store_type int,primary key(id_markets)); and for page this one: Store store type corporate standard ID: also I didn't understand your code that y

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I appreciate your attention,thank you very much I have some problems like interdict in my country access that I can't access the whole sites like this one I have VPN that I use in my home but not in another locations like here. I'll try it in another situation BTW thank you very much Stuart

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I mean it was my own oinkcode I was a registered user

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I logined in there and I used my oinkcode I tried to download just one rule I mean *.rules It worked I can download one by one but not the group of them maybe their files are corrupted see here that I downloaded: wget http://cvs.snort.org/viewcvs.cgi/snort/rules/dos.rules --12:09:32-- http://c

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
Sorry that I disssturbed you I appologize you,ok I will solve my problem in another mailing list my application is in php I simplified using snort by writing an application but in the updating part of files I wanted to automatically download the files which user will have nothing to do in shell j

Re: [PHP] using wget in shell for download(snort)

2011-07-11 Thread Negin Nickparsa
I'm in opensuse I tried wget url for another site it is working there(without -O) for example I can have this: wget http://library.linode.com/assets/695-wget-example.txt and it is working it will be downloaded on /root but I'm so confused about snort rules that why I can't download them I also

Re: [PHP] Re: using wget in shell for download(snort)

2011-07-10 Thread Negin Nickparsa
I also tried Goeff's suggest: wget http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5-Osnortrules-snapshot-2900.tar.gz here is the output: Resolving www.snort.org... 68.177.102.20 Connecting to www.snort.org|68.177.102.20|:80... connected. HTTP

Re: [PHP] Re: using wget in shell for download(snort)

2011-07-10 Thread Negin Nickparsa
I tried with single quotes,no need to qoutes cause when I enter it with quotes it tells me: command not found BUT when I enter this one: wget http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5\-O snortrules-snapshot-2900.tar.gz it tells me:

[PHP] using wget in shell for download(snort)

2011-07-10 Thread Negin Nickparsa
I want to make a batch file and then exec it in php I have a problem in batch file wget have been installed in Yast I want to download a RuleFile from snort.org I used this on shell: $ wget http://www.snort.org/reg-rules/snortrules-snapshot-2900.tar.gz/c0e9480af637e53c7aae823a40a131edc1343db5\-O

Re: [PHP] https help

2011-05-31 Thread Negin Nickparsa
Thank you

Re: [PHP] https help

2011-05-30 Thread Negin Nickparsa
it is the output: http://www.yahoo.com/?s=https can i force it to show me https://www.yahoo.com ?

Re: [PHP] https help

2011-05-30 Thread Negin Nickparsa
I need to create a login page with HTTPS to yahoo Do I have to have a valid certificate? I have not trust certification centre, so before anything under HTTPS will be shown up, the window will come with information: valid certificate: yes, valid domain: yes, valid authority for SSL key: no. am I

[PHP] https help

2011-05-30 Thread Negin Nickparsa
hi all, I want to write an application that can be logged to yahoo.com using https protocol Would you please put me some suggestions and advices? if ($_SERVER['SERVER_PORT'] != 443) { header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); }

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Thanks Viraj,I'll read it.

Re: Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
Yes,you are right I visited the http://stackoverflow.com/users/218196/felix-kling and i found my problem and solved it

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
I'm sorry that I disturbed you and the List,I tried hard to mind my punctuations but my English has weaknesses you can understand from my posts,one time I apologized.. No my problem is not with these punctuations i know them I said for example,I mean in general suppose that i have this SIMPL

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
in this topic problem WAS this one: insert to a table twice(that was solved) and on that post problem is this one: working with echo html then insert to a table (problem in $_POST) I thought it is very different am i wrong?

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
cause it's in another topic!!! and another problem! this problem was solved i had another problem what do you mean!?

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
because when the name is in echo it can't access to $_POST 4 example $_POST['p$i'] it tells me undefined variable p$i when in html we write it in form because it has post method it can set $_POST but here in php i just echo it and i can't access it maybe i am wrong but how can i correct it?

[PHP] Re: how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
i mean my tables in Mysql

[PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Negin Nickparsa
because I echo the checkboxes like this: if($num>0) { echo ""; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); echo ""; echo""; echo"$row[0]"; echo""; }//for echo""; }//if i can't use $_POST because it's not in html how can i insert my items that are checked into table?

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
i'm wondering that what was the problem! why with just a session it now works propely!!! how!

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
i used your exit too,yes it's better to hide the form after registration:)

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Yes viraj it was in both tables

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Hi viraj intresting! i changed the code to this: $kind=$_SESSION['s3']; $query1="insert into user(kind,user,pass,name)values('$kind','$str','$str2','$str3')"; $result1=mysql_query($query1); i set the session in my another page and now it works properly:D LOL!!

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
I click the submit button just one time! not twice but when i go to MySql and select * from it it shows me happening two times

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Consistently here is the code: Registration Complete the form below: Name: Last name: Username: Password:

[PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
I have a code that i get the $_POST's result and then insert them in tables of Mysql it can run without error but it'll insert in the table twice and i don't know why. when I click the submit then with array_key_exists I go to if statement and insert it. i'll show the code if someone have time help

  1   2   >