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

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 stu...@3ft9.com 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 really

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
? Jason Pruim On Mar 17, 2011, at 11:23 AM, Negin Nickparsa nickpa...@gmail.com 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 works by using a mail server i'm beginner at it! but i studied alot

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

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 nickpa...@gmail.com 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? if i can

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
stu...@3ft9.com 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 to be added, probably

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 nickpa...@gmail.com 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 thing like

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 nickpa...@gmail.com wrote: u mean i

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 nickpa

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 nickpa...@gmail.com 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 what

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 stu...@3ft9.com wrote: On Thursday, 17 March 2011 at 17:25, Negin Nickparsa wrote

Re: [PHP] designing a post fix

2011-03-17 Thread Negin Nickparsa
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 nickpa...@gmail.com wrote: ok! stuart plz let me think to exactly tell u what i want! because i must make sentences more

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 nickpa...@gmail.com wrote: :( maybe it's ticketing i don't know exactly!!!:( here are the things that i must do

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 cur...@maurand.com wrote: Zimbra Server. Negin Nickparsa wrote: :( maybe it's ticketing i don't know exactly!!!:( here are the things that i must do: receiving mails and return of mails showing emails 2

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 gaston...@gmail.com 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

[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-28 Thread Negin Nickparsa
-- Forwarded message -- From: Negin Nickparsa nickpa...@gmail.com 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 ahlin.h...@kronan-net.com tnx Hans now i run this code in my sql ihave this: CREATE TABLE upload

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

2011-03-28 Thread Negin Nickparsa
-- Forwarded message -- From: Negin Nickparsa nickpa...@gmail.com 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

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-31 Thread Negin Nickparsa
session1.php: ?php session_start(); $_SESSION['s1']='sth'; header(location: session2.php?.SID); ? session2.php: ?php session_start(); if(isset($_SESSION['s1'])) echo $_SESSION['s1']; else die(No session!); ?

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

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] img src ..... 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: echoimg src=' ' onclick='$_SESSION['s1']=12(i mean a number)';/; 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

Re: [PHP] img src ..... 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: ?php session_start(); $connection=Mysql_connect('localhost','admin','123');

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] img src ..... 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] img src ..... 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

Re: [PHP] img src ..... 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] img src ..... 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) { case 1:

Re: [PHP] img src ..... 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*:

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

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-28 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-28 Thread Negin Nickparsa
*Joshua You are right,I **apologize**.*

Re: [PHP] about getting a site

2011-05-28 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

Re: [PHP] insert to table in php scripts

2011-05-28 Thread Negin Nickparsa
Consistently here is the code: ?php session_start(); $connection=Mysql_connect('localhost','admin','123'); Mysql_select_db('db',$connection); if(array_key_exists('sub',$_POST)$_POST['sub']=='Register') { $str=$_POST['uname']; $str2=$_POST['pass1']; $str3=$_POST['pname']; $str4=$_POST['lname'];

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

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

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-06-01 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.

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

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

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: html head titleStore/title /head form method=post ?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: div class=messageYou have successfuly been logged in. You can now access the advanced area.br / 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

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 bma...@ihlas.net.tr ** did you try it in shell? or just You tried it in PHP? Yeah, I tried it on shell and it works on

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 form method='post' ?

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
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']); then

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

Re: [PHP] Sending a message

2011-08-05 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

[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

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: http://cakephp.org/changelogs/1.3.6 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: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule well I don't know that this apache module is enabled or not I changed the apache2 in /etc/sysconfig and add the rewrite

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 ?php function str_cat() { $args = func_get_args() ; // Asserts that every array given as argument is $dim-size. // Keys in arrays are stripped off. // If

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

  1   2   >