|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 18 Sep 2003 16:39:57 -0000 Issue 2304
php-general-digest-help
lists.php.net
Date: Thu Sep 18 2003 - 11:39:57 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 18 Sep 2003 16:39:57 -0000 Issue 2304
Topics (messages 162951 through 163031):
Re: MySQL timestamp to desired date function
162951 by: Tom Rogers
162952 by: Cesar Aracena
162953 by: Cody Phanekham
162954 by: Cesar Aracena
162955 by: Tom Rogers
162958 by: Cody Phanekham
162976 by: - Edwin -
162989 by: David Robley
program_root in phpdoc
162956 by: daniel.electroteque.org
162990 by: David Robley
STILL NOT SOLVED RE: [PHP] SESSION variables losing data on WinXP?
162957 by: Jami
Re: Basic Framework
162959 by: rush
matching certain values
162960 by: Louie Miranda
162963 by: Jason Wong
162967 by: Louie Miranda
Re: Session data getting lost
162961 by: Rich Gray
162964 by: Rich Gray
162980 by: - Edwin -
Help!!!
162962 by: #meen shari-ah#
162978 by: DvDmanDT
163026 by: Chris W. Parker
This is my fourth day of hitting this brick wall! Anyone...Purleeeeese help!
162965 by: Steve Jackson
162973 by: Jason Wong
162977 by: Steve Jackson
162985 by: Steve Jackson
163017 by: Jim Lucas
163020 by: Marek Kilimajer
ANY ONE ANSWER ME PLEASE !
162966 by: nabil
162969 by: Larry_Li.contractor.amat.com
[PHP - MSSQL]: Problem with mssql_connect
162968 by: Ongart Wongsanupa
162970 by: Larry_Li.contractor.amat.com
162972 by: Ongart Wongsanupa
PHP image get.
162971 by: Carles Xavier Munyoz Baldó
Re: webhost --0T-->
162974 by: Ryan A
163027 by: David T-G
Re: Japanese on a page
162975 by: - Edwin -
SSO (Single Sign On) for multiple PHP apps
162979 by: BENARD Jean-philippe
162984 by: Duncan Hill
162986 by: hartmann.mayflower.de
Possible Bug With $_FILES Global
162981 by: Nathan Taylor
162999 by: Raditha Dissanayake
URL variables parsing error?
162982 by: hiaer.azrael.sk
162983 by: - Edwin -
162994 by: Jay Blanchard
PHP and SAP
162987 by: php4.nv.jakaranda.co.za
162991 by: David Robley
162995 by: hartmann.thinkphp.de
Re: template problems
162988 by: David Robley
ODBC for MS Access
162992 by: Muhammad Fikri
162996 by: Jay Blanchard
slightly OT e-commerce payments
162993 by: Angelo Zanetti
[Newbie Guide] RTFM, STFW, and STFA
162997 by: Jay Blanchard
162998 by: Raditha Dissanayake
163002 by: esctoday.com | Wouter van Vliet
163004 by: CPT John W. Holmes
163005 by: Curt Zirzow
163009 by: Christophe Chisogne
163011 by: Jay Blanchard
163012 by: Jay Blanchard
163014 by: Glenn E. Sieb
Verisign DNS Abuse Petition
163000 by: Rodney Green
Re: CURL - SSL
163001 by: Marek Kilimajer
How can one find out what Headers have been sent by a script.
163003 by: William Bailey
163006 by: William Bailey
Another code check
163007 by: James Johnson
163008 by: CPT John W. Holmes
163015 by: James Johnson
configuring the php.ini file
163010 by: Mark McCulligh
embedding PHP in MySQL
163013 by: Michael Winston
163016 by: Javier Tacon
163018 by: Marek Kilimajer
Suppressing warning messages in file uploading though HTTP
163019 by: Binay
163022 by: Raditha Dissanayake
163024 by: Binay
163028 by: Raditha Dissanayake
Crash of PHP 4.3.x, having a big array
163021 by: Martin Brenn
PHP and MYSQL don't shake hands
163023 by: Frank Tudor
Form CheckBox question
163025 by: Yves Arsenault
email receipts
163029 by: Roger Spears
Returning FORM vars from popup
163030 by: Rich Fox
163031 by: Rich Fox
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi,
Thursday, September 18, 2003, 2:38:50 PM, you wrote:
CA> Hi all,
CA> I have a a timestamp in a DB (14 digits) that I want to display like I
CA> want in my pages. I tried to use strtotime, mktime and date functions
CA> with no success... it always return the current timestamp instead of the
CA> one I have stored. This is what I've done so far:
CA> for ($x = 0; $x < $num_rows; $x++)
CA> {
CA> $row = mysql_fetch_array($result);
CA> $date1 = strtotime($row[lugar_lastinsert]);
CA> $date2 = date("d \de m \de Y \a \l\a\s H:i:s",
CA> mktime($date1));
CA> echo "<tr>";
CA> echo "<td>";
CA> echo $row[lugar_name]." - ".$row[lugar_specific];
CA> echo "</td>";
CA> echo "<td align=\"center\">";
CA> echo $date2;
CA> echo "</td>";
CA> echo "</tr>";
CA> }
CA> How can I do this and make it work?
CA> Thanks in advanced,
CA> Cesar Aracena
CA> www.icaam.com.ar
strtotime() returns a timestamp so you don't need the mktime() call
$date2 = date("d \de m \de Y \a \l\a\s H:i:s", $date1);
--
regards,
Tom
attached mail follows:
Thanks Tom, but using only the strtotime() and later the date()
functions, the page throus the following error:
Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on
line 52
Now my code looks like this:
$date1 = strtotime($row[lugar_lastinsert]);
$date2 = date("d \de m \de Y H:i:s", $date1);
Any ideas? Thanks,
Cesar Aracena
www.icaam.com.ar
-----Mensaje original-----
De: Tom Rogers [mailto:trogers
kwikin.com]
Enviado el: Jueves, 18 de Septiembre de 2003 01:48 a.m.
Para: Cesar Aracena
CC: php-general
lists.php.net
Asunto: Re: [PHP] MySQL timestamp to desired date function
Hi,
Thursday, September 18, 2003, 2:38:50 PM, you wrote:
CA> Hi all,
CA> I have a a timestamp in a DB (14 digits) that I want to display like
I
CA> want in my pages. I tried to use strtotime, mktime and date
functions
CA> with no success... it always return the current timestamp instead of
the
CA> one I have stored. This is what I've done so far:
CA> for ($x = 0; $x < $num_rows; $x++)
CA> {
CA> $row = mysql_fetch_array($result);
CA> $date1 = strtotime($row[lugar_lastinsert]);
CA> $date2 = date("d \de m \de Y \a \l\a\s H:i:s",
CA> mktime($date1));
CA> echo "<tr>";
CA> echo "<td>";
CA> echo $row[lugar_name]." - ".$row[lugar_specific];
CA> echo "</td>";
CA> echo "<td align=\"center\">";
CA> echo $date2;
CA> echo "</td>";
CA> echo "</tr>";
CA> }
CA> How can I do this and make it work?
CA> Thanks in advanced,
CA> Cesar Aracena
CA> www.icaam.com.ar
strtotime() returns a timestamp so you don't need the mktime() call
$date2 = date("d \de m \de Y \a \l\a\s H:i:s", $date1);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
[snip]
> I have a a timestamp in a DB (14 digits)
[/snip]
strtotime() tries to convert textual dates into a UNIX timestamp. eg "10 September 2000"
since you've supplied a 14 digit timestamp to strtotime(), the function will throw back unexpected results.
can we get some sample data from the lugar_lastinsert field?
> -----Original Message-----
> From: Cesar Aracena [mailto:lists
icaam.com.ar]
> Sent: Thursday, 18 September 2003 14:39
> To: php-general
lists.php.net
> Subject: [PHP] MySQL timestamp to desired date function
>
>
> Hi all,
>
> I have a a timestamp in a DB (14 digits) that I want to display like I
> want in my pages. I tried to use strtotime, mktime and date functions
> with no success... it always return the current timestamp
> instead of the
> one I have stored. This is what I've done so far:
>
> for ($x = 0; $x < $num_rows; $x++)
> {
> $row = mysql_fetch_array($result);
> $date1 = strtotime($row[lugar_lastinsert]);
> $date2 = date("d \de m \de Y \a \l\a\s H:i:s",
> mktime($date1));
> echo "<tr>";
> echo "<td>";
> echo $row[lugar_name]." - ".$row[lugar_specific];
> echo "</td>";
> echo "<td align=\"center\">";
> echo $date2;
> echo "</td>";
> echo "</tr>";
> }
>
> How can I do this and make it work?
>
> Thanks in advanced,
>
> Cesar Aracena
> www.icaam.com.ar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
*************************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.
The information contained within this e-mail may be solely the opinion of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
*************************************************************************************
attached mail follows:
Sure. One result is 20030918014916. That sound like YYYYMMDDHHMMSS to me
right?
Thanks,
Cesar Aracena
www.icaam.com.ar
-----Mensaje original-----
De: Cody Phanekham [mailto:Cody.Phanekham
salmat.com.au]
Enviado el: Jueves, 18 de Septiembre de 2003 02:04 a.m.
Para: php-general
lists.php.net
Asunto: RE: [PHP] MySQL timestamp to desired date function
[snip]
> I have a a timestamp in a DB (14 digits)
[/snip]
strtotime() tries to convert textual dates into a UNIX timestamp. eg "10
September 2000"
since you've supplied a 14 digit timestamp to strtotime(), the function
will throw back unexpected results.
can we get some sample data from the lugar_lastinsert field?
> -----Original Message-----
> From: Cesar Aracena [mailto:lists
icaam.com.ar]
> Sent: Thursday, 18 September 2003 14:39
> To: php-general
lists.php.net
> Subject: [PHP] MySQL timestamp to desired date function
>
>
> Hi all,
>
> I have a a timestamp in a DB (14 digits) that I want to display like I
> want in my pages. I tried to use strtotime, mktime and date functions
> with no success... it always return the current timestamp
> instead of the
> one I have stored. This is what I've done so far:
>
> for ($x = 0; $x < $num_rows; $x++)
> {
> $row = mysql_fetch_array($result);
> $date1 = strtotime($row[lugar_lastinsert]);
> $date2 = date("d \de m \de Y \a \l\a\s H:i:s",
> mktime($date1));
> echo "<tr>";
> echo "<td>";
> echo $row[lugar_name]." - ".$row[lugar_specific];
> echo "</td>";
> echo "<td align=\"center\">";
> echo $date2;
> echo "</td>";
> echo "</tr>";
> }
>
> How can I do this and make it work?
>
> Thanks in advanced,
>
> Cesar Aracena
> www.icaam.com.ar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
************************************************************************
*************
This e-mail, including any attachments to it, may contain confidential
and/or personal information.
If you have received this e-mail in error, you must not copy,
distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and
then delete the original e-mail.
The information contained within this e-mail may be solely the opinion
of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to
Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
************************************************************************
*************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi,
Thursday, September 18, 2003, 2:53:53 PM, you wrote:
CA> Thanks Tom, but using only the strtotime() and later the date()
CA> functions, the page throus the following error:
CA> Warning: unexpected error in date() in e:\wwwroot\videoteca\index.php on
CA> line 52
CA> Now my code looks like this:
CA> $date1 = strtotime($row[lugar_lastinsert]);
CA> $date2 = date("d \de m \de Y H:i:s", $date1);
CA> Any ideas? Thanks,
CA> Cesar Aracena
CA> www.icaam.com.ar
what database are you using?
It may be better to let the db do the formatting for you.
--
regards,
Tom
attached mail follows:
I'd have to agree with Tom, it would be better to do the formatting using the DB since MySQL stores its timestamp differently than the UNIX timestamp.
however, if you really want to do it in PHP you can use MySQL's function UNIX_TIMESTAMP() to convert the db timestamp to a unix timestamp, then use PHP's date() function to display the date.
so the code would look something like:
$sql = "SELECT UNIX_TIMESTAMP(lugar_lastinsert) from <table name> where <condition>";
.. db query code here
$row = mysql_fetch_array($result);
echo date("r", $row[0]);
> what database are you using?
I was wondering this as well, until i checked the subject
> It may be better to let the db do the formatting for you.
>
> --
> regards,
> Tom
*************************************************************************************
This e-mail, including any attachments to it, may contain confidential and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or disclose it, use or take any action
based on the information contained within it.
Please notify the sender immediately by return e-mail of the error and then delete the original e-mail.
The information contained within this e-mail may be solely the opinion of the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.
This email has been swept for the presence of computer viruses known to Salmat's anti-virus systems.
For more information, visit our website at www.salmat.com.au.
*************************************************************************************
attached mail follows:
Hi,
Tom Rogers <trogers
kwikin.com> wrote:
[snip]
> what database are you using?
[/snip]
See "Subject" line? Or, is this a trick question? :)
(Sorry, couldn't resist :) )
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
In article <001001c37d9e$c8d78c60$0300a8c0
notebook>, lists
icaam.com.ar
says...
> Hi all,
>
> I have a a timestamp in a DB (14 digits) that I want to display like I
> want in my pages. I tried to use strtotime, mktime and date functions
> with no success... it always return the current timestamp instead of the
> one I have stored. This is what I've done so far:
>
> for ($x = 0; $x < $num_rows; $x++)
> {
> $row = mysql_fetch_array($result);
> $date1 = strtotime($row[lugar_lastinsert]);
> $date2 = date("d \de m \de Y \a \l\a\s H:i:s",
> mktime($date1));
> echo "<tr>";
> echo "<td>";
> echo $row[lugar_name]." - ".$row[lugar_specific];
> echo "</td>";
> echo "<td align=\"center\">";
> echo $date2;
> echo "</td>";
> echo "</tr>";
> }
>
> How can I do this and make it work?
>
> Thanks in advanced,
>
> Cesar Aracena
> www.icaam.com.ar
>
Have you considered using MySQL's DATE_FORMAT function?
Cheers
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
attached mail follows:
Hi there any phpdoc heads out there know how to set the program_root to
show the exact path to the files, there is no setting for this in the
config files, let me know cheers.
attached mail follows:
In article <46588.203.15.102.65.1063863393.squirrel
www.electroteque.org>,
daniel
electroteque.org says...
> Hi there any phpdoc heads out there know how to set the program_root to
> show the exact path to the files, there is no setting for this in the
> config files, let me know cheers.
>
Not sure if this is what you mean - from php.ini:
; The root of the PHP pages, used only if nonempty.
doc_root =
Cheers
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
attached mail follows:
Scott,
thanks for the suggestion, but my php.ini is the same as yours. And I
still have the problem. Any idea why $_SESSION[] variables would loose
data on my server type and not on another?
Jami Moore
LightSpark Digital Designs
contact
lightsparkdigital.com
http://www.lightsparkdigital.com/
-----Original Message-----
From: Scott Fletcher [mailto:scott
abcoa.com]
Upon closer inspection on the script, it look like either the
$_POST['***']
wasn't returning data or the $_SESSION['***'] doesn't have data in it
that
tripped the header() function. So, I'll take the assumption that the
$_POST['***'] does work as it alway does. So, it narrow down to
$_SESSION['***'].
Since you mentioned that you use it on both Unix and Windows. So, most
likely it all narrow down to php.ini. Can you check to verify that the
filepath is correct for Windows and that there is no issue with file
permission.
attached mail follows:
"Lee Herron Qcs" <lee
qualitycarstereo.com> wrote in message
news:GHENKEBHIGADMGKEEEEKKEKADOAA.lee
qualitycarstereo.com...
> I'm not fond of the phrase "framework," but for lack of any other term,
this
> is what I use ..
>
> Without going to a bloated framework such as fusebox or MVP, have any of
you
> put together a simple structure to allow very basic template and module
> inclusion with menuing?
Some of my users find framework around TemplateTamer very light and simple,
yet helpfull. You could consider trying it for yourself, and I will be happy
to help you out with questions.
rush
--
http://www.templatetamer.com/
attached mail follows:
Im trying to match some words on the value that i have impost on php.
But i dont know why it doesnt seem to catch some certain fields.
if ($HTTP_USER_AGENT === 'MSIE ')
I know something is wrong :(
-
Louie
attached mail follows:
On Thursday 18 September 2003 15:55, Louie Miranda wrote:
> Im trying to match some words on the value that i have impost on php.
> But i dont know why it doesnt seem to catch some certain fields.
>
> if ($HTTP_USER_AGENT === 'MSIE ')
>
> I know something is wrong :(
Did you *try* finding out what is wrong?
Simple things like
echo $HTTP_USER_AGENT
to see what it really contains?
And if you're only matching part of a string you should be using things like
strpos() or preg_match() etc.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A straw vote only shows which way the hot air blows.
-- O'Henry
*/
attached mail follows:
thanks for the reference. strpos will be good for my problem.
----- Original Message -----
From: "Jason Wong" <php-general
gremlins.biz>
To: <php-general
lists.php.net>
Sent: Thursday, September 18, 2003 4:11 PM
Subject: Re: [PHP] matching certain values
> On Thursday 18 September 2003 15:55, Louie Miranda wrote:
> > Im trying to match some words on the value that i have impost on php.
> > But i dont know why it doesnt seem to catch some certain fields.
> >
> > if ($HTTP_USER_AGENT === 'MSIE ')
> >
> > I know something is wrong :(
>
> Did you *try* finding out what is wrong?
>
> Simple things like
>
> echo $HTTP_USER_AGENT
>
> to see what it really contains?
>
> And if you're only matching part of a string you should be using things
like
> strpos() or preg_match() etc.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> A straw vote only shows which way the hot air blows.
> -- O'Henry
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
>
> * Thus wrote Rich Gray (rich
f1central.net):
> > Well a functon that doesn't work under certain conditions should be
> > deprecated IMO ... I haven't used it for a long time now...
>
> this makes absolutly no sense. So if I use a function improperly,
> it should become deprecated?
Er ...I'm not using it improperly I'm just not using it at all. Why? Because
it behaves differently in different operating conditions. Sure I could write
extra code to detect the operating conditions but what's the point? If
globals are off you can't use it as it doesn't work... The manual seems to
make it pretty obvious to me that it should be avoided and even mentions the
function is deprecated in a code example...
>
> session_register() is used in cases where you haver register_globals
> on; it is not useed when it is off.
So are you happy to use session_register() in your code?
attached mail follows:
> * Thus wrote Rich Gray (rich
f1central.net):
> > So your telling me that all variables defined in the global scope are
> > automatically added to the $_SESSION array...?
> > Not true I think....
> >
>
> no. read the documentation, in full.
you're right - I'm sorry I hadn't read it in full...
>
> The soluction to your problem was resolved from the first reply (by
> Chris Shiflett), but you rejected it because of it not making sense
> to you, which seems to be the problem.
Yes, however I was simply asking Chris to explain to me more as it didn't
make sense to me (because I hadn't read the manual fully). I mistakenly
expected the $_SESSION array to hold copies of assigned data not references
to the global namespace variable ... my expectations were based on PHP's
current default behaviour of pass by copy rather than by reference.
It seems with globals on it can become a minefield eg below where a script
happens to define and use a variable with the same name as an entry in the
$_SESSION array...
<?
// script_a.php - developed by dev A
session_start();
$_SESSION['test'] = 'dev A saves some data';
header('Location : script_b.php');
?>
<?
// script_b.php - developed by dev B
session_start();
$test = 'I am another variable in the global scope that happens to have the
same name as a $_SESSION array entry';
print_r($_SESSION); // dev B has just trashed dev A's saved data...
?>
attached mail follows:
Hi,
"Rich Gray" <rich
f1central.net> wrote:
> Well a functon that doesn't work under certain conditions should be
> deprecated IMO
Interesting comment... However, there are TONS of functions that wouldn't work unless the module/extension were enabled during compilation/runtime.
A couple of examples:
http://www.php.net/xslt
http://www.php.net/mbstring
So, just because *those* functions don't work on certain conditions doesn't mean they should be deprecated. ;) Or, maybe I just missed your point :)
- E -
...[snip]...
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
Hi,
I have some problem which php setting on windows platform,
Currently using Windows Xp Pro sp1, IIS 5 ,MySql 3.23
The problem has occured such as
---------------------------------------------------
Notice: Use of undefined constant version - assumed 'version' in
C:\Documents and Settings\User\My Documents\meen\Web\log\install.php on
line 74
Notice: Use of undefined constant sitename - assumed 'sitename' in
C:\Documents and Settings\User\My
Documents\meen\Web\shariah_nuke\mainfile.php on line 88
Notice: Use of undefined constant nukeurl - assumed 'nukeurl' in
C:\Documents and Settings\User\My
Documents\meen\Web\shariah_nuke\mainfile.php on line 89
Notice: Use of undefined constant site_logo - assumed 'site_logo' in
C:\Documents and Settings\User\My
Documents\meen\Web\shariah_nuke\mainfile.php on line 90
Notice: Use of undefined constant slogan - assumed 'slogan' in
C:\Documents and Settings\User\My
Documents\meen\Web\shariah_nuke\mainfile.php on line 91
Notice: Use of undefined constant head - assumed 'head' in C:\Documents
and Settings\User\My Documents\meen\Web\log\login.php on line 10
Notice: Use of undefined constant login_title - assumed 'login_title' in
C:\Documents and Settings\User\My Documents\meen\Web\log\login.php on line
36
---------------------------------------------------------
I guest my php scripts was not correct or inside error then I tryed to
make the correction by editing appear line but the above notice still
remain.
I have used the scripts on internet such as from hotscripts.com
but error notice still appear including php-nuke script from phpnuke.org
I unsure error notice has occured because scripts was not correct or php
setting was not correct.
Then please suggestion me
1. How I make its the correction ?
2. If this problem has occured from wrong setting of php configuration
(php.ini) please tell me the correction.
Thank you
meen
attached mail follows:
My guess would be arrays, without quoted indexes... like $config[nukeurl]
instead of $config['nukeurl']... In php.ini, you would just turn off notices
to get rid of it (all hosts I know of has disabled notices so it works
without problems on hosts)... But the better idea is to just add quotes...
Although, it's not really errors, it's more just tips or something...
--
// DvDmanDT
MSN: dvdmandt
hotmail.com
Mail: dvdmandt
telia.com
"#Meen Shari-Ah#" <s4365212
mor-or.pn.psu.ac.th> skrev i meddelandet
news:Pine.GSO.4.43.0309181504320.6323-100000
mor-or...
>
> Hi,
>
> I have some problem which php setting on windows platform,
> Currently using Windows Xp Pro sp1, IIS 5 ,MySql 3.23
>
> The problem has occured such as
>
> ---------------------------------------------------
> Notice: Use of undefined constant version - assumed 'version' in
> C:\Documents and Settings\User\My Documents\meen\Web\log\install.php on
> line 74
>
> Notice: Use of undefined constant sitename - assumed 'sitename' in
> C:\Documents and Settings\User\My
> Documents\meen\Web\shariah_nuke\mainfile.php on line 88
>
> Notice: Use of undefined constant nukeurl - assumed 'nukeurl' in
> C:\Documents and Settings\User\My
> Documents\meen\Web\shariah_nuke\mainfile.php on line 89
>
> Notice: Use of undefined constant site_logo - assumed 'site_logo' in
> C:\Documents and Settings\User\My
> Documents\meen\Web\shariah_nuke\mainfile.php on line 90
>
> Notice: Use of undefined constant slogan - assumed 'slogan' in
> C:\Documents and Settings\User\My
> Documents\meen\Web\shariah_nuke\mainfile.php on line 91
>
> Notice: Use of undefined constant head - assumed 'head' in C:\Documents
> and Settings\User\My Documents\meen\Web\log\login.php on line 10
>
> Notice: Use of undefined constant login_title - assumed 'login_title' in
> C:\Documents and Settings\User\My Documents\meen\Web\log\login.php on line
> 36
> ---------------------------------------------------------
>
> I guest my php scripts was not correct or inside error then I tryed to
> make the correction by editing appear line but the above notice still
> remain.
>
> I have used the scripts on internet such as from hotscripts.com
> but error notice still appear including php-nuke script from phpnuke.org
> I unsure error notice has occured because scripts was not correct or php
> setting was not correct.
>
>
> Then please suggestion me
>
> 1. How I make its the correction ?
> 2. If this problem has occured from wrong setting of php configuration
> (php.ini) please tell me the correction.
>
>
> Thank you
>
> meen
attached mail follows:
#meen shari-ah# <mailto:s4365212
mor-or.pn.psu.ac.th>
on Thursday, September 18, 2003 1:05 AM said:
Please do not post messages with "Help!!!" as the title. Everyone who
posts to this list needs help in some way. It's much better if you give
a short description of your problem. For example, "can't connect to
database" or "need to optimize this code", etc.
thanks,
c.
attached mail follows:
I know a few have already done this on the list but I have read articles
on Zend tried other functions done everything I can, de-bugged till I'm
blue in the face and still haven't been able to solve this.
I need to protect files by leaving them outside the web root.
I call them up ok. (the link is get.php?file=EventNotifcation_01.pdf)
I can download the file fine by right clicking the link in the browser
and saving it to disk.
My problem is I can't view it inline. IE in the browser. It's a PDF file
so I should be able to.
This is the code that processes:
<?
// path to file outside of root.
define('FILEDIR', '/home/.sites/144/site281/downloads/');
$path = FILEDIR . $file;
//check that this file exists and that it doesn't include
//any special characters
if(!is_file($path) OR !eregi('^[A-Z_0-9][A-Z_0-9.]*$', $file))
{
header("Location: error.php");
exit();
}
/*
** //check that the user has permission to download file
** if(user does not have permission)
** {
** //redirect to error page
** header("Location: error.php");
** exit();
** }
*/
// get the extension of the file
$p = explode('.', $file);
$extension = $p[sizeof($p)-1];
switch ($extension)
{
// define headers depending on $extension variable.
case "pdf" :
header("Content-type: application/pdf");
header("Content-disposition: inline;
filename=\"".basename($file));
break;
case "txt" :
header("Content-type: text/plain");
header("Content-disposition: inline;
filename=\"".basename($file));
break;
default :
// force download dialog if no extension defined.
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=\"$file\"");
break;
}
header("Content-transfer-encoding: binary");
header("Content-length: " . filesize($path));
header("Cache-control: must-revalidate");
//send file contents
$fp=fopen($path, "r");
fpassthru($fp);
// debug - remove the headers and test output vars.
/*echo "Extension is $extension";
echo "<br>File is $file";
echo "<br>p is $p";
echo "<br>path is $path";
echo "<br>FP is $fp";*/
?>
Echoing the vars results in:
Extension is pdf
File is EventNotification_01.pdf
P is Array
Path is /home/.sites/144/site281/downloads/EventNotification_01.pdf
FP is Resource is #1
Has anyone got any clue what the problem is?
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
stephen.jackson
violasystems.com
Mobile +358 50 343 5159
attached mail follows:
On Thursday 18 September 2003 16:24, Steve Jackson wrote:
> I know a few have already done this on the list but I have read articles
> on Zend tried other functions done everything I can, de-bugged till I'm
> blue in the face and still haven't been able to solve this.
>
> I need to protect files by leaving them outside the web root.
> I call them up ok. (the link is get.php?file=EventNotifcation_01.pdf)
> I can download the file fine by right clicking the link in the browser
> and saving it to disk.
> My problem is I can't view it inline. IE in the browser. It's a PDF file
> so I should be able to.
[snip]
Have you tried the obvious, such as using browsers other than IE? Or a
different version of IE?
Fact is that there are versions of IE that have broken mime handling.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
modem, adj.:
Up-to-date, new-fangled, as in "Thoroughly Modem Millie." An
unfortunate byproduct of kerning.
[That's sic!]
*/
attached mail follows:
> Have you tried the obvious, such as using browsers other than
> IE? Or a
> different version of IE?
>
So far I've tried IE 6.0.2, IE 5.0, Netscape 7 and they don't work.
> Fact is that there are versions of IE that have broken mime handling.
This I didn't know, so I just tried it on Konqueror running on Linux and
it works. However where do I go from here? One thing that Konqueror
brought up is that get.php is the filename that it gives the file when
trying to save it. Could that be the problem? Get.php is the name of the
script that passes the file but not the name of the file itself.
Finally a step in the right direction but how do I go about solving
this?
Kind regards
Steve.
attached mail follows:
The simple things are the stupidest. One thing I didn't do well enough.
Testing on different machines. I ran numerous tests from my own PC and
numerous tests from a development server using different software. Only
when Jason mentioned Mimetypes did I think about doing more tests on
adifferent machine.
My problem wasn't with the PHP, the server or anything else but with my
fecking version of Adobe Acrobat. After trying to open a different PDF
file I realised my problem. So after a re-boot of my PC everything works
fine.
Thanks for the patience and hope this lesson in my stupidity can help
someone else!
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
stephen.jackson
violasystems.com
Mobile +358 50 343 5159
> -----Original Message-----
> From: Steve Jackson [mailto:stephen.jackson
violasystems.com]
> Sent: 18. syyskuuta 2003 12:19
> To: php-general
lists.php.net
> Subject: RE: [PHP] This is my fourth day of hitting this
> brick wall! Anyone...Purleeeeese help!
>
>
> > Have you tried the obvious, such as using browsers other than
> > IE? Or a
> > different version of IE?
> >
>
> So far I've tried IE 6.0.2, IE 5.0, Netscape 7 and they don't work.
>
> > Fact is that there are versions of IE that have broken mime
> handling.
>
> This I didn't know, so I just tried it on Konqueror running
> on Linux and
> it works. However where do I go from here? One thing that Konqueror
> brought up is that get.php is the filename that it gives the file when
> trying to save it. Could that be the problem? Get.php is the
> name of the
> script that passes the file but not the name of the file itself.
>
> Finally a step in the right direction but how do I go about solving
> this?
> Kind regards
> Steve.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
also, here is a good one to try.
build yourself an error document that gets called when a file that cannot
befound is looked for.
Then in this error document, you perform a check on the file/script name
that was called. If it happens to end with .pdf, then you could assume that
it is going to be a pdf that needs to be displayed. Then you get the name
of the file called and look for it in your directory that contains all your
pdf's. If you find a file in there by the same name, then you can use
readfile or some other file reader to pass the file through.
This should take care of the problem. You might also need to send back some
specific headers to tell the browser what you are sending it, but it should
work even without that being done.
Jim Lucas
----- Original Message -----
From: "Jason Wong" <php-general
gremlins.biz>
To: <php-general
lists.php.net>
Sent: Thursday, September 18, 2003 2:01 AM
Subject: Re: [PHP] This is my fourth day of hitting this brick wall!
Anyone...Purleeeeese help!
> On Thursday 18 September 2003 16:24, Steve Jackson wrote:
> > I know a few have already done this on the list but I have read articles
> > on Zend tried other functions done everything I can, de-bugged till I'm
> > blue in the face and still haven't been able to solve this.
> >
> > I need to protect files by leaving them outside the web root.
> > I call them up ok. (the link is get.php?file=EventNotifcation_01.pdf)
> > I can download the file fine by right clicking the link in the browser
> > and saving it to disk.
> > My problem is I can't view it inline. IE in the browser. It's a PDF file
> > so I should be able to.
>
> [snip]
>
> Have you tried the obvious, such as using browsers other than IE? Or a
> different version of IE?
>
> Fact is that there are versions of IE that have broken mime handling.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> modem, adj.:
> Up-to-date, new-fangled, as in "Thoroughly Modem Millie." An
> unfortunate byproduct of kerning.
>
> [That's sic!]
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Jim Lucas wrote:
> This should take care of the problem. You might also need to send back some
> specific headers to tell the browser what you are sending it, but it should
> work even without that being done.
I think this works only in IE, always send Content-Type.
attached mail follows:
I m going to tear my hair off, I can not solve the problem.. with the stupid
IIS
i got the following error:
The specified CGI application misbehaved by not returning a complete set of
HTTP headers
in php.ini
cgi.rfc2616_headers = 1
cgi.force_redirect = 0
what should I do next ?
attached mail follows:
try cgi.force_redirect = Off.
"nabil" <nabil.attar
aws-syria.com>
09/18/2003 05:28 PM
To: php-general
lists.php.net
cc:
Subject: [PHP] ANY ONE ANSWER ME PLEASE !
I m going to tear my hair off, I can not solve the problem.. with the
stupid
IIS
i got the following error:
The specified CGI application misbehaved by not returning a complete set
of
HTTP headers
in php.ini
cgi.rfc2616_headers = 1
cgi.force_redirect = 0
what should I do next ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Please help!...
I have to use 'apache+php' connect to MSSQL Server 2000 in Windows Server
2003, but there are problem.
Computer A: Windows Server 2003 Enterprise, MSSQL Server 2000 Enterprise,
Computer B: Windows XP Professional, Apache, php ( Web Server )
Computer A <------ network -----> Computer B
I try to write php script such this..
mssql_connect('server','sa','xxxx');
but the result is:
***message: Login failed for user 'sa'. Reason: Not associated with a
trusted SQL Server connection. (severity 14) in ...***
Please help me find out the problem.. m(_ _)m
and sorry for my english language,
+ + + + + + + + + + + + + + + + + + +
[the thing that I did]...
1. I install client part from MSSQL Server CD Installer into Computer B
already and I'm sure for ntwdblib.dll or php_mssql.dll is newest version
that I can find..
2. I set Authentication in MSSQL Server to be 'SQL Server and Windows'
already
+ + + + [ but the problem still happen ] + +
attached mail follows:
Change MS SQL SERVER Authentication's type to SQL Server and Windows
instead of windows only.
"Ongart Wongsanupa" <meng
mengcafe.com>
09/18/2003 04:25 PM
To: php-general
lists.php.net
cc:
Subject: [PHP] [PHP - MSSQL]: Problem with mssql_connect
Please help!...
I have to use 'apache+php' connect to MSSQL Server 2000 in Windows Server
2003, but there are problem.
Computer A: Windows Server 2003 Enterprise, MSSQL Server 2000 Enterprise,
Computer B: Windows XP Professional, Apache, php ( Web Server )
Computer A <------ network -----> Computer B
I try to write php script such this..
mssql_connect('server','sa','xxxx');
but the result is:
***message: Login failed for user 'sa'. Reason: Not associated with a
trusted SQL Server connection. (severity 14) in ...***
Please help me find out the problem.. m(_ _)m
and sorry for my english language,
+ + + + + + + + + + + + + + + + + + +
[the thing that I did]...
1. I install client part from MSSQL Server CD Installer into Computer B
already and I'm sure for ntwdblib.dll or php_mssql.dll is newest version
that I can find..
2. I set Authentication in MSSQL Server to be 'SQL Server and Windows'
already
+ + + + [ but the problem still happen ] + +
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I did it already,. but that's not help
thank for advice..
"Larry Li" <Larry_Li
contractor.amat.com> wrote in message
news:OF9EFCD7D7.0F5DE3BE-ON48256DA5.002F7F55-48256DA5.002F663B
LocalDomain..
.
> Change MS SQL SERVER Authentication's type to SQL Server and Windows
> instead of windows only.
>
>
>
>
>
>
>
>
> "Ongart Wongsanupa" <meng
mengcafe.com>
> 09/18/2003 04:25 PM
>
> To: php-general
lists.php.net
> cc:
> Subject: [PHP] [PHP - MSSQL]: Problem with mssql_connect
>
>
>
> Please help!...
> I have to use 'apache+php' connect to MSSQL Server 2000 in Windows Server
> 2003, but there are problem.
>
> Computer A: Windows Server 2003 Enterprise, MSSQL Server 2000 Enterprise,
>
> Computer B: Windows XP Professional, Apache, php ( Web Server )
>
> Computer A <------ network -----> Computer B
>
> I try to write php script such this..
>
> mssql_connect('server','sa','xxxx');
>
> but the result is:
>
> ***message: Login failed for user 'sa'. Reason: Not associated with a
> trusted SQL Server connection. (severity 14) in ...***
>
> Please help me find out the problem.. m(_ _)m
> and sorry for my english language,
>
> + + + + + + + + + + + + + + + + + + +
> [the thing that I did]...
> 1. I install client part from MSSQL Server CD Installer into Computer B
> already and I'm sure for ntwdblib.dll or php_mssql.dll is newest version
> that I can find..
> 2. I set Authentication in MSSQL Server to be 'SQL Server and Windows'
> already
> + + + + [ but the problem still happen ] + +
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
Hi,
I would like to write a PHP script for request an image file to a TCP server.
The PHP script will receive as a paramter the name of the image, it will
connect to the TCP server using a socket and request the image to it and
store in memory.
Then the PHP script will send the in memory image to the web client that
requested it.
Is it possible to do this with PHP ?
Any guidelines about it ?
Any example that do something like this ?
Greetings.
---
Carles Xavier Munyoz Baldó
carles
unlimitedmail.org
http://www.unlimitedmail.net/
---
attached mail follows:
Hey David,
/#
% Let me explain, when the person registers they wont just recive permission
% to vote but also other things as a control panel will be created for them
to
Good enough. Lots of bells and whistles; that's great.
#/
Yep, without the bells and whistles no challenge for me to program and it
will be like any other site...
and since i still dont really consider myself a good programmer in php,
still learning, this gives me a chance to work more and learn as i go along.
/#
% save their favourite packages from the differient hosts and even compare
the
Excellent!
/#
Thats only the half of it, will send you the link once i get a few hosts to
list their packages coz now there arnt enough test packages for you to
actually see most of the functionality. I made this after thinking of the
trouble i went thru to find some decient hosts, I think i went thru around 9
hosts in the last 2 years before kind of settling down.....
I guess hosts are like women, you think you finally found "the one" but.....
+ they are all GREAT when you start with them but....
:-D
(Ladies am just kidding, dont curse me)
/#
% Nope, its not that you have limited votes, you can vote for each and every
Good.
% host on the site...but just one vote per host, dont you think thats fair?
Nope. What if you have two users on a host?
#/
Of course, nearly every host has more than 2 users :-)) at least if they
want to stay in business but i kind of figured that the users would have
seperate client accounts with me (so seperate control panels) to
vote,add/compare packages etc, if i got the question wrong tell me.
/#
% Let users modify them? what do you mean? if users can modify a vote whats
% the use of a vote?
It depends; it might be a cast-it-once-in-stone kind of vote, or it might
be a running report that stays up to date. Suppose I rank my current
provider very highly but next month they lay off half of their staff and
service goes down the drain; I should be able to change my vote to
reflect their new status if this is something that people will want to
see as worthwhile for more than just a short survey period.
#/
Hmmm, a new bell or whistle i didnt think of, but i think it could be easily
implempted, instead of giving a message "you ahve already voted for this
host, only one vote allowed" etc I can say " you have already voted for this
host on <datetime>, would you like to see your old vote or change it?"
Good idea, i think i'll run with it.
/#Well, if you're going to keep my vote around so that I can change it you
now have to have an entire database record for me. If I'm just throwing
my vote into the pile then you need only keep a running total. The
latter is certainly easier.
#/
Yep, but the former is more intresting :-).
Thats pretty much the whole idea actually, I know i am not the only one in
the world with brilliant ideas (was quite a shock to me when i found out
-D ) and thats why i wrote to the list...if anybody has an idea of what
they would like to see/have....drop me a few lines.
Thanks for the idea/suggestion.
Before i forget, dont get confused with my new /# and #/ to your messages, I
just thought i'll change them everytime to give curt a hard time :-)) lets
see him try to keep up with the variations i come up with.
Cheers,
-Ryan
We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com
attached mail follows:
Ryan, et al --
...and then Ryan A said...
%
% Hey David,
Hiya!
%
% Good enough. Lots of bells and whistles; that's great.
% #/
%
% Yep, without the bells and whistles no challenge for me to program and it
% will be like any other site...
Heh.
% and since i still dont really consider myself a good programmer in php,
% still learning, this gives me a chance to work more and learn as i go along.
Always a good thing :-)
%
%
% /#
% % save their favourite packages from the differient hosts and even compare
% the
% Excellent!
% /#
% Thats only the half of it, will send you the link once i get a few hosts to
% list their packages coz now there arnt enough test packages for you to
Tell me what you mean by hosts and packages. If by 'host' you mean the
provider, I have real experience with DataPipe, Interland, and CIHost to
throw in the pot.
% actually see most of the functionality. I made this after thinking of the
% trouble i went thru to find some decient hosts, I think i went thru around 9
% hosts in the last 2 years before kind of settling down.....
I looooooove my datapipe :-)
%
% I guess hosts are like women, you think you finally found "the one" but.....
% + they are all GREAT when you start with them but....
% :-D
*snort*
%
% (Ladies am just kidding, dont curse me)
Am I guilty just by association? :-)
%
% /#
% % Nope, its not that you have limited votes, you can vote for each and every
% Good.
% % host on the site...but just one vote per host, dont you think thats fair?
% Nope. What if you have two users on a host?
% #/
%
% Of course, nearly every host has more than 2 users :-)) at least if they
% want to stay in business but i kind of figured that the users would have
% seperate client accounts with me (so seperate control panels) to
% vote,add/compare packages etc, if i got the question wrong tell me.
No, it's probably right... You meant one vote-per-person regarding a
particular host==provider. Right? I thought that you were still
referring to the IP address.
%
% service goes down the drain; I should be able to change my vote to
% reflect their new status if this is something that people will want to
% see as worthwhile for more than just a short survey period.
% #/
%
% Hmmm, a new bell or whistle i didnt think of, but i think it could be easily
*grin*
% implempted, instead of giving a message "you ahve already voted for this
% host, only one vote allowed" etc I can say " you have already voted for this
Yep.
% host on <datetime>, would you like to see your old vote or change it?"
All you have to do is store all of the vote info pertinent to the user.
% Good idea, i think i'll run with it.
Happy to help :-)
%
%
% /#Well, if you're going to keep my vote around so that I can change it you
% now have to have an entire database record for me. If I'm just throwing
% my vote into the pile then you need only keep a running total. The
% latter is certainly easier.
% #/
% Yep, but the former is more intresting :-).
Indeed!
% Thats pretty much the whole idea actually, I know i am not the only one in
% the world with brilliant ideas (was quite a shock to me when i found out
*grin*
% -D ) and thats why i wrote to the list...if anybody has an idea of what
% they would like to see/have....drop me a few lines.
There ya go.
%
% Thanks for the idea/suggestion.
Sure thing!
%
% Before i forget, dont get confused with my new /# and #/ to your messages, I
% just thought i'll change them everytime to give curt a hard time :-)) lets
% see him try to keep up with the variations i come up with.
*grin*
%
% Cheers,
% -Ryan
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg
justpickone.org * society and not sufficient moral courage.
(work) davidtgwork
justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)
iD8DBQE/ad4NGb7uCXufRwARAlV9AKDDnLaygOHXXylmoxmD/rFenzP6TgCfQoGr
ylCDWbwAnP2WPUvrkHXmTRk=
=o3LV
-----END PGP SIGNATURE-----
attached mail follows:
"Chris W. Parker" <cparker
swatgear.com> wrote:
> - Edwin - <mailto:copperwa11s
yahoo.co.jp>
> on Tuesday, September 16, 2003 5:53 PM said:
>
> This japanese page thing was a project I started at home so now that I'm
> at work I'll do my best to respond using my memory (good luck, me!).
>
> > Did you check if the Japanese characters are readable inside
> > html-kit? In other words, Japanese characters should appear as it is
> > inside your editor...
>
> No the japanese characters did not appear correctly.
Ok, there is/was an issue with html-kit not showing Japanese characters properly but they are *still* Japanese. Anyway,...
> >> 7. Save the page
> >
> > Did you save it as euc-jp or shift_jis?
>
> No. I don't think there is that option in html-kit, but I think that
> this may be the key.
Maybe. But since I haven't used html-kit that much, and I don't really know how it saves the files, most probably it saves it shift_jis (sjis) so it worked when you used header().
...[snip]...
> >> A friend later figured out that the header() declaration at the top
> >> of the page was what made the difference.
> >
> > Did this one work for you?
>
> Yes, adding the header() made the page display correctly from my server.
Then, most likely, the correct charset wasn't properly defined inside the <head> tags.
...[snip]...
> > Btw, iirc, phpedit on Win2k worked for me. Just make sure that you
> > have Japanese fonts (and an IME) installed and you chose the correct
> > (default) font for phpedit. This works even if you have on English
> > version of Win2k (or XP).
>
> Oh cool. I have that already so I'll try it out.
Great! but choosing the default font for phpedit is bit tricky. You won't "see" the names of the Japanese fonts inside the drop-down menu as they appear as blank lines or with an "
" sign in front. Just do a trial-and-error and soon you'll find one that works.
And oh btw, there's Quanta for Windows available at thekompany.com. You have to pay for it though... But not much ;)
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
We have multiple PHP apps running on different servers. We have
an LDAP authentication based (today) on the apache .htpasswd file which
obliged users to log on. This solution is not very "clean". Because we
have different PHP servers (physical and logical), users must
authenticate many times in order to log on some applications of the same
"group".
Is there a solution for this situation? We are running PHP 4.3.1/4.3.3
over apache 1.3.27/1.3.28 on Sun systems (SunOS 5.6).
More over, there are some apps writed in JAVA (WebSphere & IBM HTTP SRV)
technologies which are in the same workgroup for political reason (We
can't imagine making them in PHP ...). If the first solution exist
(making a SSO for all PHP apps), is a second solution for PHP/JAVA SSO
could be imagined?
Many thanks in advance.
(o_ BENARD Jean-Philippe - Consultant STERIA Infogérance
(o_ (o_ //\ RENAULT DTSI/ODPS/R
D * ALO * API : MLB 02C 1 14
(/)_ (\)_ V_/_ 2 Av du vieil étang * 78181 MONTIGNY-LE-BRETONNEUX
Tél : 01-30-03-47-83 * Fax : 01-30-03-42-10
attached mail follows:
On Thursday 18 Sep 2003 10:29, BENARD Jean-philippe wrote:
> We have multiple PHP apps running on different servers. We have
> an LDAP authentication based (today) on the apache .htpasswd file which
> obliged users to log on. This solution is not very "clean". Because we
> More over, there are some apps writed in JAVA (WebSphere & IBM HTTP SRV)
> technologies which are in the same workgroup for political reason (We
> can't imagine making them in PHP ...). If the first solution exist
You could change to PHP sessions, and use an SQL backend to store the
session data. Writing a Java handler to read the PHP session data would
not be too hard.
attached mail follows:
Hi Jean-Philippe,
"BENARD Jean-philippe" <jean-philippe.benard-renexter
renault.com> wrote ..
> Is there a solution for this situation? We are running PHP 4.3.1/4.3.3
> over apache 1.3.27/1.3.28 on Sun systems (SunOS 5.6).
> More over, there are some apps writed in JAVA (WebSphere & IBM HTTP SRV)
> technologies which are in the same workgroup for political reason (We
> can't imagine making them in PHP ...). If the first solution exist
> (making a SSO for all PHP apps), is a second solution for PHP/JAVA SSO
> could be imagined?
We implemented something like this for Siemens based on SOAP (after wez fixed ext/soap).
The first part, a single database for all user data is simple :
a) all authentification data is hold in the session
b) authentification is done by just one server, the others are served via soap.
The second part is a bit more complicated:
c) if you are already logged in on one server, you can switch to another server by clicking a special link who establishes a new session on the remote server and gives back a token. then the user gets redirected to a special url on the remote server - using the one-time-token - and he gets connected to the new session
d) if c) doesn't work: after b) the server does a redirect to the authentication server, the user gets a cookie there and redirected back.
When he switches to another server, the redirect to the authentication server is done again, and, if a cookie exists, a session on the other server is established.
Afaik Microsoft uses the d) workflow for passport.
Feel free to contact me by PM if you got any questions.
best regards,
johann
--
Johann-Peter Hartmann http://thinkphp.de
attached mail follows:
Hey Guys,
I discovered a possible bug with the $_FILES super global and thought I'd pass it along to you guys to double check the accuracy of this being a bug before I reported it to the PHP team. So here goes..
The default format for $_FILES is $_FILES['variable']['element'] which of course works fine, following this format I would assume that the format for a variable inside an array would be $_FILES['array']['variable']['element'] but on the contrary it is in fact $_FILES['array']['element']['variable']. Somehow this doesn't seem quite right to me. Granted, it still works just as well but it sort of breaks the traditional naming structure for an array and really jumbles the logical flow of things. Do you think this is worth reporting?
Regards,
Nathan Taylor
attached mail follows:
HI,
Te first time i switched from $userfile_** to $_FILES i spent hours
pulling my hair out trying to figure out why my arrays were not getting
populated. I too felt like reporting it but decided against is because
someone is sure to say 'this is a feature not a bug' :-))
Nathan Taylor wrote:
>Hey Guys,
>
>I discovered a possible bug with the $_FILES super global and thought I'd pass it along to you guys to double check the accuracy of this being a bug before I reported it to the PHP team. So here goes..
>
>The default format for $_FILES is $_FILES['variable']['element'] which of course works fine, following this format I would assume that the format for a variable inside an array would be $_FILES['array']['variable']['element'] but on the contrary it is in fact $_FILES['array']['element']['variable']. Somehow this doesn't seem quite right to me. Granted, it still works just as well but it sort of breaks the traditional naming structure for an array and really jumbles the logical flow of things. Do you think this is worth reporting?
>
>Regards,
>Nathan Taylor
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
Hi all,
I use RedHat9.0 with Apache 2.0.40 & PHP 4.2.2
and I have problem with parsing URL variables...
I use this URL: http://my.domain.mine/index.php?var1=value1&var2=value2
and this is my index.php
<?php
echo "var1: $var1" ;
echo "var2: $var2" ;
phpinfo();
?>
Output of this page is without expansion of my variables var1, var2 at section "echo"
but phpinfo expand this:
_GET["var1"] value1
_GET["var2"] value2
Any idea?
THANKS.
attached mail follows:
Hi,
hiaer
azrael.sk wrote:
> Hi all,
>
> I use RedHat9.0 with Apache 2.0.40 & PHP 4.2.2
> and I have problem with parsing URL variables...
>
> I use this URL: http://my.domain.mine/index.php?var1=value1&var2=value2
>
> and this is my index.php
>
> <?php
> echo "var1: $var1" ;
> echo "var2: $var2" ;
>
> phpinfo();
> ?>
>
> Output of this page is without expansion of my variables var1, var2 at section "echo"
> but phpinfo expand this:
>
> _GET["var1"] value1
> _GET["var2"] value2
>
> Any idea?
Try this:
<?php
echo "var1: {$_GET['var1']}";
echo "var2: {$_GET['var2']}";
phpinfo();
?>
or this:
<?php
echo 'var1: ' . $_GET['var1'];
echo 'var2: ' . $_GET['var2'];
phpinfo();
?>
If it works, check for "register_globals" in the archives:
http://marc.theaimsgroup.com/?l=php-general
HTH,
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
[snip]
and this is my index.php
<?php
echo "var1: $var1" ;
echo "var2: $var2" ;
phpinfo();
?>
Output of this page is without expansion of my variables var1, var2 at
section "echo"
but phpinfo expand this:
_GET["var1"] value1
_GET["var2"] value2
[/snip]
This is not an error. Register globals is off (which is a Good Thing
TM). var1 and var2 are in the $_GET array because they are "passed" via
a GET method of posting (using the URL). A perusing of the manual at
http://us4.php.net/variables will tell you all you need to know and
more. Please follow all of the links on the page so that the details
will become apparent.
Have a pleasant and productive day.
attached mail follows:
Hi,
I had a request if it is possible to access SAP data from PHP.
If it is, where can I get more info?
Thanks
Nico
attached mail follows:
In article <F086FD28DA
airbus>, php4
nv.jakaranda.co.za says...
> Hi,
>
> I had a request if it is possible to access SAP data from PHP.
>
> If it is, where can I get more info?
>
> Thanks
>
> Nico
>
This google search _may_ be what you are looking for - if SAP is a
database
http://www.google.com/search?q=sap+site:www.php.net&l=en
Cheers
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
attached mail follows:
Hi Nico,
php4
nv.jakaranda.co.za wrote ..
> I had a request if it is possible to access SAP data from PHP.
Yep, you can request data and function calls in both directions via sap-rfc.
> If it is, where can I get more info?
http://saprfc.sourceforge.net/
We use this extension at a customers site for a phprojekt-based crm solution and are happy with it regarding stability and ease of use.
best regards,
johann
--
Johann-Peter Hartmann johann
thinkphp.de
attached mail follows:
In article <20030917155438.37893.qmail
pb1.pair.com>,
simon_whiston
hotmail.com says...
> hi,
>
> I've got this problem when using templates on my localhost. The code works
> on my web server which i rent so the code is fine. I have ran php code for
> mysql functions and other for testing purposes.
>
> Below is the code i used in index.php.
>
> INDEX.PHP
>
> <?php
>
> switch ($page)
>
> {
> default : include "error.txt";
> break;
> case "screenshots" : include "news.txt";
> break;
>
> }
>
>
>
>
> ?>
>
>
> When i type say www.myrentedwebsite.com/index.php?page=main it will display the page main.txt
>
> When i try this on my localhost it displays the error.txt file instead. It doesn't recognize the index.php?>?PAGE=MAIN i think !.
>
> Could anybody help me with this problem because i wanted the localhost for testing purposes.
Is it possible that localhost has register_globals set off? In which case
you need
switch($_GET{'page}) {
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
attached mail follows:
Dear All,
I use Linux box + PHP installed on it and want to
connect/access MS Access database installed on Windows
box. Below are my Questions:
1 What software/driver do I need in Linux box as well
as in Windows box? Where to find such a
software/driver?
2. Do I need compile PHP to be able to connect to MS
Access.
3. Is there manual available for PHP-->Access
function?
Hope to see your reply very soon.
Thanks,
M. Fikri
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
attached mail follows:
[snip]
I use Linux box + PHP installed on it and want to
connect/access MS Access database installed on Windows
box. Below are my Questions:
1 What software/driver do I need in Linux box as well
as in Windows box? Where to find such a
software/driver?
2. Do I need compile PHP to be able to connect to MS
Access.
3. Is there manual available for PHP-->Access
function?
[/snip]
Start here http://us4.php.net/odbc and search for MyODBC on Google.
Have a pleasant and educational day.
attached mail follows:
Hi everyone,
Sorry for this slightly off topic post, however I think it will be an
interesting topic if people can shed more information about this subject.
Everyone is familiar that when one wants to make and e-commerce payment that
the webpage is usually secured (by SSL connection). however if one wanted to
offer something similiar to this type of e-commerce however on a cellphone,
how would one secure the transaction, like SSL does on webpages? Also are
there any companies that you know of that offer this?
thanx in advance.
Angelo
Angelo Zanetti
Cell No: +27 72 441 3355
Tel No: +27 21 464 1363
Fax No: +27 21 464 1371
e-Mail: angelo
zlogic.co.za
Z Logic
e-Business Centre
Cape Technikon
P.O. BOX 652
Cape Town
South Africa
8000
attached mail follows:
I just had to get it out of my system this morning. No offense intended
to anyone, and not directly aimed at anyone. Just had to get it off of
my chest because there have been so many times that it could have been
used since we had that "conversation" a few weeks ago.
*grumble* more coffee needed, may need to start smoking again...
*weak smile* j/k of course...lighten up and as always....
BTW, thanks to the guy who is periodically posting the newbie guide. It
may be paying dividends, but then again I did see a post with a title IN
ALL CAPS WITH NO DETAILS! and another that just said Help!!!!
Have a pleasant, productive, and educational day.
*snicker* feeling better already
attached mail follows:
Jay,
Thank you very much for bringing this up. I think if people cannot be
curteous and cannot obey maliling list rules and etiquette they don't
deserve replies.
Jay Blanchard wrote:
>I just had to get it out of my system this morning. No offense intended
>to anyone, and not directly aimed at anyone. Just had to get it off of
>my chest because there have been so many times that it could have been
>used since we had that "conversation" a few weeks ago.
>
>*grumble* more coffee needed, may need to start smoking again...
>
>*weak smile* j/k of course...lighten up and as always....
>
>BTW, thanks to the guy who is periodically posting the newbie guide. It
>may be paying dividends, but then again I did see a post with a title IN
>ALL CAPS WITH NO DETAILS! and another that just said Help!!!!
>
>Have a pleasant, productive, and educational day.
>
>*snicker* feeling better already
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
attached mail follows:
Quite Right !
So, since I'm not quite a newbie I did not read all the guides .. RTFM (Read
The F*ck!ng Manual) and STFW (Search The F
ck^ng Web) I already knew, but
what does STFA stand for ;)..
Wouter
-----Original Message-----
From: Raditha Dissanayake [mailto:jabber
raditha.com]
Sent: Thursday, September 18, 2003 3:29 PM
To: Jay Blanchard; php-general
lists.php.net
Subject: Re: [PHP] [Newbie Guide] RTFM, STFW, and STFA
Jay,
Thank you very much for bringing this up. I think if people cannot be
curteous and cannot obey maliling list rules and etiquette they don't
deserve replies.
Jay Blanchard wrote:
>I just had to get it out of my system this morning. No offense intended
>to anyone, and not directly aimed at anyone. Just had to get it off of
>my chest because there have been so many times that it could have been
>used since we had that "conversation" a few weeks ago.
>
>*grumble* more coffee needed, may need to start smoking again...
>
>*weak smile* j/k of course...lighten up and as always....
>
>BTW, thanks to the guy who is periodically posting the newbie guide. It
>may be paying dividends, but then again I did see a post with a title IN
>ALL CAPS WITH NO DETAILS! and another that just said Help!!!!
>
>Have a pleasant, productive, and educational day.
>
>*snicker* feeling better already
>
>
>
--
http://www.radinks.com/upload
Drag and Drop File Uploader.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
From: "esctoday.com | Wouter van Vliet" <wouter
esctoday.com>
> So, since I'm not quite a newbie I did not read all the guides .. RTFM
(Read
> The F*ck!ng Manual) and STFW (Search The F
ck^ng Web) I already knew, but
> what does STFA stand for ;)..
Hi newbie. Why don't you search the archives to find out?
---John Holmes...
attached mail follows:
* Thus wrote esctoday.com | Wouter van Vliet (wouter
esctoday.com):
> Quite Right !
>
> So, since I'm not quite a newbie I did not read all the guides .. RTFM (Read
> The F*ck!ng Manual) and STFW (Search The F
ck^ng Web) I already knew, but
> what does STFA stand for ;)..
Archives
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
Wouter van Vliet wrote:
> So, since I'm not quite a newbie I did not read all the guides .. RTFM (Read
> The F*ck!ng Manual) and STFW (Search The F
ck^ng Web) I already knew, but
> what does STFA stand for ;)..
In a "word" : s/STFA/STFAQ/
From ESR's Jargon File v4.4.4 (some hacker culture, yes)
See links for more precise definitions...
RTFM Read The Fucking Manual
http://catb.org/~esr/jargon/html/R/RTFM.html
RTM, Read The Manual
http://catb.org/~esr/jargon/html/R/RTM.html
STFW Search The Fucking Web
http://catb.org/~esr/jargon/html/S/STFW.html
GIYF Google Is Your Friend
http://catb.org/~esr/jargon/html/G/GIYF.html
RTFAQ, Read the FAQ!
http://catb.org/~esr/jargon/html/R/RTFAQ.html
RTFS, Read The Fucking Source or Read The Fucking Standard
http://catb.org/~esr/jargon/html/R/RTFS.html
RTS, Read The Screen
http://catb.org/~esr/jargon/html/R/RTS.html
Perhaps we could add this link to the Newbie Guide
( found this in archives and with s/tuxedo/catb/ )
How To Ask Questions The Smart Way, by Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html
Yes, I like authoritative answers ;-)
Christophe
attached mail follows:
[snip]
Perhaps we could add this link to the Newbie Guide
( found this in archives and with s/tuxedo/catb/ )
How To Ask Questions The Smart Way, by Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html
[/snip]
It is number 9 on the Newbie Guide
attached mail follows:
[snip]
Perhaps we could add this link to the Newbie Guide
( found this in archives and with s/tuxedo/catb/ )
How To Ask Questions The Smart Way, by Eric Steven Raymond
http://www.catb.org/~esr/faqs/smart-questions.html
[/snip]
It is number 9 on the Newbie Guide which (I hit send too) leads me to
proudly announce a brand new thing....
*TA DA!*
RTFNG!
For those of you who are acronym impaired....
Read The F$^%$#^%ing Newbie Guide
Which should cover it all, no?
:)
Having a rainy, but better day, in Texas!
attached mail follows:
Jay Blanchard wrote:
>[snip]
>Perhaps we could add this link to the Newbie Guide
>( found this in archives and with s/tuxedo/catb/ )
>
>How To Ask Questions The Smart Way, by Eric Steven Raymond
>http://www.catb.org/~esr/faqs/smart-questions.html
>[/snip]
>
>It is number 9 on the Newbie Guide which (I hit send too) leads me to
>proudly announce a brand new thing....
>
>*TA DA!*
>
>RTFNG!
>
>For those of you who are acronym impaired....
>
>Read The F$^%$#^%ing Newbie Guide
>
>
Now now.. in polite company we would say:
Read The Fine Newbie Guide :)
(I'd like to think we're pretty polite, in general ;) )
Glenn
--
Glenn E. Sieb
System Administrator
Lumeta Corporation
+1 732 357-3514 (V)
+1 732 564-0731 (Fax)
attached mail follows:
PHP Users - While this is not really on topic it is relevant for all PHP
users. Sign the petition at the link below which will be presented to
ICANN regarding the Verisign abuse of DNS.
http://www.PetitionOnline.com/icanndns/
Rod
attached mail follows:
You need php compiled with openssl support.
http://www.php.net/openssl
Rodrigo Nakahodo wrote:
> Anyone knows how to get a simple(HTML) https response using CURL session.
>
> Thanks a million!!
>
>
> Rodrigo Nakahodo
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
>
attached mail follows:
Hello all,
Does anybody know of a way that i can check to see if a header has already
been sent by a script?
I am currently finishing a class that has a few functions registered with
register_shutdown_function(). They take care of database updates and general
clean up for that object and i want to be able to perform a different action
depending on if, for example, a 'Location:' header has been sent.
Is there any way i can get a list of headers already sent from a script?
I know i could write a custom myHeader() type function that stores the sent
headers in a variable and then read it back but i want something that i can
add to my class and not have to make any changes to other scripts. The class
im currently working on is just supposed to be dropped in and is then
expected to run without the need to update anything else.
Thanks in advance.
--
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
attached mail follows:
I have found something that seems to work:
<?php
header('Location: woof.html');
$h = apache_response_headers();
if(isset($h['Location'])){
header('Location: moo.html');
}
die();
?>
Typical i get stuck on something for ages and then as soon as i post to the
list i figure something out :) oh well hope it helps somebody else.
:)
On Thursday 18 September 2003 15:10, William Bailey wrote:
> Hello all,
>
> Does anybody know of a way that i can check to see if a header has already
> been sent by a script?
>
> I am currently finishing a class that has a few functions registered with
> register_shutdown_function(). They take care of database updates and
> general clean up for that object and i want to be able to perform a
> different action depending on if, for example, a 'Location:' header has
> been sent.
>
> Is there any way i can get a list of headers already sent from a script?
>
> I know i could write a custom myHeader() type function that stores the
> sent headers in a variable and then read it back but i want something that
> i can add to my class and not have to make any changes to other scripts.
> The class im currently working on is just supposed to be dropped in and is
> then expected to run without the need to update anything else.
>
> Thanks in advance.
>
> --
> Regards,
> William Bailey.
> Pro-Net Internet Services Ltd.
> http://www.pro-net.co.uk/
--
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
attached mail follows:
Hello,
Can anyone see what's wrong with the following code? It produces the
following in the browser:
Warning: Cannot add header information - headers already sent by (output
started at /home/.paco/campuscb/campuscorkboard.com/AdPay_MC.php:11) in
/home/.paco/campuscb/campuscorkboard.com/AdPay_MC.php on line 20
Which tells me that something is being written before the
header("Location: " . "AdPayment_MCSuccess.php");
However, I can't figure out what it may be.
*** code starts at line 1 of page ***
<?php require_once('Connections/CCB.php'); ?>
<?php session_start();
$colname_GetMC = "1";
if (isset($_SESSION['svUserID'])) {
$colname_GetMC = (get_magic_quotes_gpc()) ? $_SESSION['svUserID'] :
addslashes($_SESSION['svUserID']);
}
mysql_select_db($database_CCB, $CCB);
$query_GetMC = sprintf("SELECT subid, credit_total FROM member_credits WHERE
subid = %s", $colname_GetMC);
$GetMC = mysql_query($query_GetMC, $CCB) or die(mysql_error());
$row_GetMC = mysql_fetch_assoc($GetMC);
$totalRows_GetMC = mysql_num_rows($GetMC);
?>
<?php
if(isset($_POST['Submit'])){
if($_POST['Submit'] == "Place my Ad"){
include_once('inc_placeAd.php');
// remove 1 credit from member_credits table for each campus
selected
$crdt = $row_GetMC['credit_total'] -
$_SESSION['sv_CampusAdCount'];
$id = $row_GetMC['subid'];
$q = "UPDATE member_credits SET credit_total = $crdt WHERE
subid = $id";
$rUpdate = mysql_query($q, $CCB) or die(mysql_error());
header("Location: " . "Success.php");
exit;
}
}
?>
Thanks,
James
attached mail follows:
From: "James Johnson" <james
primedna.net>
> Can anyone see what's wrong with the following code? It produces the
> following in the browser:
>
> Warning: Cannot add header information - headers already sent by (output
> started at /home/.paco/campuscb/campuscorkboard.com/AdPay_MC.php:11) in
> /home/.paco/campuscb/campuscorkboard.com/AdPay_MC.php on line 20
>
> Which tells me that something is being written before the
> header("Location: " . "AdPayment_MCSuccess.php");
True. It even tells you it's being written (output) on line 11.
> However, I can't figure out what it may be.
>
> *** code starts at line 1 of page ***
> <?php require_once('Connections/CCB.php'); ?>
> <?php session_start();
You're "writing" a line space between those two PHP blocks.
> $colname_GetMC = "1";
> if (isset($_SESSION['svUserID'])) {
> $colname_GetMC = (get_magic_quotes_gpc()) ? $_SESSION['svUserID'] :
> addslashes($_SESSION['svUserID']);
> }
> mysql_select_db($database_CCB, $CCB);
> $query_GetMC = sprintf("SELECT subid, credit_total FROM member_credits
WHERE
> subid = %s", $colname_GetMC);
> $GetMC = mysql_query($query_GetMC, $CCB) or die(mysql_error());
> $row_GetMC = mysql_fetch_assoc($GetMC);
> $totalRows_GetMC = mysql_num_rows($GetMC);
> ?>
>
> <?php
You're writing a couple line breaks here...
> if(isset($_POST['Submit'])){
> if($_POST['Submit'] == "Place my Ad"){
> include_once('inc_placeAd.php');
> // remove 1 credit from member_credits table for each campus
> selected
> $crdt = $row_GetMC['credit_total'] -
> $_SESSION['sv_CampusAdCount'];
> $id = $row_GetMC['subid'];
> $q = "UPDATE member_credits SET credit_total = $crdt WHERE
> subid = $id";
> $Update = mysql_query($q, $CCB) or die(mysql_error());
> header("Location: " . "Su