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:
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
?
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
-- 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
-- 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
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.
call session_destroy(); then start the session again
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?
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?
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!);
?
introduction 2 PHP and MySql,Larry ullman
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
php coders know about XML maybe u don't know but someone will reply me u'll
see
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
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
I tried,You solved my problem tanx very much Rob
===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');
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?
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?
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
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
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?
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:
why URL?
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
$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*:
Bálint Horváth,
the second post of me is using your idea
your idea is working but why i have error still?
$result1=mysql_query($query1);
echo $result1;
it can't echo $result1
i don't know why?
i recieve nothing not a resource id and nore false
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 got it tnx Balint
if i don't have any site can i share my php files in somewhere 4 free?
if yes, what u suggest?
*Joshua You are right,I **apologize**.*
thanks Sharl,I'll study it
Joshua,Yes,I mean host and Run
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
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'];
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
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!!
Yes viraj it was in both tables
i used your exit too,yes it's better to hide the form after registration:)
i'm wondering that what was the problem!
why with just a session it now works propely!!!
how!
i mean my tables in Mysql
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?
cause it's in another topic!!! and another problem!
this problem was solved
i had another problem
what do you mean!?
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?
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
Yes,you are right I visited the
http://stackoverflow.com/users/218196/felix-kling
and i found my problem and solved it
Thanks Viraj,I'll read it.
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']);
}
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
it is the output:
http://www.yahoo.com/?s=https
can i force it to show me
https://www.yahoo.com
?
Thank you
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
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:
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.
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
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
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--
I mean it was my own oinkcode I was a registered user
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
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
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.
http://www.php.net/manual/en/security.database.sql-injection.php
http://www.php.net/manual/en/security.database.storage.php
did you try it in shell? or just You tried it in PHP?
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
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
Arthur would you please explain it in more details?
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
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
did you run phpinfo()?
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?
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?
did you set the form method='post'
?
in this line password='$_POST[pass]';
you have error change it to password='$_POST['pass']';
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
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
well I wonder!
with error syntaxes now it is working? or without them?
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
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
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
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:
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
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
Finally I solved my problem!
I have downloaded another version of cake that is less than 2 now it works
like a charm:)
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
is your oci module enabled in php.ini?
I mean something like this?
extension=oci8.so
use gdb
1 - 100 of 146 matches
Mail list logo