he problem is that SOMETIMES, my SID gets embedded in the URL, although at
the begining of every page I have this code:
ini_set(session.use_only_cookies, "1");
session_set_cookie_params(60*60);
session_start();
session_register("blabla");
if (!$_SESSION["logged_in"])
session_destroy();
etc, etc;
Wow, thank you, it was so obvious!
Marek Kilimajer wrote:
> PHPDiscuss - PHP Newsgroups and mailing lists wrote:
> > he problem is that SOMETIMES, my SID gets embedded in the URL, although at
> > the begining of every page I have this code:
> >
> > ini_set(session.use
Hello everyone,
I store files on the server (.pdf, .doc, .txt, etc.) which are
referenced by entries in a database. The filenames are only stored in
the database and are not BLOBs.
What I'd like to do is to be able to show a web form wherein a user
can choose stored documents on the server and s
On 1/8/07, Ville Mattila <[EMAIL PROTECTED]> wrote:
Matt Arnilo S. Baluyos (Mailing Lists) kirjoitti:
> What's the easiest way to go about this? Specifically, what's the
> easiest way to read a file from the server and send it as an email
> attachment.
I woul
Hello everyone,
I'm planning to put up a local classified ads website and I'm looking
for an open-source script for this.
I've already had some links from Google and Sourceforge but I'd like
to get some opinions on people who've already run a classifieds
website as to what they're using and what
Hello everyone,
I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1
installation. This is on a Fedora Core 5 system with target web server
being lighttpd.
This is the configure script that I have:
./configure --enable-fastcgi --enable-discard-path
--enable-force-redirect --wi
On 3/26/07, Matt Arnilo S. Baluyos (Mailing Lists)
<[EMAIL PROTECTED]> wrote:
Hello everyone,
I'm trying to add the SNMP module with a compile-from-source PHP 5.2.1
installation. This is on a Fedora Core 5 system with target web server
being lighttpd.
This is the configure script
Hello everyone,
I have a working lighttpd + fastcgi + PHP + eaccelerator installation.
I have also enabled short tags on the /usr/local/lib/php.ini but I'm
having problems with PHP not escaping the short tags.
To better illustrate, my phpinfo() file can be accessed at
http://202.171.164.70/phpin
I'm using list like
list($a,$b,$c,$d) = $MyArray
MyArray holds more than three items, 0-4 more,
my problem is that $d only gets one and I lose the others if more tha one
extra. I know I can just add more $e,f,g,h,i but how do I get the extras
into an array?
TIA
RGauthier
--
PHP General Mailing L
Bing,
Run
If you don't see a section for LDAP, it's not installed.
In a Windows XP, PHP 4.3.6 environment, installed in C:/Program
Files/PHP,I had to change a working default installation as follows to get
it to work:
Add to php.ini:
extension_dir = C:/Program Files/PHP/extensions/
extension
Alan McDonald wrote:
> > > I've downloaded the 4.3.7 tar ball and extractted it. I've run configure
> > > (after deleting the cache), no errors. I've run make - no errors, I've
> then
> > > run make install.. no errors, it says it's updating and installing.
> > > Now I've restarted my httpd servic
You could also use the php date() function.
date('I');
If you need it for a specific date, then
date('I',$timestamp);
Curt Zirzow wrote:
> * Thus wrote Chirag Shukla:
> >
> > This function can be used to know whether it is Daylight Savings time or
> > not for the given date. It may not be
Hi all,
Would it be possible to have two MySQL instances running on one server
(each having different ports) and then have only one running Apache
server with PHP?
I have tried this once but PHP can only connect to one MySQL server
because it can only read one socket file at a time. As much as
po
Does Eclipse already have word-wrap?
To my disappointment, it was still lacking that basic functionality
the last time I tried it.
On 8/3/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> eclipse with php eclipse, but i may be switching to eclipse pdt once it
> becomes stable if there is no support
On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 2007/10/18, Matt Arnilo S. Baluyos (Mailing Lists)
> <[EMAIL PROTECTED]>:
> > Does Eclipse already have word-wrap?
> >
> > To my disappointment, it was still lacking that basic functionality
> > t
Hi all,
I'm looking for a PHP environment for Windows (like XAMPP), that
already has TLS transport built-in.
Would anyone know of something like it? If not, any pointers on how to
get TLS transport for a PHP Windows environment?
Thanks,
Matt
--
Stand before it and there is no beginning.
Follow
Hello All,
I'm thinking of using an ORM framework for a new project. From my
research, I've found Propel and Doctrine (of course, there might be
others).
Would anyone suggest what ORM framework they're using right now? I am
experienced with OOP and am just looking for a framework to speed
things
Hello everyone,
Would anyone know a PHP script that can sanitize variables to prevent
XSS and SQL injection?
Thanks and best regards,
Matt
--
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
--
PHP General Mailing List (
On 3/29/06, Ray Hauge <[EMAIL PROTECTED]> wrote:
> Chris Shiflett has written a number of good articles on the matter. You can
> find them at:
>
> http://shiflett.org/articles
>
> The articles in particular would be:
>
> Security Corner: Cross-Site Request Forgeries
> Security Corner: Data Filterin
Hello list,
We have recently upgraded our database to PostgreSQL 8.1.x which
handles UTF-8 more strictly than previous versions. The new version
will not allow illegal byte sequences when inserting data.
This has caused some errors in our system which inputs data.
Basically, what the system does
Hi,
I'm using shell_exec to call a command that can return accented
characters. Unfortunately the accented characters are being transformed
into other characters instead (for example, an acute e becomes a ',').
How can I get the real output?
I'm running on Windows 2000. In the command prompt t
Hi,
I'm using shell_exec to call a command that can return accented
characters. Unfortunately the accented characters are being transformed
into other characters instead (for example, an acute e becomes a ',').
How can I get the real output?
I'm running on Windows 2000. In the command prompt t
I'm having PHP5 compile problems as well. Here's some shortened output
from commands giving a picture of my problem.
The first thing that troubles me is vi giving this output:
[EMAIL PROTECTED] php-5.0.0RC1]# vi ext/mysql/php_mysql.c
"ext/mysql/php_mysql.c" 2514L, 70348C
Error detected while proc
$cacheTime) {
$file = fopen ("local file", "r");
if (!$file) {
$dump = "Does not exist";
} else {
while (!feof ($file)) {
$line = fgets ($file);
if (eregi ('', $line, $pt)) {
$cntrp=$cntrp+1; $post[$cntrp]=$pt[1];
$cacheTime) {
$file = fopen ("local file", "r");
if (!$file) {
$dump = "Does not exist";
} else {
while (!feof ($file)) {
$line = fgets ($file);
if (eregi ('', $line, $pt)) {
$cntrp=$cntrp+1; $post[$cntrp]=$pt[1];
Hi there,
Look at the following code please. I have a mysql db setup and apache
running. I have the register_globals=OFF on the php.ini file. The code is
suppose to show all the jokes in the databse and give user to enter jokes.
The code works fine when when the register_globals=ON in the php.ini
Hi there,
Look at the following code please. I have a mysql db setup and apache
running. I have the register_globals=OFF on the php.ini file. The code is
suppose to show all the jokes in the databse and give user to enter jokes.
The code works fine when when the register_globals=ON in the php.ini
Stephen Craton wrote:
> I've been working on a script for a while now and it works perfectly on my
> local machine. I'm using a couple of classes, mainly my database and users
> classes.
> After logging in, I assign a session variable to the user's row in the
> database: $_SESSION['user'] = $db->
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work. I have found several articles on things to
try and have tried everything I saw but to no avail. I set up a php
script to mail and then print the return code and I get a 1 (success).
But the mail
Hi,
I am new to this or any newsgroup in PHP, as well as PHP itself, so this
question is probably rather elementary. I have a form which on clicking
on the "Submit" button calls up a compiled program on the server that is
executed and writes output to a file. This file is then read by the PHP
sc
Leon Poon wrote:
> Refer to the following line numbers:
> 01 > 02 > // Start of PHP code - Extract values from form.
> 03 > /* Other values read */
> 04 > $n=$_POST['n'];
> 05 >
> 06 > // Pass the data from the form to lightcurve_csharp
> 07 > $command="./lightcurve_csharp $a $i $e $lomega $bome
Luke Barker wrote:
> I have made a 404 custom error handler, using .htaccess in a directory
> - it is usppoed to route all unfound pages to error.php, and works as
> expected for .htm and .html pages as well as gifs etc. But ofr .php
> scripts, e.g /path/to/wrongurl.php it doesnt show my page -
>
The following wsdl file was provided to me.
http://64.122.63.81:5454/IfxService.wsdl
I first attempted to genrate the PHP classes using the following code...
http://64.122.63.81:5454/IfxService.wsdl);
// Look at the generated code...
echo ( $wsdl->generateProxyCode() );
?>
---
As a developer, I would love to use PHP 5+ for applications but I am
afraid to do so because 90% of web hosting companies do not offer it. The
biggest reason that that they do not offer it is because there is little
demand for it. The reason why there is little demand for it is that
developers do
Hello Everyone,
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
However, I've seen some open-source projects which either u
On 2/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
> bare in mind though that define() is horribly slow (to paraphrase
> Rasmus) which may be the reason many projects choose to use variables
> instead. see here:
Thanks Chris and Jochem!
That should've been my follow up question - which is, if defi
601 - 638 of 638 matches
Mail list logo