php-general Digest 5 Feb 2005 13:00:25 -0000 Issue 3269
Topics (messages 208108 through 208115):
Re: Multiline data Insert Into table from a generated form?
208108 by: Alp
Re: Job Recruitment and Support Ticketing Appz
208109 by: yangshiqi
Problem with session
208110 by: Thone
208112 by: Greg Donald
208114 by: Thone
Trying to match two tables' data
208111 by: Alp
Php Problem Parsing or so I think
208113 by: Carinus Carelse
wait function
208115 by: Alessandro Rosa
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi Chris,
Thanks for reminding but until I'm done with the whole thing it is operating
on a PC and that's why the username/password are the default. Even the DB
name is for testing only.
Alp
"Christopher Fulton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [snip]
> > //user connection section--begin
> > $username="root";
> > $password="";
> > $database="nazardane";
> [/snip]
>
> If this is actually your login, I would suggest changing it right away
>
> [snip]
> > while ($c=0;$c<count($_POST['tourid']):$c++)
> [/snip]
>
> Like Mike already said, that should be a for loop. But, you do have
> one other option, that I prefer...A foreach loop.
>
> foreach($_POST['tourid'] AS $tour_id {
> ... now in your code use $tour_id instead of $_POST['tourid'][$c]
> }
>
> -Chris
>
> ps...You may want to read through the php turorial again. Lots of
> helpful information there. http://us2.php.net/tut.php
> --
> Christopher Fulton
> http://www.fultonfam.com
--- End Message ---
--- Begin Message ---
Pls go to sourceforge or freshmeat.net.
Best regards,
Yang Shiqi
-----Original Message-----
From: Jason Paschal [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 05, 2005 3:53 AM
To: php-general@lists.php.net
Subject: [PHP] Job Recruitment and Support Ticketing Appz
A friend of mine is looking for one each of the following web appz:
1) Job Recruitment
A bundle of scripts that will allow someone to manage job listings and
accept applications online.
2) Online Support Ticketing
Users submit issues, and they are resolved by the support team.
Resolutions may be shared in a searchable knowledgebase.
Anyone know of any solid PHP projects that deal with these issues?
Just didn't want to reinvent the wheel.
Thank you,
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
I don't know what I did it wrong but i can send any variable through
seesion. I have something like this:
//page1.php
session_start();
$_SESSION['time_to_expire'] = time + ALIVE_TIME;
//page2.php
session_start();
print isset($_SESSION['time_to_expire']);
always get '0';
thanks
--- End Message ---
--- Begin Message ---
On Sat, 05 Feb 2005 17:53:01 +0700, Thone <[EMAIL PROTECTED]> wrote:
> Hi,
> I don't know what I did it wrong but i can send any variable through
> seesion. I have something like this:
> //page1.php
> session_start();
> $_SESSION['time_to_expire'] = time + ALIVE_TIME;
>
> //page2.php
> session_start();
> print isset($_SESSION['time_to_expire']);
>
> always get '0';
How are you passing the session from one page to the next? You can
pass it in the url or you can use transparent sessions (cookies).
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--- End Message ---
--- Begin Message ---
Greg Donald wrote:
On Sat, 05 Feb 2005 17:53:01 +0700, Thone <[EMAIL PROTECTED]> wrote:
Hi,
I don't know what I did it wrong but i can send any variable through
seesion. I have something like this:
//page1.php
session_start();
$_SESSION['time_to_expire'] = time + ALIVE_TIME;
//page2.php
session_start();
print isset($_SESSION['time_to_expire']);
always get '0';
How are you passing the session from one page to the next? You can
pass it in the url or you can use transparent sessions (cookies).
I would like to pass it through Cookie. But, I also tried to pass it by
calling, using strip_tags(SID)
page2.php?PHPSESSID=xxxxxxxxxxxxxxxxxxxx
But the result is the same. I wonder whether I have to register
PHPSESSID on the page2.php? or I can just pass PHPSESSID and call
session_start().
Thank you.
--- End Message ---
--- Begin Message ---
Hi experts,
Here's the scenario:
- 3 lines of data is present in a table
- 2 lines of detail lines (corresponding to the above) are needed to be
entered into a second table
Result needed is:
table1line1 table1line2 table1line3 (as column headers)
table2line1 table2line2 table2line3 (as first line of detail)
table2line4 table2line5 table2line6 (as second line of detail)
I might be in a wrong approach in accomplising this and would highly
appreciate any corrections. In short, column header data is entered into a
table, then number of detail lines are obtained (in general, i.e. 2), the
display should show 2 lines of input boxes under each header text in the
browser for data entry into these detail lines.
Clear as mud? Its getting there for me slowly...
Thanks in advance.
Alp
--- End Message ---
--- Begin Message ---
I got a PHP program running in a Apache 2.0.52 webserver with PHP
4.3.10. The page is supposed to go to a predefined place and pick a raw
email file and use the exim command to forward it. The PHP page is
contained in a link with certain variables when I define the variables
on the command line and then copy the exim command out of the PHP it
works perfectly with no problems but when I use the link to parse the
variables I get an error message in the browser Illegitimate format. I
am including a copy of the link I click on to call the page below. I
wonder if someone on the list can may be help me. Have I compiled PHP
wrong or is the code itself wrong. Or is there a better way to do the
below.
Thank you in advance
Carinus
http://localhost.domain.com/mailrelease/Release.php?id=1CwdBD-0002z8-1K&date=20050203&[EMAIL
PROTECTED]
<html>
<head>
<title> Releasing <?php echo($_GET['id']); ?> to all recipients </title>
<body>
<p> Releasing email message <b> <?php echo($_GET['id']); ?> </b> to <b>
<?php echo ($HTTP_GET_VARS['name']); ?> </b>
</p>
<?php
$file = $_GET['id'];
$date = $_GET['date'];
$name = $_GET['name'];
if(preg_match("/^[a-zA-Z0-9]+$/",$file)
&& preg_match("/^[0-9]+$/",$date)
&& preg_match("/[EMAIL PROTECTED]/",$name))
{
system("/usr/exim/bin/exim -oi -f postmaster -F postmaster $name >
/var/www/html/spam/$date/$file");
echo("<p> Message released <p>");
}
else
{
echo("$file, $name, or $date is not legitimate format!\n");
}
?>
</body>
--- End Message ---
--- Begin Message ---
I would write down an efficient WAIT function.
The one I did was as follows:
function microdelay($delay) {
$UNUSED_PORT=31238;
@fsockopen("tcp://localhost",$UNUSED_PORT,$errno,$errstr,$delay);
}
But it does not seem to work well.
Any suggestion?
Regards
Alessandro
--- End Message ---