php-general Digest 25 Feb 2006 05:44:28 -0000 Issue 3983
Topics (messages 231022 through 231050):
Re: [How-to]flatfile New system with comments
231022 by: tedd
$_POST to function?
231023 by: Jason Gerfen
231025 by: Jason Gerfen
231026 by: Vidyut Luther
231027 by: Jason Gerfen
231028 by: Christopher Taylor
231029 by: Jason Gerfen
231030 by: Dan Parry
231031 by: Vidyut Luther
231033 by: Jason Gerfen
231034 by: Jared Williams
231035 by: Peter Lauri
231036 by: Peter Lauri
231037 by: Jason Gerfen
Re: PHP Manual in PDF format
231024 by: tedd
231050 by: ÃmìtVërmå
Re: Calling API on Windows?
231032 by: tg-php.gryffyndevelopment.com
Re: Date question
231038 by: Sumeet
231039 by: Chris Boget
Re: $_POST to function? [SOLVED]
231040 by: Jason Gerfen
Testing
231041 by: jblanchard.onecallcom.com
231042 by: John Nichel
mysql help..
231043 by: ganu ullu
231044 by: John Nichel
231047 by: chris smith
231048 by: Tom Rogers
session vars on Windows Server?
231045 by: Ing. Tomás Liendo
¹©Ó¦É̹ÜÀíÓë²É¹º³É±¾¼¼ÇɿγÌ
231046 by: 0755-83524370
email to db
231049 by: Mark
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 ---
How would I make a flatfile new systen with the ability for users to
comment on the news selection (no login required)?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com
Hi:
Perhaps this might help:
http://www.weberdev.com/get_example-420.html
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
Tanoor Dieng wrote:
Hi,
are there some variables in your post array(aka are you sure that
$_POST is not empty)?
Normally this should works.
Tanoor.
2006/2/24, Jason Gerfen <[EMAIL PROTECTED]>:
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yep, I just double checked the $_POST vars prior to calling the
function, ex:
echo "<pre>"; print_r( $_POST ); echo "</pre>"; // This prints
everything contained in $_POST without problem
return global_template( 3, $_POST, count( $_POST ), $message, NULL );
function global_template( $cmd, $args, $num, $message, $errors ) {
echo "<pre>"; print_r( $args ); echo "</pre>"; // This will not
display anything in the $args->$_POST array? WTH?
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
Since $_POST is a superglobal, it should not lose scope inside a
function() call. I could be wrong though.
Also, curious if $args is empty.. what is $num and $message. ?
Also.. you're calling a function in your return statement ?
On 2/24/06, Jason Gerfen <[EMAIL PROTECTED]> wrote:
> Tanoor Dieng wrote:
>
> >Hi,
> >are there some variables in your post array(aka are you sure that
> >$_POST is not empty)?
> >Normally this should works.
> >
> >Tanoor.
> >
> >2006/2/24, Jason Gerfen <[EMAIL PROTECTED]>:
> >
> >
> >>I am not sure why this is not working. Aren't $_POST vars
> >>superglobals? I am trying to pass the $_POST array as an argument to a
> >>function and nothing is being returned. Any help is appreciated.
> >>
> >>return global_template( 3, $_POST, count( $_POST ), $message );
> >>
> >>function global_template( $cmd, $args, $num, $message ) {
> >> echo "<pre>"; print_r( $args ); echo "</pre>";
> >> }
> >>
> >>--
> >>Jason Gerfen
> >>
> >>"When asked what love is:
> >> Love is the Jager talking."
> >>~Craig Baldo
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> Yep, I just double checked the $_POST vars prior to calling the
> function, ex:
>
> echo "<pre>"; print_r( $_POST ); echo "</pre>"; // This prints
> everything contained in $_POST without problem
> return global_template( 3, $_POST, count( $_POST ), $message, NULL );
>
> function global_template( $cmd, $args, $num, $message, $errors ) {
> echo "<pre>"; print_r( $args ); echo "</pre>"; // This will not
> display anything in the $args->$_POST array? WTH?
> }
>
> --
> Jason Gerfen
>
> "When asked what love is:
> Love is the Jager talking."
> ~Craig Baldo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Vidyut Luther wrote:
Since $_POST is a superglobal, it should not lose scope inside a
function() call. I could be wrong though.
Also, curious if $args is empty.. what is $num and $message. ?
Also.. you're calling a function in your return statement ?
On 2/24/06, Jason Gerfen <[EMAIL PROTECTED]> wrote:
Tanoor Dieng wrote:
Hi,
are there some variables in your post array(aka are you sure that
$_POST is not empty)?
Normally this should works.
Tanoor.
2006/2/24, Jason Gerfen <[EMAIL PROTECTED]>:
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yep, I just double checked the $_POST vars prior to calling the
function, ex:
echo "<pre>"; print_r( $_POST ); echo "</pre>"; // This prints
everything contained in $_POST without problem
return global_template( 3, $_POST, count( $_POST ), $message, NULL );
function global_template( $cmd, $args, $num, $message, $errors ) {
echo "<pre>"; print_r( $args ); echo "</pre>"; // This will not
display anything in the $args->$_POST array? WTH?
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sure, by calling return function_name( args ) it just sends vars based
on conditional statements to a template type setup. The $num and
$message vars are used by the template function to determine what and
how to display the page contents is all.
That is what I thought, $_POST is a superglobal, but it is loosing
scope. Could it be that I am trying to pass $_POST from one function to
another function be causing the problem you think? I have never ran
into this before.
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
I am not as familiar with php as I am c++ but I wonder if you need to
pass by reference? Does this make sense in the context of php?
One other thing I would try is setting $temp = $_Post and then passing
$temp.
Chris
--- End Message ---
--- Begin Message ---
Christopher Taylor wrote:
I am not as familiar with php as I am c++ but I wonder if you need to
pass by reference? Does this make sense in the context of php?
One other thing I would try is setting $temp = $_Post and then passing
$temp.
Chris
Yeah, I actually tried that as well.
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-----------------------------------------------------
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: 24 February 2006 15:27
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
just for fun, I tried to do what you're doing.
http://www.phpcult.com/jason.phps
http://www.phpcult.com/jason.php to run it..
it seems to be working.. the problem is in your code.. but not PHP properly..
On 2/24/06, Jason Gerfen <[EMAIL PROTECTED]> wrote:
> Christopher Taylor wrote:
>
> > I am not as familiar with php as I am c++ but I wonder if you need to
> > pass by reference? Does this make sense in the context of php?
> >
> > One other thing I would try is setting $temp = $_Post and then passing
> > $temp.
> >
> > Chris
> >
> Yeah, I actually tried that as well.
>
> --
> Jason Gerfen
>
> "When asked what love is:
> Love is the Jager talking."
> ~Craig Baldo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Dan Parry wrote:
Why are you passing the POST array? As it's superglobal why not just work
directly on it within the function?
Dan
-----------------------------------------------------
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: 24 February 2006 15:27
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
Perhaps I should post some more of the code I am working. I am
attempting to create a simple method of outputing data to a template
function which only holds html data to be displayed on the browser.
Here is a quick overview, perhaps I cannot do this.
index.php calls this:
$data = chooser( $_SESSION['a'], $_GET['b'], $_SESSION['c'],
$_SESSION['d'] );
Contents of chooser function:
function chooser( $level, $page, $user, $pass ) {
if( $page == "global" ) {
require 'global.inc.php';
$data = global_dhcp( $_SESSION['lvl'], $_POST['dn'], $_POST['lt'],
$_POST['mlt'], $_POST['msc01'], $_POST['msc02'], $_POST['msc03'],
$_POST['msc04'], $_POST['msc05'], $_POST['pxe'], $_POST['pxe01'],
$_POST['pxe02'], $_POST['pxe03'], $_POST['pxe04'], $_POST['pxe05'],
$_POST['pxe05'] );
}
contents of global_dhcp function:
function global_dhcp( $level, $domain, $lease, $mxlease, $msc01, $msc02,
$msc03, $msc04, $msc05, $pxe, $pxe01, $pxe02, $pxe03, $pxe04, $pxe05,
$pxe06 ) {
global $defined, $error_message;
require 'template.php';
if( ( empty( $domain ) ) || ( empty( $lease ) ) || ( empty( $mxlease )
) ) {
$db = db( $defined['dbhost'], $defined['username'],
$defined['password'], $defined['dbname'] );
$sql = @mysql_query( "SELECT * FROM global", $db )
$args = @mysql_fetch_array( $sql_global );
@mysql_close( $db );
$message = "message";
return global_template( 1, $args, count( $args ), $message );
logs( $error_message['valid'] );
} else {
return global_template( 4, NULL, NULL, NULL, NULL );
logs( $error_message['usr_chk'] );
}
}
and the contents of the global_template function:
function global_template( $cmd, $args, $num, $message, $errors ) {
if( $cmd == 4 ) {
$data = "<img src=\"images/error.jpg\"> <blink><b>Error:
</b></blink>You do not have proper access to use this utility. Your
computer information has been recorded and the Administrator has been
notified.";
}
return $data;
}
So in essence:
index.php->chooser->global_dhcp->global_template->output to browser
I hope that clarifies my problem a bit.
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
>
> Why are you passing the POST array? As it's superglobal why
> not just work directly on it within the function?
>
Passing it has distinct advantages, like being able to test the function.
Jared
--- End Message ---
--- Begin Message ---
Is the function actually returning anything? Aren't you just "echoing" the
content of the $_POST?
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Do:
function global_template( $cmd, $args, $num, $message ) {
ob_start();
echo "<pre>"; print_r( $args ); echo "</pre>";
ob_end_flush();
return ob_get_contents();
}
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Peter Lauri wrote:
Is the function actually returning anything? Aren't you just "echoing" the
content of the $_POST?
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
Well as I pass $_POST to the global_template function I am not seeing
anything in the $args array in the global_template function. And to
this point I still have not figured out why.
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
Hi ALL
I am looking out for PHP Manual in PDF Format
Thanks in Advance
Regards
Kaushal
Try Google:
http://iwing.cpe.ku.ac.th/tutorial/PHP/PHPmanual.pdf
I'm sure there are others.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
Good.. you went straight into their vault to those PDF :)
tedd wrote:
Hi ALL
I am looking out for PHP Manual in PDF Format
Thanks in Advance
Regards
Kaushal
Try Google:
http://iwing.cpe.ku.ac.th/tutorial/PHP/PHPmanual.pdf
I'm sure there are others.
tedd
--- End Message ---
--- Begin Message ---
Don't know if it helps much, but maybe there's something buried in WinBinder
(http://www.winbinder.com) that could help. It's a much better (IMO) Windows
GUI for PHP than GTK is... and is windows specific so might have have w32/ffi
helper functions.
Good luck!
-TG
= = = Original message = = =
Okay, here is the error:
http://hwhome.hkto.net:808/apidie.jpg
I'm using CHT version of windows, but I think you should seen this
window before.
I've searched on google, but I find lots of ffi that != Foreign Function
Interface :(
I found this:
http://www.cweiske.de/download/phpgtk/pear/System_WinDrives.phps which
use PHP's w32api on PHP4 and use FFI on PHP5. But it provide a simple
example of using ffi only, and I'm still confused on it.
Please help, Thx!
Ho Wang
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--- End Message ---
--- Begin Message ---
William Stokes wrote:
Hello,
I have a datetime column in MySQL DB. How can I match to that column from
php code if I only have the date information available.
2006-02-24 12:00:00 against 2006-02-24
This might be more SQL question sorry about that.
Thanks
-Will
use date_format("%Y-%m-%d",'date_column') in the sql
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
--
Sumeet Shroff
http://www.prateeksha.com
Web Design and Ecommerce Development, Mumbai India
--- End Message ---
--- Begin Message ---
I have a datetime column in MySQL DB. How can I match to that column from
php code if I only have the date information available.
2006-02-24 12:00:00 against 2006-02-24
This might be more SQL question sorry about that.
use date_format("%Y-%m-%d",'date_column') in the sql
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
The above is likely one of the more elegant solutions. But if you wanted to
do this
completely in PHP, you could do something like:
<pseudocode>
$phpDate = '2006-02-24';
$rowData = mysql_fetch_assoc( $yourQuery );
if( date( 'Y-m-d', strtotime( $rowData['MySQLDate'] )) == $phpDate )) {
echo 'Dates match!';
}
</pseudocode>
thnx,
Chris
--- End Message ---
--- Begin Message ---
Peter Lauri wrote:
http://th.php.net/manual/en/function.return.php
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 25, 2006 12:29 AM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] $_POST to function?
Peter Lauri wrote:
Is the function actually returning anything? Aren't you just "echoing" the
content of the $_POST?
-----Original Message-----
From: Jason Gerfen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 24, 2006 10:27 PM
To: PHP General (E-mail)
Subject: [PHP] $_POST to function?
I am not sure why this is not working. Aren't $_POST vars
superglobals? I am trying to pass the $_POST array as an argument to a
function and nothing is being returned. Any help is appreciated.
return global_template( 3, $_POST, count( $_POST ), $message );
function global_template( $cmd, $args, $num, $message ) {
echo "<pre>"; print_r( $args ); echo "</pre>";
}
Well as I pass $_POST to the global_template function I am not seeing
anything in the $args array in the global_template function. And to
this point I still have not figured out why.
Figured it out, typo. I must have fat fingers today. Thanks everyone.
--
Jason Gerfen
"When asked what love is:
Love is the Jager talking."
~Craig Baldo
--- End Message ---
--- Begin Message ---
I am conducting a test of my new e-mail address. This is only a test. If
this were not a test you would be instructed to tune into your locale
emergency sarcasm system. Please RTFM and Have a PHP Day!
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
I am conducting a test of my new e-mail address. This is only a test. If
this were not a test you would be instructed to tune into your locale
emergency sarcasm system. Please RTFM and Have a PHP Day!
Dork. ;)
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi all,
I installed a opensource php project, and now is working fine for me.
Now that project has some 40-50 MySQL tables..
now I want to change something in that but the I am not able to get the DB
flow..
Is any body knows any tool by which we can create/make the relationship
diagram like we are doing in SQLserver or Access..
To understand the DB is very tough... any body knows how I can create the
relationship diagram from that .SQL file...
thnx to alll...
--- End Message ---
--- Begin Message ---
ganu ullu wrote:
Hi all,
I installed a opensource php project, and now is working fine for me.
Now that project has some 40-50 MySQL tables..
now I want to change something in that but the I am not able to get the DB
flow..
Is any body knows any tool by which we can create/make the relationship
diagram like we are doing in SQLserver or Access..
To understand the DB is very tough... any body knows how I can create the
relationship diagram from that .SQL file...
thnx to alll...
I built my web site in php, can anyone hold my hand and find me a tool
to analyze my server logs?
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Ask the open-source project for help. They will be able to answer your
questions better than we can.
On 2/25/06, ganu ullu <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I installed a opensource php project, and now is working fine for me.
> Now that project has some 40-50 MySQL tables..
>
> now I want to change something in that but the I am not able to get the DB
> flow..
> Is any body knows any tool by which we can create/make the relationship
> diagram like we are doing in SQLserver or Access..
>
> To understand the DB is very tough... any body knows how I can create the
> relationship diagram from that .SQL file...
>
> thnx to alll...
>
>
--- End Message ---
--- Begin Message ---
Hi,
Saturday, February 25, 2006, 5:53:23 AM, you wrote:
gu> Hi all,
gu> I installed a opensource php project, and now is working fine for me.
gu> Now that project has some 40-50 MySQL tables..
gu> now I want to change something in that but the I am not able to get the DB
gu> flow..
gu> Is any body knows any tool by which we can create/make the relationship
gu> diagram like we are doing in SQLserver or Access..
gu> To understand the DB is very tough... any body knows how I can create the
gu> relationship diagram from that .SQL file...
gu> thnx to alll...
Try DbDesigner4, it will reverse engineer an existing database as much as it
can.
http://fabforce.net/
--
regards,
Tom
--- End Message ---
--- Begin Message ---
Hi I have the following problem:
I developed a system that it runs perfec in my PC and in hosting server with
Linux. But the session vars don't work in a hosting server with Windows...
The technical contact of the Server with Windows says me that the problem is
a space before the function session_start() in my code...
I tried this, but don't work...
Have any idea why session vars don't work in a Windows Server???
I have the same version exactly of the system in a server with Linux:
http://www.pentagonoonline.com.ar/soporte
and in a server with Windows: http://www.iracbiogen.com.ar/virtual
Try to login into the system with:
user (usuario): master
password (clave): gh306
In Linux you can login without problems, but in Windows you won't to leave
the login page. This is because in the Windows server the session var that
I'm using to determine if the user has loged correctly don't work...
How can I solve this problem?
I send you the files procesa_login.php (processes login) and controla.php
(controls). The first one verifies the user name and password in the
database (no problems), the second verify that the user has loged correctly
(problems with the session var $_SESSION['autentificado'] (authenticated).)
Well I wait to have explained to myself, and... sorry for my english...
Ahead of time, thank you very much,
Tom.
begin 666 procesa_login.php
M/#\@<V5S<VEO;E]S=&%R="@I.PT*("!I;F-L=61E*")C;VYE>"YP:' B*3LO
M+U!R;W9E92!U;[EMAIL PROTECTED];B!P87)A(&-O;F5C=&%R<[EMAIL PROTECTED]@<V5R=FED
M;W(@9&[EMAIL PROTECTED]<R!->5-13"X-"B @+R\D;&EN:SUC;VYE8W1A
M<G-E*")L;V-A;&AO<W0B+")C;W1O;2(L(F=R965N,S V(BPB8V]T;VU?<&5N
M=&%G;VYO(BD[(" O+W!A<[EMAIL PROTECTED]@<V5R=F5R#0H@("\O)&QI;FL]8V]N96-T
M87)[EMAIL PROTECTED];&]C86QH;W-T(BPB<F]O="(L(B(L(G-O<&]R=&4B*3LO+U)E86QI
M>F$@;&[EMAIL PROTECTED];[EMAIL PROTECTED](&QA(&)A<[EMAIL PROTECTED]&[EMAIL
PROTECTED]&%T;W,-"B @)&YI8VL]
M)%]03U-46R=N:6-K)UT[#0H@("1C;&%V93TD7U!/4U1;)V-L879E)UT[(" -
M"B @)&-U<G-O/21?4$]35%LG8W5R<V\G73L-"B @#0HO+T%U=&5N=&EC86-I
M;[EMAIL PROTECTED]&[EMAIL
PROTECTED])I;RTM+2TM+2TM+2TM+2TM+2TM+2TM+2TM#0HD=7-U87)I
M;W,];7ES<6Q?<75E<GDH(E-%3$5#5" J([EMAIL PROTECTED]:6YI<W1R861O<F5S
M(%=(15)%(&YO;6)R95]U<STG(BXD;FEC:RXB)[EMAIL PROTECTED])R(N)&-L
M879E+B(G(BPD;&EN:RD[#0HD=7-U87)I;SUM>7-Q;%]N=6U?<F]W<[EMA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T*(" @(" @(" O
M*F5L<V4-"B @(" @(" @>R @(" @(" @#0H@(" @(" @(" @(" D:&]R85]A
M8W1U86P]9V5T=&EM96]F9&%Y*"D[+R]/8G1I96YE(&QA(&AO<[EMAIL PROTECTED]
[EMAIL PROTECTED](" @(" @(" @(" @)&AO<F%?96YT<F%D83TD7U-%4U-)3TY;(FAO<F$B
M73LO+T]B=&EE;F4@;&$@:&]R82!D92!L82!U;'1I;6$@<&5T:6-I;VXN#0H@
M(" @(" @(" @(" D9&EF97)E;F-I83TD:&]R85]A8W1U86Q;(G-E8R)=+21H
M;W)A7V5N=')A9&$[+R]#86QC=6QA(&QA(&1I9F5R96YC:[EMAIL PROTECTED]<F4@;&$@
M:&]R82!D92!I;F=R97-O('D-"B @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @("\O(&QA(&AO<[EMAIL PROTECTED]@T*(" @(" @(" @
M(" @(&EF*"1D:69E<F5N8VEA/C$R,# I#0H@(" @(" @(" @(" @>R\O4VD@
M;&[EMAIL PROTECTED]&EF97)E;F-I82!E;B!M87EO<B!A(&1I97H@;6EN=71O<[EMAIL
PROTECTED]@=7-U
M87)I;R!E<R!D96-O;F5C=&%D;R!Y(&5N=FEA9&[EMAIL PROTECTED]
M90T*(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @+R]L;V=I;BX-
M"B @(" @(" @(" @(" @(" @('-E<W-I;VY?9&5S=')O>[EMAIL PROTECTED](" @(" @
M(" @(" @(" @(" @:&5A9&5R*"),;V-A=&EO;CH@;&]G:6XN<&AP(BD[#0H@
M(" @(" @(" @(" @('T-"B @(" @(" @(" @(" @96QS90T*(" @(" @(" @
M(" @("![#0H@(" @(" @(" @(" @(" @(" D7U-%4U-)3TY;(FAO<F$B73TD
M:&]R85]A8W1U86Q;(G-E8R)=.R\O06-T=6%L:7IA(&QA(&AO<[EMAIL PROTECTED]&4@;&$@
M=6QT:6UA('!E=&EC:[EMAIL PROTECTED](" @(" @(" @(" @("!](" @(" @(" @(" -
M"B @(" @(" @(" @?2HO#0H)?2 -"@EE;'-E#0H)>PD)(" -"@D))%]315-3
M24].6R=A=71E;G1I9FEC861O)UT](DY/(CL-"@D):&5A9&5R*"),;V-A=&EO
:;CH@;&]G:6XN<&AP(BD[#0H@(" @?0T*/SX`
`
end
--- End Message ---
--- Begin Message ---
+++++++++++++++供应商管理与采购成本降低技巧培训++++++++++++++++++
----------------------------------------------------------------------
2006年3月4-5日 上海青年培训活动中心
----------------------------------------------------------------------
举办++希锐企业管理咨询公司
费用++1800元/人[提供讲义、午餐、发票等](三人以上九折优惠)
咨询报名 :0755-83524370 曾小姐 欢迎您的来电咨询!
传真:0755-83524349
----------------------------------------------------------------------
课程背景:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++?
"成本"是采购人员心里"永远的痛",采购人员每年在做降价工作,但企业为
了控制库存,采购周期越来越短、采购批量越来越小,供应商怨声载道,加上原
材料的价格不断上涨,降价的工作越来越富有挑战。 通过对本课程的学习,学员
可以了解现代采购管
理的发展趋势,改善企业的采购组织以及采购流程的设定,完善供应商管理体系,
提升采购谈判能力。从而帮助采购人员选择最佳供应商和采购策略,确保采购工
作高质量、高效率及低成本执行,使企业具有最佳的供货状态,同时与供应商保
持良好的战略伙伴关系。
----------------------------------------------------------------------
导师简介
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
马老师,德国汉堡大学供应链管理博士,复旦大学管理学博士, 上海海事大
学教授(即上海海运学院),注册培训师,美国AITA授权国际职业顾问,美国国
家采购管理协会会员(NAPM),深圳希锐企业管理公司高级顾问师。长期从事物
流与采购分析研究工作,并兼任德国拜耳公司中国采购帮办,尤其擅长建立现代
企业物流管理系统与采购管理工作流程及供应链模型。常赴德国、美国、日本等
交流培训经验。著作有《物流人才浅论》、《企业信息化的实施准则》、《第三
方物流管理的集与散》、《供应链管理的误区》、《JIT系统》等。
曾经讲授及辅导过的企业有:松下电器、IBM、蒲金钢板(韩)、富士工具(
日)、日立(HITACHI)、汤姆逊(THOMSON)、埃尔夫(EIF)、飞利浦、三洋、
诺基亚、西门子 、华凌空调、美的空调、立白集团、百事可乐、四川长虹集团等
三百多家企业。马先生专精于采购与企业运营系统改善、供应链、物流控制、MRP
/ERP,TQM、生产控制与价值工程等。
马老师具有扎实深厚的理论与实务经验,授课生动、气氛活跃、贴近企业实战
要求、获得学员的一致好评。
-----------------------------------------------------------------------
课程大纲
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1、采购的新型理念
◆采购系统设计的指导思想
◆供应链系统的目标冲突
◆供应链系统的设计
2、采购核心价值与采购成本控制?
◆采购条款及与供应商关系策略?
◆采购流程的合理化设计?
◆采购中的成本影响因素分析?
◆如何降低采购成本?
◆供应商通常依据哪些要素进行报价?
◆三方报价与价格分析工具的制定?
◆如何分析供应商的价格市场定位与走向?
◆如何运用价格分析工具来分析报价?
◆工作流程及实施技巧?
◆价值分析/价值评价(VA/VE)
◆成本降低方案(Cost Down Program)
◆价格分析与控制
3、采购谈判技巧
◆谈判的步骤
◆如何掌握卖方真实的销售心理
◆利用买卖双方的优劣进行谈判
◆如何利用上级的权限进行议价
◆采购谈判技巧的“规则”
◆有效谈判应注意的事项
◆买方占优势时应采用何种采购策略
◆卖方占优势时应采用何种采购策略
4、供应商选择与管理
◆如何依据公司发展,销售目标制定供应商需求体系
◆供应商开发与认可程序
◆采购商业体系、质量体系的构建?
◆供应商选择与评价的考评因素?
◆供应商商业、服务、质量审核要素?
◆批量生产中供应商的日常管理?
◆供应商定期评估、等级划分与双赢模式建立?
◆案例分析?
5、如何管理供应商
◆建立对供应商管理之制度
◆供应商之交期管理(Delivery)
◆供应商品质管理(Quality)
◆供应商成本管理(Cost)
◆供应商服务管理(Service)
◆主要供应商管理
◆建立与策略性供应商的伙伴关系
◆如何管理单一供应商◆如何与供应商谈判
◆案例研讨:供应商管理
6、如何进行供应商绩效评估
◆建立供应商绩效考核标准
◆供应商绩效分析
◆如何进行供应商绩效评估
◆如何奖励供应商
◆如何淘汰不良供应商
◆如何协助供应商改善绩效
◆如何进行供应商发展
◆案例研讨
7、采购管理效能评估?
◆采购管理效能评估的方法
◆采购人员的绩效评估
◆杜绝无效的采购行为
8、大量综合案例分析
9、实际问题解答
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
报名回执表
我公司拟派员参加《供应商管理与采购成本降低技巧》培训班。
参加单位:________________________________________________
联系人:_______________;电话________________;传真__________
参加人:1______________;2________________;3________________
4______________;5________________;6________________
共_____人[需安排住宿: 是( ) 否( )]
提示:1 报名表填写完整并传真后,请务必再次电话确认,以确保报名成功;
2 我们收到传真后会有专人联系您。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--- End Message ---
--- Begin Message ---
Does anyone know if its possible or how difficult it would be to have a user
send an email from outlook express to a websites mysql database and update
records.
Mark
--- End Message ---