Hi Sven,
i was in the need to allow ?php Tags within template-layers which caused
me some problems at first as i ran into the situation you described. I was
able to solve this problem quite well using this function:
/**
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
*/
function ParsePHP (
On Fri, 03 Dec 2004 09:43:10 +0800, Ho!Tech Guy [EMAIL PROTECTED] wrote:
I have a classified ad section on my site which uses a privacy mail
function so users don't have to make their email address public. Recently
though, the site has been mined (I assume) and spam is being sent.
I was
php-general Digest 3 Dec 2004 10:37:02 - Issue 3148
Topics (messages 203393 through 203411):
Re: $this -
203393 by: Matthew Weier O'Phinney
203408 by: Klaus Reimer
Strange character conversion when converting XML by XSLT in PHP
203394 by: Age Bosma
203395
hey!
There a framework for php known as plankton..
http://sourceforge.net/projects/plankton/
is there any have idea..how to configure..because i haev tried but not
working.. and also tell me is it usefull or not?
--
pravin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
i have a script which reads and edit and delete records from a database table.
the proplem is i nthe ID field.
when i delete a row the sequence of numbers still the same, i need a
function which return the IDs in the form of 1 2 3 4 5 6 7 8 9
instead of 1 3 7 9,
can anyone help me plz ?
--
Hi Peter,
You can use this function
function daysLeft($startDate,$endDate=false){
// convert to timestamps
$start_stamp = strtotime($startDate);
$end_stamp = ($endDate)?strtotime($endDate):time();
Ahmed Abdel-Aliem wrote:
i have a script which reads and edit and delete records from a database table.
the proplem is i nthe ID field.
when i delete a row the sequence of numbers still the same, i need a
function which return the IDs in the form of 1 2 3 4 5 6 7 8 9
instead of 1 3 7 9,
can
Hi,
I need to get the LDAP groups a user is member of (memberof). The problem is
that there are multiple levels of groups, and I need to get all levels.
example
userA is member of group A B and C
group A is member of (included in) group D
If I make a simple query on the LDAP server to fetch
My advice is to pick a project that will be useful to you and ideally
to some people you know, perhaps your friends or family. A little side
project I just started is a wine log. I've been getting into wine
lately and so have some of my friends. We have no way of tracking and
rating what we
Richard Lynch wrote:
Nick Peters wrote:
i currently have a apache and php installed perfectly on my box
(slackware 10). However, i have the need to use mcrypt. I have mcrypt all
compiled and
installed, but how do i add the module to my php install? I have searched
a
few places on the net
I'm trying to create a table, and ultimately a graph, out of some syslog
data.
I have a mysql table with the following info in it:
Time (unixtime stamp), bytes rcvd and bytes sent
I want to create a sql statement that group the data over a certain period
of time, and produces the
If someone doesn't give you an answer here, try php cookbook by O'reilly.
It has this exact recipe in it.
Best,
Thomas S. Crum
-Original Message-
From: James Nunnerley [mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL sums
I'm
Ok, so this is what I have done:
*-*-*-*-*-*-*-*-*-*-*
$idResults = `sudo -u admin ssh [EMAIL PROTECTED] id usertocheck 21`;
echo id: (.$idResults.)\r\n.\r\n;
if (ereg(no such user, $idResults)) {
echo 'id blah!';
}
*-*-*-*-*-*-*-*-*-*-*
And, here are the results that I get when I access
Thanks alot.
Lordo
Peter Lauri [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sessions will make you life easier if you are using cookies to control a
web
session. http://th.php.net/manual/en/ref.session.php will give you most
information regarding this, together with some
Hello All,
I am a new member of this group and in the world of PHP;-)
In my company, around 12 web pages are there. So, I want to make a web
portal in PHP from where all these web pages can be accessed.
Also, I want to provide the link for the web pages ( will make three
categories) in
This is an SQL question.
James Nunnerley wrote:
I'm trying to create a table, and ultimately a graph, out of some syslog
data.
I have a mysql table with the following info in it:
Time (unixtime stamp), bytes rcvd and bytes sent
I want to create a sql statement that group the data over a
Hey all, I have a log-in all set up on my site using PHP Sessions but I want
to add the Remember Me function, but I don't know what to set in the cookie
to make it that way. Please help. :)
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Nick Peters wrote:
Richard Lynch wrote:
Nick Peters wrote:
i currently have a apache and php installed perfectly on my box
(slackware 10). However, i have the need to use mcrypt. I have mcrypt all
compiled and
installed, but how do i add the module to my php install? I have searched
a
few places
Hi there!
I would do it this way:
Give the links a variable:
http://www.mywebpage.com/index.php?link=page1
http://www.mywebpage.com/index.php?link=page2
...
http://www.mywebpage.com/index.php?link=page12
and then in the document below your menue:
if (isset($link))
{
include(pages/ .
Marek Kilimajer wrote:
This is an SQL question.
snip
Yes, but this is the
php-general_mysql_javascript_wax-my-car_html_apache_kitchen-sink list. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Marek Kilimajer wrote:
This is an SQL question.
Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list moderators who will jump on you like what happened to me last week.
I was accused of being not
Tomar Rajeev (ext) wrote:
Hello All,
I am a new member of this group and in the world of PHP;-)
and I guess to mailing lists in general too. You should give a hint
about your problem in the subject.
In my company, around 12 web pages are there. So, I want to make a web
portal in PHP from
M. Sokolewicz wrote:
Nick Peters wrote:
Richard Lynch wrote:
Nick Peters wrote:
i currently have a apache and php installed perfectly on my box
(slackware 10). However, i have the need to use mcrypt. I have mcrypt
all compiled and
installed, but how do i add the module to my php install? I
I think u have to go for
http://www.w3schools.com
Thnx for joining the group
Ankur Dave
Quoting Tomar Rajeev (ext) [EMAIL PROTECTED]:
Hello All,
I am a new member of this group and in the world of PHP;-)
In my company, around 12 web pages are there. So, I want to make a web
Jonathan Duncan wrote:
I will also be doing a remote command to add a user to the remote
system (ServerB) from the same PHP script.
If you want to manage a server via web interface, dont reinvent
the wheel. Use webmin, by example.
Webmin runs a mini webserver as root (on port 1),
and uses
On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet
[EMAIL PROTECTED] wrote:
Hey all, I have a log-in all set up on my site using PHP Sessions but I want
to add the Remember Me function, but I don't know what to set in the cookie
to make it that way. Please help. :)
Set a cookie, then check for it
Raditha Dissanayake wrote:
Marek Kilimajer wrote:
This is an SQL question.
Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list moderators who will jump on you like what happened to me last week.
I was
Ave,
I created a multi-user File Management program written in PHP with mySQL
backend. Basically it allows registered users to upload files to their or
other users accounts, and allows them to download files.
I use the force-download for my download process.
Here's the problem.
When someone
Ave,
I've found part of the problem... But I have no clue why it is happening and
what is the solution for it.
On any windows machine, when the user clicks the OPEN option from the Save
Dialog box, this is the kind of error that generates:
Error: The file could not be located at c:\documents
On Fri, 3 Dec 2004 14:55:46 -, James Nunnerley
[EMAIL PROTECTED] wrote:
I'm trying to create a table, and ultimately a graph, out of some syslog
data.
I have a mysql table with the following info in it:
Time (unixtime stamp), bytes rcvd and bytes sent
Why reinvent the wheel? Use
On Fri, 3 Dec 2004 16:49:28 +0530 (IST), Pravin-Kumar
[EMAIL PROTECTED] wrote:
hey!
There a framework for php known as plankton..
http://sourceforge.net/projects/plankton/
is there any have idea..how to configure..because i haev tried but not
working.. and also tell me is it usefull or not?
Is this the all I would need to do to set a cookie with a username stored
for 30 days? Sorry I am new at this.
setcookie (Cookie Name, $username, time()+60*60*24*30);
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, 3 Dec 2004 07:38:47 -0800, Brad Brevet
[EMAIL
Hi, i have a page which views th content of tables, each row in one page,
there is a combo box which shows the IDs of each row, and when user
click on one, it redirects him to the same page with the new ID
there is two problems.
when there is no records in the dataabse i get mysql error.
and when
Christophe,
I see where you are coming from with that, but the purpose of this script
is to remove me from the picture completely. I want someone to be able to
come sign up on my site and automatically be added as a mail user and
other things so that I do not need to do that kind of thing.
I
Nevermind, I figured it all out, thanks for the info.
Brad Brevet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is this the all I would need to do to set a cookie with a username stored
for 30 days? Sorry I am new at this.
setcookie (Cookie Name, $username, time()+60*60*24*30);
Rahul S. Johari wrote:
href=\imsafm2_download.php?F=imsafm/$showfilesuser/$myrow[filename]\img
src=b_newtbl.png border=0/a
One thing you might want to try...
I've noticed over the years that Microsoft will usually manage to screw up
if you've got a dynamic URL. I really don't understand (or
not '--width-mcrypt', just '--with-mcrypt' ;)
Sorry, i must learn to think before i type ;-)
but i am still left wondering if i have to copy anythign to my php dir
after
running said command.
Yes, of course. Sorry.
You'll then need to follow the steps to compile and install:
make
make
Brad Brevet wrote:
Hey all, I have a log-in all set up on my site using PHP Sessions but I
want
to add the Remember Me function, but I don't know what to set in the
cookie
to make it that way. Please help. :)
You have several options.
One is to do the http://php.net/session_start, and then,
Hi!
Have you thougt of writing the userdata to a database and running a perl
script by cron to do the rest? This would be an interesting opinion for
security purpose.
Stefan
-Ursprüngliche Nachricht-
Von: Jonathan Duncan [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 3. Dezember 2004
Tomar Rajeev (ext) wrote:
I am a new member of this group and in the world of PHP;-)
In my company, around 12 web pages are there. So, I want to make a web
portal in PHP from where all these web pages can be accessed.
Also, I want to provide the link for the web pages ( will make three
Jonathan Duncan wrote:
Ok, so this is what I have done:
*-*-*-*-*-*-*-*-*-*-*
$idResults = `sudo -u admin ssh [EMAIL PROTECTED] id usertocheck 21`;
echo id: (.$idResults.)\r\n.\r\n;
if (ereg(no such user, $idResults)) {
echo 'id blah!';
}
*-*-*-*-*-*-*-*-*-*-*
So what I wanted to
Now to create this I've tried a horrible method of using php to call sql
table, and then go through each one, and add it to each period of time as
appropriate. it's messy and slow!
Yes!
To generalize:
ANY time you try to get PHP to access SQL data row by row, and do
something with it (other
On Saturday 04 December 2004 00:40, Marek Kilimajer wrote:
Raditha Dissanayake wrote:
Marek Kilimajer wrote:
This is an SQL question.
Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list
Vincent DUPONT wrote:
I need to get the LDAP groups a user is member of (memberof). The problem
is that there are multiple levels of groups, and I need to get all levels.
example
userA is member of group A B and C
group A is member of (included in) group D
If I make a simple query on the
This is in reply to both Stefan and Richard,
I gave it some brief thought in the past, but brushed it off as not as
convenient. However, rethinking about it, it may actually be more
secure. H, darn it, now you have me thinking again. Security is a
big concern for me. As it is now, the
Hi folks -
I'm writing a checkout.
When user submits their card details, I want to redirect
them to page with a please wait message. Then redirect to
the script that does the payment processing. Then when I
have the response from the gateway, redirect again to the
result page.
form - message -
Ahmed Abdel-Aliem wrote:
Hi,
i have a script which reads and edit and delete records from a database
table.
the proplem is i nthe ID field.
when i delete a row the sequence of numbers still the same, i need a
function which return the IDs in the form of 1 2 3 4 5 6 7 8 9
instead of 1 3 7
Is what I have set up and it is working is a cookie that saves someones
username if they check the Remember Me box. If the cookie is set it then
starts the necessary session and stays active for 30 days.
Are there any pitfalls to this that you can see? Are there any additional
security measures I
Jordi Canals wrote:
On Fri, 03 Dec 2004 09:43:10 +0800, Ho!Tech Guy [EMAIL PROTECTED]
wrote:
I have a classified ad section on my site which uses a privacy mail
function so users don't have to make their email address public.
Recently
though, the site has been mined (I assume) and spam is
Nick Peters wrote:
M. Sokolewicz wrote:
Nick Peters wrote:
Richard Lynch wrote:
Nick Peters wrote:
i currently have a apache and php installed perfectly on my box
(slackware 10). However, i have the need to use mcrypt. I have mcrypt
all compiled and
installed, but how do i add the module to my
Hi,
Sorry if this is a dumb question. Is there a way in php to get the
physical path the document root of my website? I want to open a file in
the root of my web server, i.e. /, but I won't always know what the
physical path to the web root is, and it will vary depending on the
machine the
Ave,
I spent most of my afternoon going through everything in the computer, from
DOS to the Temporary Files Folder, pertaining to what was happening, and I
you're absolutely correct, because my findings also suggested me nothing
else but that Microsoft was screwing it up.
I think the solutions
Richard,
I had a question for you...
When you said:
The goal here is to change the URL that looks like this:
imsafm2_download.php?F=imsafm/rahul/somefile.txt
into a URL that looks like this:
imsafm2_download/F=imsafm/rahul/somefile.txt
Did you mean
Hi, everyone,
I want to pass several parameters to a CGI program run on another server. The
following source of that program shows the parameters that need to be set
manually.
--
FORM name=organism
Select
Josh Howe wrote:
Sorry if this is a dumb question. Is there a way in php to get the
physical path the document root of my website? I want to open a file in
the root of my web server, i.e. /, but I won't always know what the
physical path to the web root is, and it will vary depending on the
On Fri, 3 Dec 2004 19:47:27 +0200, Ahmed Abdel-Aliem [EMAIL PROTECTED] wrote:
when there is no records in the dataabse i get mysql error.
So wrap your while( mysql_fetch_array() ) with if( mysql_num_rows() ).
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?
On Fri, 3 Dec 2004 10:58:21 -0800, Brad Brevet
[EMAIL PROTECTED] wrote:
What else should I be worried about as far as security is concerned with
Sessions and Cookies?
You
On Wed, 01 Dec 2004 23:25:00 +0100, M. Sokolewicz [EMAIL PROTECTED] wrote:
I think patching zend_language_scanner.l would be easier actually ;)
Probably getting a little off-topic here but after I saw how seemingly
easy this might be, I had to give it a shot. I added this in
On Saturday 04 December 2004 02:47, Jonathan Duncan wrote:
[snip]
rethink my strategy. Thanks to everyone. Richard, I consider myself a
highly security conscious person, but you are making me
think more like a criminal, and that is good. Security is very important.
In that case may I
unsubescribe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Every one...
Straight to the topic...
I have a template file called welcome.tmp. I want
to show the whole file in a Iframe with dimensions of 250 x 250.(i.e., less
dimensions ).
Is it possible using PHP. Or how should
How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 04 December 2004 03:30, Rahul S. Johari wrote:
Did you mean imsafm2_download/F=imsafm/rahul/somefile.txt or
imsafm2_download?F=imsafm/rahul/somefile.txt
The difference being the ³?² instead of the ³/²
I did actually edited my Apache¹s httpd.conf and added the Files
directive.
Another option would be to open the file with a http protocol reference.
PHP can access files specifying a URL, and if pointing to your current
domain it should work.
http://www.php.net/manual/en/function.fopen.php
I.e. $fh = fopen(http://www.mydomain.com/filea.txt,r;);
You should also be able
Jason,
Such as? I assume you have something in mind.
That would certainly be nice. I am not against considering it. Although I
am somewhat tied to sendmail as that is what my hosting provider supports
and also what I am familiar with.
Jonathan
Jason Wong [EMAIL PROTECTED] wrote in
On Fri, 3 Dec 2004 15:56:26 -0500, Jerry Swanson [EMAIL PROTECTED] wrote:
How to upgrade PHP 4.3.2 to new version? OS is Linux(Fedora Core 2).
http://www.php.net/manual/en/install.unix.php
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General
On Sat, 4 Dec 2004 02:30:04 +0530, suneel [EMAIL PROTECTED] wrote:
I have a template file called welcome.tmp. I want
to show the whole file in a Iframe with dimensions of 250 x 250.(i.e., less
dimensions ).
Is it possible using PHP. Or how
Assuming you want to show the template file text contents and not have the
file translated in any way in the iframe, you might check out;
http://www.php.net/manual/en/function.htmlspecialchars.php
If on the other hand you just want to show the translated template,, then
you want to point your
When I use this feature, I set a cookie to Remember Me that lasts for
six months or a year. That's completely independent of any session(s).
Often I'll have a 6-month session for storing shopping cart contents,
and a 30-minute session for storing login status. All kinds of things
going on
R. Van Tassel mailto:[EMAIL PROTECTED]
on Wednesday, December 01, 2004 10:54 PM said:
I am programming a site using sessions and a shopping cart and was
wondering if someone could point me to some good tutorials online
about using sessions and a shopping cart. I have books and can read
Well, is what my plan is, is to create a session on log-in along with a
stored cookie, so that once the browser is closed the session is removed and
only the cookie remains for the 30-day time period.
Brad
Brian Dunning [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
When I use this
Jason - that's cool. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
On Saturday 04 December 2004 00:40, Marek Kilimajer wrote:
Raditha Dissanayake wrote:
Marek Kilimajer wrote:
This is an SQL question.
Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will be self appointed
list
On Saturday 04 December 2004 05:33, Jonathan Duncan wrote:
Such as? I assume you have something in mind.
That would certainly be nice. I am not against considering it. Although I
am somewhat tied to sendmail as that is what my hosting provider supports
and also what I am familiar with.
Marek Kilimajer wrote:
Jason Wong wrote:
On Saturday 04 December 2004 00:40, Marek Kilimajer wrote:
Raditha Dissanayake wrote:
Marek Kilimajer wrote:
This is an SQL question.
Marek, don't you know that this the mysql list? you are supposed to
answer questions like these. If you don't there will
Yao, Minghua wrote:
Hi, everyone,
I want to pass several parameters to a CGI program run on another server. The
following source of that program shows the parameters that need to be set
manually.
This is not really a PHP question, you can pass values in the query
string eg
I used a little javascript to reveal a message, then submit the form.
Hence the message stays there until the next page loads:
SCRIPT LANGUAGE=JavaScript
!--
function checkFields(fieldNames, displayText) {
//etc...
if(ok)
Hi
I was looking at Zend training requirements, on Zends website.
They reportedly require Win2k/XP, and IE5.5.
Does anyone know what specific part of these training courses require
Win2k/xp and IE, and whether or not it is possible to bypass this
using Wine(or if it is due to a wma dep, using
--- Rory Browne [EMAIL PROTECTED] wrote:
I was looking at Zend training requirements, on Zends website.
They reportedly require Win2k/XP, and IE5.5.
Does anyone know what specific part of these training courses
require Win2k/xp and IE, and whether or not it is possible to
bypass this
Hello friends,
I just wanna know is there any way out to know the name of the latest
created session. The issue i'm fixed up with is
I'm storing some variables in the session and the session expire is set
to some 24hrs. Now when i close the browser and when i again open the
same page after
Hi there, I have some code where I am using the $_SERVER['PHP_SELF']
array to reference my script for a form action... now for some reason
the file name is not being rendered out. I am including only small
snippets of my code to see where my error is...
?php
$editFormAction =
On Saturday 04 December 2004 15:36, Dustin Krysak wrote:
Hi there, I have some code where I am using the $_SERVER['PHP_SELF']
array to reference my script for a form action... now for some reason
the file name is not being rendered out. I am including only small
snippets of my code to see
82 matches
Mail list logo