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

[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

[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

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

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

[PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
i want 2 design a php web for staff members that can sign in with their accounts n then mail 2 each other i don't know how it really works by using a mail server i'm beginner at it! but i studied alot abt it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
internal messaging system On Thu, Mar 17, 2011 at 8:16 PM, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 15:23, Negin Nickparsa wrote: > i want 2 design a php web for staff members that can sign in with >> their accounts n then mail 2 each other i don't know how it r

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
gt;> >> >> Jason Pruim >> >> On Mar 17, 2011, at 11:23 AM, Negin Nickparsa wrote: >> >> > i want 2 design a php web for staff members that can sign in with >> > their accounts n then mail 2 each other i don't know how it really >> > wo

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
can i have an email server? we have 4 example:u...@dpaco.net or not? just we must have an emails like gmail n ymail? if i can have email server how i can code it i can have tables like this: CREATE TABLE domains ( domain varchar(50) NOT NULL, PRIMARY KEY (domain) ) TYPE=MyISAM; CREATE TABLE fo

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
I serached well yeah sort of Squirrel Mail! but it's one part of it not all part of it On Thu, Mar 17, 2011 at 8:00 PM, Negin Nickparsa wrote: > can i have an email server? > we have 4 example:u...@dpaco.net > or not? > just we must have an emails like gmail n ymail? >

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
t Dallas wrote: > On Thursday, 17 March 2011 at 16:56, Negin Nickparsa wrote: > internal messaging system > > In that case it's simply a matter of creating a table structure to hold the > messages and building an interface that will display them and allow new > messages t

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
u mean i can have localhost mail service or not? On Thu, Mar 17, 2011 at 8:36 PM, Negin Nickparsa wrote: > i'll give all my users user n password will they be under the same > domain or not? > user1 has the domain gmail n user 2 ymail > or i can have all users the same thi

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
when a user will be logged on he/she must have the messages just for him self yeah? then i must have a column for the mails that he recieved 4 example select mail1 from users where user=user1 i got it right? On Thu, Mar 17, 2011 at 8:39 PM, Negin Nickparsa wrote: > u mean i can have localh

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
but yes i need notifications now we use free application named osticket but it doesn't work very well I can change my codes because i have time what is your suggestion for me which one can better support my site? MTA or another free app? On Thu, Mar 17, 2011 at 8:43 PM, Negin Nickparsa

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
Tnx very much Stuart 4 ur great helps. now it's more clear 4 me On Thu, Mar 17, 2011 at 8:55 PM, Negin Nickparsa wrote: > but yes i need notifications > now we use free application named osticket but it doesn't work very well > I can change my codes because i have time > w

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
ok! stuart plz let me think to exactly tell u what i want! because i must make sentences more clear i know i have bad english sorry! i will tell u in a moment. On Thu, Mar 17, 2011 at 9:16 PM, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 17:25, Negin Nickparsa wrote: > but yes

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
dn’t have reply then close it) settings for users sending sms to that user when priod time is going 2 finish making priority for emergency mails On Thu, Mar 17, 2011 at 9:21 PM, Negin Nickparsa wrote: > ok! stuart plz let me think to exactly tell u what i want! because i > must make sentence

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
i just got it! now! what's the meaning of charge for! lol! plz don't help me! again! because i have no money! tnx very much till now On Thu, Mar 17, 2011 at 9:42 PM, Negin Nickparsa wrote: > :( maybe it's ticketing i don't know exactly!!!:"( > here are the thing

Re: [PHP] designing a post fix

2011-03-18 Thread Negin Nickparsa
can u explain zimbra server 4 me? On Thu, Mar 17, 2011 at 9:44 PM, Curtis Maurand wrote: > > Zimbra Server. > > Negin Nickparsa wrote: >> :( maybe it's ticketing i don't know exactly!!!:"( >> here are the things that i must do: >> >> receiving

Re: [PHP] Can´t upload files bigger than 50KB

2011-03-18 Thread Negin Nickparsa
if i'm not in mistake u can go 2 php.ini n fix it On Fri, Mar 18, 2011 at 6:24 PM, Gotzon Astondoa wrote: > I could not find the solution to the problem. > I've finally solved by using an applet that uploads the files by FTP. > In case anyone needs it, the applet I've used is > http://sourceforge

[PHP] is there any syntax to save a file in mysql?

2011-03-27 Thread Negin Nickparsa
in php i have a file to upload i want to save this file in a table and then retreive it from table in another situation is it possible?

Fwd: [PHP] is there any syntax to save a file in mysql?

2011-03-27 Thread Negin Nickparsa
-- Forwarded message -- From: Negin Nickparsa Date: Mon, Mar 28, 2011 at 10:24 AM Subject: Re: [PHP] is there any syntax to save a file in mysql? To: Hans Åhlin tnx Hans now i run this code in my sql ihave this: CREATE TABLE upload ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR

Fwd: [PHP] is there any syntax to save a file in mysql?

2011-03-27 Thread Negin Nickparsa
-- Forwarded message -- From: Negin Nickparsa Date: Mon, Mar 28, 2011 at 10:57 AM Subject: Re: [PHP] is there any syntax to save a file in mysql? To: a...@ashleysheridan.co.uk Dear Ashley,but i want every user to have his/her own files in their account. (i used session for them

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
i want each user having more than one file like us in the inbox of our mails i want to store files n then they can access each one.

Re: [PHP] session variable problem

2011-03-28 Thread Negin Nickparsa
call session_destroy(); then start the session again

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
i got it but i didn't understand what to do exactly uploading a file in a folder is easy for me than what i must do in db?

Re: [PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Negin Nickparsa
storing what in db? my codes was abt to store the file when uploading what is the difference can i give me in an example?

Re: [PHP] session_start() may take 5 seconds :(

2011-03-30 Thread Negin Nickparsa
session1.php: session2.php:

Re: [PHP] the best 1 book for php

2011-04-07 Thread Negin Nickparsa
introduction 2 PHP and MySql,Larry ullman

[PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
i coded a smart home it has two jframes in java netbeans it works correctly when i run the server and then when i run client the devices such as radio,fan,... i turn them on/off but i want to store the changes when i run the server for the second time someone told me that i must add xml code does a

Re: [PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
php coders know about XML maybe u don't know but someone will reply me u'll see

Re: [PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
i didn't want to be smart or funny cause i'm not i just told my Idea and i didn't want to bother list or Daniel pardon me Daniel,for my bad behave if u think that was bad ok i'll go

[PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i want to when clicking on the image then go to other page or set my $_SESSION i have this in php code: echo""; how can i correct this or if it is completely wrong how 2 solve it? i tried to set header in onclick too but i think it can't do because header is function of php and i echoed the html t

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
I tried,You solved my problem tanx very much Rob

[PHP] i need delay time in doing array_key_exists but while(true) can't work 4 it.

2011-05-20 Thread Negin Nickparsa
===>if(array_key_exists('sub5',$_POST)) this line runs before i clicked on the submit while(true) before this line can't work then how can i solve the time problem? here is the whole code: 0) { echo ""; for($i=0;$i<$num;$i++) { $row=mysql_fetch_row($result); echo ""; for($j=0;$j<$num1;$j++) { echo"

Re: [PHP] i need delay time in doing array_key_exists but while(true) can't work 4 it.

2011-05-20 Thread Negin Nickparsa
i can't understand what u wanted to tell me. i want to when clicking on the sub button then go to another page i wrote it but i can't solve this problem: php runs the code and "then" i click it i don't know,how can i solve it any suggestion?

Re: [PHP] i need delay time in doing array_key_exists but while(true) can't work 4 it.

2011-05-20 Thread Negin Nickparsa
the thing that is important to me is setting session because i want the tables of the one that clicked be showed on patient.php how can i change my wrong code?

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
Robert could u plz exactly tell me how i can work with GET and write my SESSION i tried your code abt session but i didn't get it right but for another ones i tried and it was right

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i want to click on the image then it stores the session so i can have many different tables in another one unique page suppose that i have A in my column when i click on image then it showed me the table of A in another page but if i click on the image of B then in the next page it will show me th

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i'm using http://localhost/ i don't have server like something.com i wrote url:'loadsession.php' instead of http://www.yourserver.com/loadsession.php', and i deleted src="http://www.yourserver.com/js/jquery.js"; but it doesn't work what i must write in there?

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
it is the result!!! Now = getdate(time()+TIMESEED*60); else $this->Now = getdate(($mode? $dd:strtotime($dd))); $this->Now["fyday"] = ($this->Now["yday"]+287)%365; if($this->Now["fyday"]==0) $this->Now["fyday"] = 365; } function getFarsiDate($mode, $fa=true, $echo=true) { $varStr = ""; switch($mode)

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
why URL?

[PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
my code is this: $query1="select * from patient where id=".$_POST['txt']; it works but i think because i have error in next line: *Warning*: mysql_num_rows() expects parameter 1 to be resource, boolean given $num2=Mysql_num_rows($result1); i echoed $ query1 and the result was this=>select * from

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
$id=(int)$_POST['txt']; $query1="select * from patient where id=".$id.""; echo $query1; $result1=mysql_query($query1); echo $result1; $num2=Mysql_num_rows($result1); $num3=Mysql_num_fields($result1); still it has previous error Here is my output:select * from patient where id=1 *Warning*: mysql_

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
Bálint Horváth, the second post of me is using your idea your idea is working but why i have error still?

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
$result1=mysql_query($query1); echo $result1; it can't echo $result1 i don't know why?

Re: [PHP] simple question abt convert to integer

2011-05-24 Thread Negin Nickparsa
i recieve nothing not a resource id and nore false

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Negin Nickparsa
Tnx to all:D Paul you are absolutly right:D it was a bad mistake from me there was no need 2 convert it Balint helped me n with mysql_error i found that my code hasn't any mistake i just forgot the BIG thing! selecting db:D i totally forgot it because i had array keys with if statement n in there i

Re: [PHP] simple question abt convert to integer

2011-05-25 Thread Negin Nickparsa
i got it tnx Balint

[PHP] about getting a site

2011-05-27 Thread Negin Nickparsa
if i don't have any site can i share my php files in somewhere 4 free? if yes, what u suggest?

Re: [PHP] about getting a site

2011-05-27 Thread Negin Nickparsa
*Joshua You are right,I **apologize**.*

Re: [PHP] about getting a site

2011-05-27 Thread Negin Nickparsa
thanks Sharl,I'll study it Joshua,Yes,I mean host and Run

[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

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:

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
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
Yes viraj it was in both tables

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
i'm wondering that what was the problem! why with just a session it now works propely!!! how!

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

[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

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?

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] 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] 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: 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] insert to table in php scripts

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

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

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-31 Thread Negin Nickparsa
Thank you

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

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] 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] 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 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
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 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] 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] 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] 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] 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] 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] 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] I can't execute pf commands

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

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
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] PHP runs but apache says its a faulting module every so often

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

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] 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
did you set the ?

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']'";

  1   2   >