|
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 27 Jun 2003 13:16:25 -0000 Issue 2142
php-general-digest-help
lists.php.net
Date: Fri Jun 27 2003 - 08:16:25 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 27 Jun 2003 13:16:25 -0000 Issue 2142
Topics (messages 153047 through 153120):
Re: '/tmp/mysql.sock' error
153047 by: - Edwin -
Re: Cookoo clock
153048 by: - Edwin -
153068 by: azero
Re: Seraching for good Hotel & room booking program.....
153049 by: Giuliano
153099 by: Jay Blanchard
Re: defect tracking systems
153050 by: Ow Mun Heng
PHP Certification
153051 by: Oscar F
153052 by: Stevie Peele
153053 by: Leif K-Brooks
153054 by: Rasmus Lerdorf
153055 by: daniel.electroteque.org
153056 by: Warren Vail
153057 by: daniel.electroteque.org
153059 by: Warren Vail
153096 by: Oscar F
153100 by: Jay Blanchard
Sessions Question
153058 by: Bob Irwin
153060 by: - Edwin -
153067 by: Bob Irwin
153083 by: Ford, Mike [LSS]
session_regenerate_id() -> "Call to undefined function"
153061 by: D. R. Hansen
153062 by: Gerard Samuel
153063 by: Leif K-Brooks
Re: SEARCH ENGINE
153064 by: olinux
Antwort: Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP] Securing PHP code
153065 by: SLanger.spirit21.de
153079 by: Jason Wong
PHP Programmer Needed!
153066 by: Erica Ziegler-Roberts
Setting focus on a textfield
153069 by: Angelo Zanetti
153070 by: Jason k Larson
153088 by: Ernest E Vogelsinger
153097 by: Marek Kilimajer
Differences between classes on Linux and Windows ????
153071 by: Dave Holmes
'Cannot send Headers' Problem!!
153072 by: PHPSpooky
153084 by: Jason Wong
153090 by: PHPSpooky
153095 by: Jason Wong
153101 by: PHPSpooky
153103 by: Jay Blanchard
153104 by: Marek Kilimajer
153112 by: Jason Wong
153119 by: PHPSpooky
Re: Strange output issue
153073 by: Ford, Mike [LSS]
unexpected return from $_POST['foo']
153074 by: Kyle W. Cartmell
153076 by: sven
153080 by: Ford, Mike [LSS]
153081 by: Kyle W. Cartmell
153082 by: Kyle W. Cartmell
Re: Regex Help with -> ?
153075 by: sven
Problem with compile with png
153077 by: Bc. Radek Krejča
Re: Impossible bug! (fwd)
153078 by: Ford, Mike [LSS]
Classes within classes
153085 by: Dave Alger
Serving files with different filename from their own
153086 by: Jason End
153089 by: Jason Wong
[] operator not supported for strings
153087 by: Andrew McCombe
153091 by: Ford, Mike [LSS]
Re: Binary data 65 kb have then as file: 536 KB ??? fwrite ..
153092 by: Marek Kilimajer
print array
153093 by: Dore van Hoorn
153094 by: David Nicholson
Re: Calling PHP from Java usign CGI...
153098 by: Jay Blanchard
mssql_num_rows problem
153102 by: Gary Ogilvie
153105 by: Jay Blanchard
Re: mssql_num_rows problem (Solved)
153106 by: Gary Ogilvie
Just a small question on if statement
153107 by: Gary Ogilvie
153108 by: Adam Voigt
153109 by: Jay Blanchard
Re: Just a small question on if statement - Solved
153110 by: Gary Ogilvie
Using header in if statement
153111 by: Gary Ogilvie
153113 by: Adam Voigt
153116 by: Gary Ogilvie
153118 by: Adam Voigt
List of Variables
153114 by: Thomas Weber
153117 by: Adam Voigt
SORRY
153115 by: Dore van Hoorn
153120 by: Jason Wong
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:
Jean-Christian IMbeault <jc
mega-bucks.co.jp> wrote:
[snip]
> The problem was that the installation instructions for MySQL for vague
> and confusing. I started trying to install from rpm and that didn't
> work. I then installed from the binary and that was hell too. All the
> problems stemmed from the fact that I couldn't figure out where MySQL
> was installing itself too.
[/snip]
Try:
$ rpm -ql <package-name>
--
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
"Sparky Kopetzky" <sparkyk
blackmesa-isp.net> wrote:
> I am in New Mexico and my php system is telling via date() that my timezone is BST (British standard time) and not MST (Mountain Standard Time). Any clue as to why it's doing this??
>
Maybe because your php system is in a BST timezone? Where's the server located anyway?
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
"Sparky Kopetzky" <sparkyk
blackmesa-isp.net> wrote in message
news:000801c33c3c$f727f080$82dbfcd0
blackmesaisp.net...
I am in New Mexico and my php system is telling via date() that my timezone
is BST (British standard time) and not MST (Mountain Standard Time). Any
clue as to why it's doing this??
Or maybe there is wrong time zone setting on your server.
attached mail follows:
Sorry, i try again...
Thanks
----- Original Message -----
From: "Giuliano" <isacchi
isainformatica.com>
To: <php-general
lists.php.net>
Sent: Thursday, June 26, 2003 11:02 AM
Subject: Seraching for good Hotel & room booking program.....
> Hello,
> i am serching for a good program (PHP) that i can use for
> a hotel and apartments booking and billing system.
>
> do you know some? thank you very much in advance,
>
> Giulio
>
attached mail follows:
[snip]
Sorry, i try again...
> Hello,
> i am serching for a good program (PHP) that i can use for
> a hotel and apartments booking and billing system.
>
> do you know some? thank you very much in advance,
>
> Giulio
>
[/snip]
Google is your friend ...
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=hotel+reservation
+system+PHP
HTH
attached mail follows:
I'm looking at mantis..Nice System but not sure if it's what you want. I'm
gonna mod it a bit for my usage in a Drive (FA) Environment.
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-----Original Message-----
From: Martin Balcar [mailto:devconference
2tags.com]
Sent: Thursday, June 26, 2003 5:43 PM
To: php-general
lists.php.net
Subject: defect tracking systems
Hi,
I want to begin to use some of bug tracking systems. I think it can help me
with developing more robust applications and make an easier communication
with my clients. I have tried to use Bugzilla, but It was a little bit
complicated system.
Please help me to choose some....
Regards
Martin
attached mail follows:
Hello,
Does anybody know of any plans for an official certification path for
PHP?. Are they launching something like that anytime soon?. Just curious.
Oscar F.
attached mail follows:
I am new to this list. Does this list also provide help with PHP?
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
attached mail follows:
Stevie Peele wrote:
> I am new to this list. Does this list also provide help with PHP?
Not sure what your post has to do with this thread, but what do you mean
by also? What else does the list do?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
On Thu, 26 Jun 2003, Oscar F wrote:
> Does anybody know of any plans for an official certification path for
> PHP?. Are they launching something like that anytime soon?. Just curious.
Who are "they" ?
Do you mean the developers of PHP in general? Nope, no chance. We write
code, we do not manage world-wide certification programs. Something like
that would be a fulltime job for a whole team of people. Generally you do
it through partners who offer local courses and some sort of standardized
or approved certification test. The oversight of doing this on a global
basis is way beyond what any of us have time for and personally I find the
value of such certification programs extremely questionable.
-Rasmus
attached mail follows:
I find the value of such certification programs
> extremely questionable.
here here :D
attached mail follows:
Certification programs, imho, exist primarily for two reasons;
1. it allows developers with little experience to add credibility to their
claims that they know how to develop software.
2. it allows non-technical people involved in the hiring chain to make
judgements when they have no clue at all how to judge good technical
competence. Course, after you've been around a while, you learn that you
cannot do a proper job of judging anyone's competence, even after many hours
of interviews. The proof is in the project outcome.
3. Ok, I forgot the third reason... Someone will make lots of money selling
training materials and administering the tests. Did you really think
Microsoft got into this side of the business just to improve the quality of
technical consulting.
my 2 cents (ok, maybe 4 cents),
Warren Vail
warren
vailtech.net
-----Original Message-----
From: daniel
electroteque.org [mailto:daniel
electroteque.org]
Sent: Thursday, June 26, 2003 8:15 PM
To: rasmus
lerdorf.com
Cc: lists
webdevfm.com; php-general
lists.php.net
Subject: Re: [PHP] PHP Certification
I find the value of such certification programs
> extremely questionable.
here here :D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
yeh well these exams come in modules , and are extremely pricey , i think
good web examples, screenshots and experience should be enough, sadly i
have not done uni so am frowned upon when looking for work but have
experience in the work force, 4 years in IT now ok thats not enough but i
have fine tuned my programming skills, i am wanting to move in java also
now, i contract also but dont have much on my portfolio to show to get the
jobs , just starting the business side of things and may have to work for
near nothing just to get examples up, so i think portfolio examples are
more important than certification.
> Certification programs, imho, exist primarily for two reasons;
>
> 1. it allows developers with little experience to add credibility to
> their claims that they know how to develop software.
>
> 2. it allows non-technical people involved in the hiring chain to make
> judgements when they have no clue at all how to judge good technical
> competence. Course, after you've been around a while, you learn that
> you cannot do a proper job of judging anyone's competence, even after
> many hours of interviews. The proof is in the project outcome.
>
> 3. Ok, I forgot the third reason... Someone will make lots of money
> selling training materials and administering the tests. Did you really
> think Microsoft got into this side of the business just to improve the
> quality of technical consulting.
>
> my 2 cents (ok, maybe 4 cents),
>
> Warren Vail
> warren
vailtech.net
>
>
> -----Original Message-----
> From: daniel
electroteque.org [mailto:daniel
electroteque.org]
> Sent: Thursday, June 26, 2003 8:15 PM
> To: rasmus
lerdorf.com
> Cc: lists
webdevfm.com; php-general
lists.php.net
> Subject: Re: [PHP] PHP Certification
>
>
> I find the value of such certification programs
>> extremely questionable.
>
> here here :D
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
A working public website, that solves a business problem, is a good
credential. I can't help but wonder if it takes more hours to develop a
respectable site or to study and take an exam. Do you suppose the
certification exam might actually be an easier option?
Warren Vail
warren
vailtech.net
-----Original Message-----
From: daniel
electroteque.org [mailto:daniel
electroteque.org]
Sent: Thursday, June 26, 2003 8:59 PM
To: warren
vailtech.net
Cc: daniel
electroteque.org; rasmus
lerdorf.com; lists
webdevfm.com;
php-general
lists.php.net
Subject: RE: [PHP] PHP Certification
yeh well these exams come in modules , and are extremely pricey , i think
good web examples, screenshots and experience should be enough, sadly i
have not done uni so am frowned upon when looking for work but have
experience in the work force, 4 years in IT now ok thats not enough but i
have fine tuned my programming skills, i am wanting to move in java also
now, i contract also but dont have much on my portfolio to show to get the
jobs , just starting the business side of things and may have to work for
near nothing just to get examples up, so i think portfolio examples are
more important than certification.
> Certification programs, imho, exist primarily for two reasons;
>
> 1. it allows developers with little experience to add credibility to
> their claims that they know how to develop software.
>
> 2. it allows non-technical people involved in the hiring chain to make
> judgements when they have no clue at all how to judge good technical
> competence. Course, after you've been around a while, you learn that
> you cannot do a proper job of judging anyone's competence, even after
> many hours of interviews. The proof is in the project outcome.
>
> 3. Ok, I forgot the third reason... Someone will make lots of money
> selling training materials and administering the tests. Did you really
> think Microsoft got into this side of the business just to improve the
> quality of technical consulting.
>
> my 2 cents (ok, maybe 4 cents),
>
> Warren Vail
> warren
vailtech.net
>
>
> -----Original Message-----
> From: daniel
electroteque.org [mailto:daniel
electroteque.org]
> Sent: Thursday, June 26, 2003 8:15 PM
> To: rasmus
lerdorf.com
> Cc: lists
webdevfm.com; php-general
lists.php.net
> Subject: Re: [PHP] PHP Certification
>
>
> I find the value of such certification programs
>> extremely questionable.
>
> here here :D
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello all,
Thanks for the answers and opinions. If you all put it that way, it
really seems like certifications are just another way for big companies
to make money :) I was not looking for a PHP one as an option to replace
experience, in fact I've been working with PHP for about 3 years now and
have what I consider a lot (maybe not as much as some of you out there)
of experience with it and recently I got a full time job as a PHP
developer and couldn't be hapier with my job :). I was just curious why
the PHP developers or zend hadn't made plans for certifications, I guess
the reason is cleared now. Thanks all!.
Oscar F.-
Warren Vail wrote:
> A working public website, that solves a business problem, is a good
> credential. I can't help but wonder if it takes more hours to develop a
> respectable site or to study and take an exam. Do you suppose the
> certification exam might actually be an easier option?
>
> Warren Vail
> warren
vailtech.net
>
>
> -----Original Message-----
> From: daniel
electroteque.org [mailto:daniel
electroteque.org]
> Sent: Thursday, June 26, 2003 8:59 PM
> To: warren
vailtech.net
> Cc: daniel
electroteque.org; rasmus
lerdorf.com; lists
webdevfm.com;
> php-general
lists.php.net
> Subject: RE: [PHP] PHP Certification
>
>
> yeh well these exams come in modules , and are extremely pricey , i think
> good web examples, screenshots and experience should be enough, sadly i
> have not done uni so am frowned upon when looking for work but have
> experience in the work force, 4 years in IT now ok thats not enough but i
> have fine tuned my programming skills, i am wanting to move in java also
> now, i contract also but dont have much on my portfolio to show to get the
> jobs , just starting the business side of things and may have to work for
> near nothing just to get examples up, so i think portfolio examples are
> more important than certification.
>
>
>
>>Certification programs, imho, exist primarily for two reasons;
>>
>>1. it allows developers with little experience to add credibility to
>>their claims that they know how to develop software.
>>
>>2. it allows non-technical people involved in the hiring chain to make
>>judgements when they have no clue at all how to judge good technical
>>competence. Course, after you've been around a while, you learn that
>>you cannot do a proper job of judging anyone's competence, even after
>>many hours of interviews. The proof is in the project outcome.
>>
>>3. Ok, I forgot the third reason... Someone will make lots of money
>>selling training materials and administering the tests. Did you really
>>think Microsoft got into this side of the business just to improve the
>>quality of technical consulting.
>>
>>my 2 cents (ok, maybe 4 cents),
>>
>>Warren Vail
>>warren
vailtech.net
>>
>>
>>-----Original Message-----
>>From: daniel
electroteque.org [mailto:daniel
electroteque.org]
>>Sent: Thursday, June 26, 2003 8:15 PM
>>To: rasmus
lerdorf.com
>>Cc: lists
webdevfm.com; php-general
lists.php.net
>>Subject: Re: [PHP] PHP Certification
>>
>>
>>I find the value of such certification programs
>>
>>>extremely questionable.
>>
>>here here :D
attached mail follows:
[snip]
3. Ok, I forgot the third reason... Someone will make lots of money
selling
training materials and administering the tests. Did you really think
Microsoft got into this side of the business just to improve the quality
of
technical consulting.
[/snip]
Perhaps we could band together and make money off of this! ***toungue
firmly in cheek***
attached mail follows:
Aside from the fact that bad code can obviously make sessions hackable, what
does everyone think about the security of sessions?
I rely on them fairly heavily for low-mid range security on some of my
scripts, but if I was to do something that involved more sensitive info, are
sessions bullet proof? Can someone forge them somehow?
Bob
Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
attached mail follows:
"Bob Irwin" <bob
staff.pnc.com.au> wrote:
> Aside from the fact that bad code can obviously make sessions hackable, what
> does everyone think about the security of sessions?
>
> I rely on them fairly heavily for low-mid range security on some of my
> scripts, but if I was to do something that involved more sensitive info, are
> sessions bullet proof? Can someone forge them somehow?
I think you'll find related info if you try Google or the archives for
"hijack sessions"
And, talking about "hijacking", you just hijacked this thread which is not good.
http://marc.theaimsgroup.com/?l=php-general&m=105337989306112&w=2
- E -
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
attached mail follows:
Oops.
Forgot to remove the Re: - it was a new thread - I just replied to an old
message to get the php list email address then managed to stuff the subject
up.
Thanks for the help though!
Best Regards
Bob Irwin
*** Email domains
pnc.com.au for speedy email response ***
----- Original Message -----
From: "- Edwin -" <copperwa11s
yahoo.co.jp>
To: "Bob Irwin" <bob
staff.pnc.com.au>
Cc: <php-general
lists.php.net>
Sent: Friday, June 27, 2003 2:39 PM
Subject: Re: [PHP] Sessions Question
>
> "Bob Irwin" <bob
staff.pnc.com.au> wrote:
>
> > Aside from the fact that bad code can obviously make sessions hackable,
what
> > does everyone think about the security of sessions?
> >
> > I rely on them fairly heavily for low-mid range security on some of my
> > scripts, but if I was to do something that involved more sensitive info,
are
> > sessions bullet proof? Can someone forge them somehow?
>
> I think you'll find related info if you try Google or the archives for
>
> "hijack sessions"
>
> And, talking about "hijacking", you just hijacked this thread which is not
good.
>
> http://marc.theaimsgroup.com/?l=php-general&m=105337989306112&w=2
>
> - E -
> __________________________________________________
> Do You Yahoo!?
> Yahoo! BB is Broadband by Yahoo!
> http://bb.yahoo.co.jp/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
>
Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
attached mail follows:
> -----Original Message-----
> From: Bob Irwin [mailto:bob
staff.pnc.com.au]
> Sent: 27 June 2003 08:01
>
> Oops.
>
> Forgot to remove the Re: - it was a new thread - I just
> replied to an old
> message to get the php list email address
That's exactly what you shouldn't do. Most newsreaders, and some email
clients, are capable of tracking the thread no matter what you change the
subject to -- by replying to an existing thread with a new topic, people
usaing those clients see your new message in the middle of the old topic
thread.
If you're posting a new topic, do it with a completely new message. (Why
not use your client's address book or nickname facility to give yourself an
easily-remembered alias for this list?)
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
I am getting a "Call to undefined function" when invoking
session_regenerate_id().
No typos -- I've checked.
Fatal error: Call to undefined function: session_regenerate_id() in
/path_to_my_script/resetsession.php3 on line 5
Running PHP 4.3.1 on RH 8.0 and Apache 2
attached mail follows:
PHP 4 >= 4.3.2
D. R. Hansen wrote:
> I am getting a "Call to undefined function" when invoking
> session_regenerate_id().
>
> No typos -- I've checked.
>
> Fatal error: Call to undefined function: session_regenerate_id() in
> /path_to_my_script/resetsession.php3 on line 5
>
> Running PHP 4.3.1 on RH 8.0 and Apache 2
>
>
>
attached mail follows:
D. R. Hansen wrote:
> I am getting a "Call to undefined function" when invoking
> session_regenerate_id().
>
> No typos -- I've checked.
>
> Fatal error: Call to undefined function: session_regenerate_id() in
> /path_to_my_script/resetsession.php3 on line 5
>
> Running PHP 4.3.1 on RH 8.0 and Apache 2
http://us4.php.net/session_regenerate_id
"(PHP 4 >= 4.3.2)"
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
You might also want to check out htdig or some other
open source search engine (http://www.searchtools.com
has a nice list). This way you can also index static
pages.
http://www.htdig.org
http://www.searchtools.com
olinux
--- Jay Blanchard
<jay.blanchard
niicommunications.com> wrote:
> [snip]
> First, thanks to Jim for the greeat tree-menu, we
> are just editing it.
> Ok, we are doing the tutorial for the Intranet of
> our University. There
> is
> just a lot of information and we want to give the
> user all the ways to
> find
> the information he's looking for. Hence, we need a
> great search engine
> too.
>
> We have all our information stored in a MYSQL
> database. We need a search
> engine to look for the keywords we have in our
> tables and that show the
> related results. Anyone knows a good search engine
> -free- for this
> treat?
> [/snip]
>
> Yes, and you already own it! It is called a full
> text search ...
>
> http://www.mysql.com/doc/en/Fulltext_Search.html
>
> HTH!
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
attached mail follows:
> Set the column type of password to be a char(32). Then, pass the
password
> through md5 to mysql to store it. To verify it, pass the password
through
> md5 then compare it to what's in the database.
This is true for your own authentication but I mean how to connect to the
database using md5. This would especially interest me with mysql since
this is the db I use most often.
THe problem is to store your password as a md5 hash in the database you
have to connect to it. As far as I know you can't pass the connection
password as a md5 hash .
Regards
Stefan Langer
attached mail follows:
On Friday 27 June 2003 15:01, SLanger
spirit21.de wrote:
> This is true for your own authentication but I mean how to connect to the
> database using md5.
You can't. However starting with MySQL 4 you can connect using SSL encryption,
but that would only be of significance if connection is remote.
--
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 lifetime isn't nearly long enough to figure out what it's all about.
*/
attached mail follows:
I am swamped with work and need a php expert who is familiar with IC-Radius
to do the following project for me. If it can be done by Monday, I will be
willing to pay more. You must be able to accept payment through Paypal,
Yahoo Paydirect, or Check/Money Order. Project details are below.
This is a php or cgi script that listens on the proper ports for dialup
authentication requests and replys based on a DB either mysql or flat file
or whatever... just like Microsofts IAS radius server..
we have used this IAS but it is far to manual to be effective...hense this
script..
the radius script needs to be able to update its DB via a post to a URL or
networked to get from the main DB to the machine to be used to run this
script...
I.e..
ADDING...
http://radiusserver/radius.php or
cgi?action=add_user&method=post&radiusweb_username=ADMINUSERNAME&radiusweb_p
assword=ADMINPASSWORD&diapupusername=DIALUPPUSERNAME&diapupuserpassword=DIAL
UPPUSERPASSWORD
DELETING..
http://radiusserver/radius.php or
cgi?Action=delete_user&method=post&radiusweb_username=ADMINUSERNAME&radiuswe
b_password=ADMINPASSWORD&dialupusername=DIALUPPUSERNAME&confirm=yes
The Idea is that as we add and remove customers from the main DB it will
auto add and remove the dialup from the radius DB so customers can login or
not respectivly..
The main DB is Filemaker Pro and we have it running scripts to add and
remove 'post a url' in this fashion to an outsourced Linux box running
ICRADIUS..
We simply want to move this setup or improve it but to run inhouse on
Windows NT 5 machines.. running perl 5.x and Php 4.x
let me know if you are unclear or need more explination on the setup...
--
Erica Ziegler-Roberts
ezroberts
frizzys.com
Manager of Internet Technology
513-232-1689 (office)
513-232-1651 (fax)
FCS (Frizzy's Computer Services)
Customizing technology for you!
attached mail follows:
Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts?
TIA
attached mail follows:
This hardly belongs on the PHP list ... but try looking into JavaScript focus().
--
Jason k Larson
Angelo Zanetti wrote:
> Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts?
>
> TIA
>
attached mail follows:
At 09:42 20.03.2003, Angelo Zanetti said:
--------------------[snip]--------------------
>
>Hi guys how do I set the cursor to start in a particular textfield (password
>field) when my php page starts?
>
>TIA
--------------------[snip]--------------------
This is done with a JavaScript "OnLoad" handler:
<body onload="forms[myform].elements[pass].focus();">
...[page contents]...
<form name="myform" method="post" ...>
<input type="password" name="pass">
</form>
...[more page contents]...
</body>
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
attached mail follows:
A little corection
Ernest E Vogelsinger wrote:
> At 09:42 20.03.2003, Angelo Zanetti said:
> --------------------[snip]--------------------
>
>>Hi guys how do I set the cursor to start in a particular textfield (password
>>field) when my php page starts?
>>
>>TIA
>
> --------------------[snip]--------------------
>
> This is done with a JavaScript "OnLoad" handler:
>
> <body onload="forms[myform].elements[pass].focus();">
<body onload="forms['myform'].elements['pass'].focus();">
> ...[page contents]...
> <form name="myform" method="post" ...>
> <input type="password" name="pass">
> </form>
> ...[more page contents]...
> </body>
>
>
attached mail follows:
Guys,
Hope you can help, we are just porting one of our sites from Windows to
Linux and we are coming up with a
few funny problems with classes under Linux. This is code which works
perfectly on the Windows version of
PHP, we are running version 4.3.2 of PHP on both servers.
This is an example of the code which is causing a problem
===========================================================================
//check to see if the user has specified the file format they wish to
download
if (isset($variables['system_id']))
{
//The file format has been specified setup the current download object and
also
//run the security check against the database.
$_SESSION['data_download']->back_office_system->system_id =
$variables['system_id'];
if (!$_SESSION['data_download']->back_office_system->check_security())
{
//The user does not have security rights to access this object
header('location: data_download_fileformat.php');
exit();
}
}
else
{
//The file format must be specified before they can use this page, check
to see if the user
//has already specified the file format, this may be the case where the
user has hit
//the back button from the confirmation page
if (!$_SESSION['data_download']->back_office_system->check_security())
{
//The user does not have security rights to access this object
header('location: data_download_fileformat.php');
exit();
}
}
===========================================================================
This code generate the following problem
Fatal error: Call to undefined function: check_security() in
/home/atomic/public_html/data_download_xref.php on line 20
===========================================================================
The function does exist and when under windows does indeed check the
security !
The problem appears to be caused by classes having other classes as
properties, in the above code
$_SESSION['data_download'] is a instantiated class stored in the session
$_SESSION['data_download']->back_office_system is an instantiated class
created when the data download class is constructed....
attached mail follows:
Glory!
"Warning: Cannot modify header information - headers already sent by
(output started at /home/unbreaka/public_html/mjs/directory.php:3)
in /home/unbreaka/public_html/mjs/global.inc.php on line 531"
This is the error i'm getting.. when i upload the files on the internet
server and run it on the website.
However, when I run this application on my Apache Web Server on my
system.. same files, same code, same program.. there are no problems at
all. I dont get the error on my system.
I only get this error on the internet, on the website.. why is this?
I'm getting the error for line 531, 532 & 533 on global.inc .. this the
function which includes the code for these 3 lines..
function login($username, $password)
{
setcookie("Links_Cookie_User", $username, time() + 3600);
setcookie("Links_Cookie_Pass", $password, time() + 3600);
header("Location: directory.php");
exit;
}
Help needed!!
Thanks,
PHPSpooky
attached mail follows:
On Friday 27 June 2003 16:01, PHPSpooky wrote:
> "Warning: Cannot modify header information - headers already sent by
Search the archives for causes and resolutions.
--
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
------------------------------------------
/*
Q: What is purple and commutes?
A: An Abelian grape.
*/
attached mail follows:
Glory!
I've already searched through the Archives and I got many results.. I
read through each one of those but I can't correct my problem even so.
I'm using a simple function to login to the Admin section of a
site-index program.. using this function in a long and exhaustive
'global.inc' php page..
function login($username, $password)
{
setcookie("Links_Cookie_User", $username, time() + 3600);
setcookie("Links_Cookie_Pass", $password, time() + 3600);
header("Location: directory.php");
exit;
}
Over the course of the global.inc page, there's a lot of functions with
headers being passed.. none of them giving any problems. The only thing
unique to this function being the "setcookie" function..
I have not found any solution to this..
Secondly, why is it it's giving me the 'cannot modify headers' problem
on the internet server, but not on my computer?
Help still needed!
PHPSpooky
> -----Original Message-----
> From: Jason Wong [mailto:php-general
gremlins.biz]
> Sent: Friday, June 27, 2003 3:20 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP] 'Cannot send Headers' Problem!!
>
> On Friday 27 June 2003 16:01, PHPSpooky wrote:
>
> > "Warning: Cannot modify header information - headers already sent by
>
> Search the archives for causes and resolutions.
>
> --
> 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
> ------------------------------------------
> /*
> Q: What is purple and commutes?
> A: An Abelian grape.
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
On Friday 27 June 2003 18:33, PHPSpooky wrote:
> Secondly, why is it it's giving me the 'cannot modify headers' problem
> on the internet server, but not on my computer?
Obviously there is a difference in the configuration of the two servers.
1) Check the actual output returned to the browser (view source)
2) Check your error reporting settings in PHP, specifically you should disable
display errors and instead log them to a file.
--
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
------------------------------------------
/*
"Of all the tyrannies that affect mankind, tyranny in religion is the worst."
- Thomas Paine
*/
attached mail follows:
Glory,
On the internet server, apart from the beginning tables & html, this is
what I get ..
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>531</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>532</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>533</b><br />
And the code just ends here abruptly. Not a word after this.
On my server, I get the right thing, no problems at all.
What could be different on the Internet Server or Right at my Server
causing this? I don't know if I can make changes to the Server Config on
my Hosting Companies Server..
PHPSpooky
> -----Original Message-----
> From: Jason Wong [mailto:php-general
gremlins.biz]
> Sent: Friday, June 27, 2003 4:50 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP] 'Cannot send Headers' Problem!!
>
> On Friday 27 June 2003 18:33, PHPSpooky wrote:
>
> > Secondly, why is it it's giving me the 'cannot modify headers'
problem
> > on the internet server, but not on my computer?
>
> Obviously there is a difference in the configuration of the two
servers.
>
> 1) Check the actual output returned to the browser (view source)
>
> 2) Check your error reporting settings in PHP, specifically you should
> disable
> display errors and instead log them to a file.
>
attached mail follows:
[snip]
On the internet server, apart from the beginning tables & html, this is
what I get ..
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>531</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>532</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent
by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
<b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
<b>533</b><br />
And the code just ends here abruptly. Not a word after this.
[/snip]
Make ob_start() your first line of PHP code, and ob_end_flush() as the
last line of PHP code, place it on the server and test that. Your
global.inc.php is outputting a header on line 3. It is sending something
to the browser on line 3. What is line 3? If it is setting a cookie it
is outputting a header!
HTH!
Jay
attached mail follows:
Simly go to mjs/directory.php, line 3, and remove any output that is
there, mosty likely some white characters.
PHPSpooky wrote:
> Glory,
>
> On the internet server, apart from the beginning tables & html, this is
> what I get ..
>
> <b>Warning</b>: Cannot modify header information - headers already sent
> by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
> <b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
> <b>531</b><br />
> <br />
> <b>Warning</b>: Cannot modify header information - headers already sent
> by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
> <b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
> <b>532</b><br />
> <br />
> <b>Warning</b>: Cannot modify header information - headers already sent
> by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
> <b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
> <b>533</b><br />
>
> And the code just ends here abruptly. Not a word after this.
>
> On my server, I get the right thing, no problems at all.
> What could be different on the Internet Server or Right at my Server
> causing this? I don't know if I can make changes to the Server Config on
> my Hosting Companies Server..
>
> PHPSpooky
>
>
>>-----Original Message-----
>>From: Jason Wong [mailto:php-general
gremlins.biz]
>>Sent: Friday, June 27, 2003 4:50 PM
>>To: php-general
lists.php.net
>>Subject: Re: [PHP] 'Cannot send Headers' Problem!!
>>
>>On Friday 27 June 2003 18:33, PHPSpooky wrote:
>>
>>
>>>Secondly, why is it it's giving me the 'cannot modify headers'
>
> problem
>
>>>on the internet server, but not on my computer?
>>
>>Obviously there is a difference in the configuration of the two
>
> servers.
>
>>1) Check the actual output returned to the browser (view source)
>>
>>2) Check your error reporting settings in PHP, specifically you should
>>disable
>>display errors and instead log them to a file.
>>
>
>
>
attached mail follows:
On Friday 27 June 2003 20:35, PHPSpooky wrote:
> On the internet server, apart from the beginning tables & html, this is
> what I get ..
What do you mean 'apart from'? That is exactly what the errors below are
complaining about.
> <b>Warning</b>: Cannot modify header information - headers already sent
> by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in
> <b>/home/unbreaka/public_html/mjs/global.inc.php</b> on line
And a search of the archives would have told you exactly what could cause that
to happen and how to solve it. But you've done that already though haven't
you?
--
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
------------------------------------------
/*
The curse of the Irish is not that they don't know the words to a song --
it's that they know them *___all*.
-- Susan Dooley
*/
attached mail follows:
Glory!
Ok what you're saying made sense to me.. unfortunately the problem is
not going away.
I checked out my Directory.php file.. there's a bunch of HTML code that
is responsible for the HTML in that page before the PHP begins, and
before global.inc.php is included in the file.
As I started to erase lines of code.. I quickly learnt that in this
Directory.PHP file.. wherever there is Quote .. " ... it gives that line
in the Warning code..
For example.. the 3rd line of my Directory.php is ..
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
And thus I get this..
Warning: Cannot modify header information - headers already sent by
(output started at /home/unbreaka/public_html/mjs/directory.php:3) in
/home/unbreaka/public_html/mjs/global.inc.php on line 531
If I remove the Meta tag there.. it takes the next line of code which
contains a Quote symbol.. which is quite necessary in our HTML tags..
So now how do I erase this problem.
This is where my php code begins in the directory.php file..
<?
include("global.inc.php"); //Change this if global.inc.php is in a
different directory
This is something like line 53 in my Directory.php file..
I inserted this include code line at the top of the Directory.php file,
but that didn't make any different at all. It was still taking the first
line with Quotes and putting up the warning based on that line.
Is there a replacement for Header that I can use in my function in my
global.inc.php page.. over here..
function login($username, $password)
{
setcookie("Links_Cookie_User", $username, time() + 3600);
setcookie("Links_Cookie_Pass", $password, time() + 3600);
header("Location: directory.php");
exit;
}
Which will do the same.. ? Just a thought.
And lastly, what qualifies for a White Character?
PHPSpooky
> -----Original Message-----
> From: Marek Kilimajer [mailto:kilimajer
webglobe.sk]
> Sent: Friday, June 27, 2003 6:14 PM
> To: phpspooky
mjimm.com
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] 'Cannot send Headers' Problem!!
>
> Simly go to mjs/directory.php, line 3, and remove any output that is
> there, mosty likely some white characters.
>
attached mail follows:
> -----Original Message-----
> From: John Luxford [mailto:lux
simian.ca]
> Sent: 26 June 2003 18:15
>
> Thanks for the info. The problem is that I'm trying to output an M3U
> file to stream a series of MP3s, and some players won't
> properly parse
> the output due to the first line containing that chunk info.
> Is there
> a way to turn it on and off that you know of?
Well as this is an HTTP protocal layer setting, I'd guess it would have to be in your Web server configuration -- beyond that, I'm sorry I haven't a clue.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
Given a page containing a form which posts data to another page...
<HTML>
<BODY>
Please enter a string.<BR>
<FORM method="post" action="nextpage.php">
<INPUT type="text" name="wakka">
<INPUT type="submit" name="submit">
</FORM>
</BODY>
</HTML>
And a page which accepts this data...
<HTML>
<BODY>
<?PHP
echo $_POST['wakka'];
?>
</BODY>
</HTML>
If I type "blueberry_muffins" into the text field and click submit, the resulting output is as follows...
blueberry_muffinswakka=blueberry_muffins
However the output I expected was, of course...
blueberry_muffins
Have you ever seen anything like this?
Am I doing something wrong?
Do you need more information?
Thanks! :)
Kyle W. Cartmell
- a mildly confused PHP newb
attached mail follows:
strange.
look into the sourcecode of your output-page, whether there is more
information (html-tags, i.e.).
and try var_export($_POST); instead of you echo to see what information come
with post.
maybe it's your server/php config. your code works for me.
ciao SVEN
"Kyle W. Cartmell" <banyanvines
hotmail.com> schrieb im Newsbeitrag
news:000c01c33c89$2ee806d0$6401a8c0
shippo...
Given a page containing a form which posts data to another page...
<HTML>
<BODY>
Please enter a string.<BR>
<FORM method="post" action="nextpage.php">
<INPUT type="text" name="wakka">
<INPUT type="submit" name="submit">
</FORM>
</BODY>
</HTML>
And a page which accepts this data...
<HTML>
<BODY>
<?PHP
echo $_POST['wakka'];
?>
</BODY>
</HTML>
If I type "blueberry_muffins" into the text field and click submit, the
resulting output is as follows...
blueberry_muffinswakkaueberry_muffins
However the output I expected was, of course...
blueberry_muffins
Have you ever seen anything like this?
Am I doing something wrong?
Do you need more information?
Thanks! :)
Kyle W. Cartmell
- a mildly confused PHP newb
attached mail follows:
> -----Original Message-----
> From: Kyle W. Cartmell [mailto:banyanvines
hotmail.com]
> Sent: 27 June 2003 09:51
>
> If I type "blueberry_muffins" into the text field and click
> submit, the resulting output is as follows...
>
> blueberry_muffinswakka=blueberry_muffins
>
> However the output I expected was, of course...
>
> blueberry_muffins
>
> Have you ever seen anything like this?
Yes.
> Am I doing something wrong?
Yes -- using the wrong combination of PHP and Apache versions -- this is a known bug with less-recent versions of Apache 2 (not sure if the version of PHP matters, other than that only certain version combinations work anyway).
I suggest you upgrade to the most recent release of PHP, 4.3.2, (if you're not already running it) and the latest compatible version of Apache 2 (check the PHP manual and installation instructions to see what that is). Or upgrade to Apache 1.3.27 ;) -- Apache 2 is still considered to be only beta-quality (at least in combination with PHP).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
When I var_export, I get the following information...
array ( 'wakka' => 'blueberry_muffinswakka=blueberry_muffins', ).
There is no further useful information in the HTML code at all. It's pretty
empty in there.
I've been studying my configuration, but to no avail at this point. I'm not
sure where to even look for this crazy thing. Thinking about clobbering and
stepping back a version or something of that sort. But I'm in pain. :)
[tnx for the thoughts!!]
"Sven" <svenie
gmx.li> wrote in message
news:20030627092142.5390.qmail
pb1.pair.com...
> strange.
>
> look into the sourcecode of your output-page, whether there is more
> information (html-tags, i.e.).
> and try var_export($_POST); instead of you echo to see what information
come
> with post.
>
> maybe it's your server/php config. your code works for me.
>
> ciao SVEN
>
> "Kyle W. Cartmell" <banyanvines
hotmail.com> schrieb im Newsbeitrag
> news:000c01c33c89$2ee806d0$6401a8c0
shippo...
> Given a page containing a form which posts data to another page...
>
> <HTML>
>
> <BODY>
>
> Please enter a string.<BR>
>
> <FORM method="post" action="nextpage.php">
> <INPUT type="text" name="wakka">
> <INPUT type="submit" name="submit">
> </FORM>
>
> </BODY>
>
> </HTML>
>
> And a page which accepts this data...
>
> <HTML>
>
> <BODY>
>
> <?PHP
>
> echo $_POST['wakka'];
>
> ?>
>
> </BODY>
>
> </HTML>
>
> If I type "blueberry_muffins" into the text field and click submit, the
> resulting output is as follows...
>
> blueberry_muffinswakka=blueberry_muffins
>
> However the output I expected was, of course...
>
> blueberry_muffins
>
> Have you ever seen anything like this?
> Am I doing something wrong?
> Do you need more information?
>
> Thanks! :)
>
> Kyle W. Cartmell
> - a mildly confused PHP newb
>
>
attached mail follows:
You all rule. Such fast answers. I might have to hang out here more often.
:)
Thanks so much!!
"Mike Ford" <M.Ford
lmu.ac.uk> wrote in message
news:841D90E489448A4F804E1D1B95768BF7D4611B
LIS-EXCHANGE3...
> > -----Original Message-----
> > From: Kyle W. Cartmell [mailto:banyanvines
hotmail.com]
> > Sent: 27 June 2003 09:51
> >
> > If I type "blueberry_muffins" into the text field and click
> > submit, the resulting output is as follows...
> >
> > blueberry_muffinswakka=blueberry_muffins
> >
> > However the output I expected was, of course...
> >
> > blueberry_muffins
> >
> > Have you ever seen anything like this?
>
> Yes.
>
> > Am I doing something wrong?
>
> Yes -- using the wrong combination of PHP and Apache versions -- this is a
known bug with less-recent versions of Apache 2 (not sure if the version of
PHP matters, other than that only certain version combinations work anyway).
>
> I suggest you upgrade to the most recent release of PHP, 4.3.2, (if you're
not already running it) and the latest compatible version of Apache 2 (check
the PHP manual and installation instructions to see what that is). Or
upgrade to Apache 1.3.27 ;) -- Apache 2 is still considered to be only
beta-quality (at least in combination with PHP).
>
> Cheers!
>
> Mike
>
> ---------------------------------------------------------------------
> Mike Ford, Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Beckett Park, LEEDS, LS6 3QS, United Kingdom
> Email: m.ford
lmu.ac.uk
> Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
looks like id3v2 ;-)
how about this:
$string = "<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ";
$pattern = "/<\[TIT2\]>([^<]*)/"; // matches anything exept '<'; till '<' or
end of string
preg_match($pattern, $string, $match);
var_export($match);
hint to your regex:
either use quantifier '*' (0-n times) OR '?' (0-1 times)
ciao SVEN
"Gerard Samuel" <gsam
trini0.org> schrieb im Newsbeitrag
news:3EFB48C9.5070903
trini0.org...
> I have a string something like ->
> <[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ
> Im applying a regex as such ->
> // Title/Songname/Content
> preg_match('/<\[TIT2\]>(.*?)(<\[)?/', $foo, $match);
> $title = trim( $match[1] );
>
> The above regex doesn't work. At the end of the pattern Im using (<\[)?
> The pattern may or may not end with <[
> For example searching for -> <[TALB]> XYZ
> The string, is *NOT* expected to hold a certain order as how it is
> retrieved.
> How does one go about to fix up this regex?
>
> Thanks
>
attached mail follows:
Hello,
i can upgrade php from 4.3.1 to 4.3.2. I try to configure with the
same command:
./configure --with-apxs=/usr/local/httpd/bin/apxs --enable-safe-mode --enable-bcmath --enable-calendar --enable-dbase --enable-ftp --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/local/ --with-png-dir=/usr/local/ --with-ttf=/usr/local/ --with-zlib --with-imap --with-mysql --with-mcrypt --with-mhash --with-dbm
With version 4.3.1 it works perfectly, but with 4.3.2 i got this
message:
configure: error: png.h not found.
How can I fix it?
--
S pozdravem,
Bc. Radek Krejča
Starnet, s. r. o.
radek
ceskedomeny.cz
+420 608 470980
http://www.ceskedomeny.cz
http://www.skdomeny.com
http://www.starnet.cz
ICQ: 65895541
attached mail follows:
> -----Original Message-----
> From: John Wulff [mailto:johnw
orcasnet.com]
> Sent: 26 June 2003 22:14
>
> Hmph, just not quite doing the trick... If you'd be so kind
> here is the
> complete source to give you a little bigger picture. As you
> can probably
> see the point of the script is to generate a bar chart of the array.
AAhh, well, now that's a useful clue.
> Thanks so much for the help, let me know what you think!
You've got a lot of near identical repetition -- once for each value in each
month array -- in the body of the loop; whenever I see this, my immediate
thought is "arrays!". You also store essentially Boolean values as
string-representations of integers(!), so here's my first reworking of your
code:
> <?php
> $height = "1";
> $width_bar = "25";
> $width_spacer = "15";
> $colors = array("blue", "red", "green", "purple", "yellow");
>
> $example_data = /* as before */;
>
> /* header HTML and initializations snipped */?>
> while($num <= 100 && $num >= 1)
Not sure why you have the >= 1 test here -- are you expecting to get -ve
values of $num to suppress the chart? And, in any case, why not:
for ( ; $num<=100; $num++)
> {
>
> ?>
>
> <tr>
>
> <?php
> foreach ($example_data as $key=>$value)
> {
>
$month = shift($value);
foreach ($value as $i=>$val)
{
$percent = ($a / $high) * 100;
$color = $percent <= $num;
/* I've switched the test round here -- seems to
* me you were printing colour where you wanted
* whitespace, and whitespace where you wanted
* colour!
*/
>
> ?>
> <td width="<?php print($width_bar); ?>" height="<?php
> print($height);
?>" <?php if($color) { ?>bgcolor="<?php print($color[$i]);
> ?>"<?php } ?>> </td>
> <td width="<?php print($width_spacer); ?>"
> height="<?php
> print($height);
> ?>"> </td>
<?php
}
?>
> <td width="<?php print($width_spacer); ?>"
> height="<?php
> print($height);
> ?>"> </td>
> <td width="<?php print($width_spacer); ?>"
> height="<?php
> print($height);
> ?>"> </td>
> <?php
> }
> ?>
> </tr>
>
> <?php
> $num = $num + 1;
Lose the above line if you use the "for" loop suggestion rather than "while"
> }
> ?>
Furthermore, it seems to me that you have no real need to save the values of
$percent and $color ('cos if you did you'd need to save arrays of them, not
just singletons!), so I'd collapse all of the $percent/$color code into the
if() test further down -- so you'd end up with:
foreach ($value as $i=>$val)
{
?>
<td width="<?php print($width_bar); ?>" height="<?php
print($height);
?>" <?php if(($a / $high) * 100 <= $num)
{ ?>bgcolor="<?php print($color[$i]); ?>"<?php
}
?>> </td>
A couple of final observations:
(1) as written, this will produce vertical bars with 0 at the top -- if you
want zero at the bottom, you need to run the count in the opposite order,
from 100 to 1:
for ($num=100; $num>0; $num--)
(2) I feel sure there must be a method of doing this where you can just
calculate the size of bar required and then just display it all at once, but
I can't quite figure that out off the top of my head -- something to think
about, though!
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
Hiya,
It would be useful for me to be able to use a class within another class and
I don't know if that's permissable in PHP.
Here's an example of what I'm trying to do. Is it just simply not permitted
or am I going about it the wrong way?
Thanks in advance for any help,
Dave
Code follows:
=====================================================================
class CSSFont
{
var $family ='Arial';
var $size ='12pt';
var $style = 'none';
function Output()
{
$out = "\n";
$out .= "font-family:".$this->family.";\n";
$out .= "font-size:".$this->size.";\n";
$out .= "font-style:".$this->style.";\n";
return $out;
}
}
class CSSBorder
{
var $font1= new CSSFont;
var $font2= new CSSFont;
function Output()
{
$out = $this->font1->Output();
$out .= " other stuff goes here ";
$out .= $this->font2->Output();
}
}
=====================================================================
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.491 / Virus Database: 290 - Release Date: 18/06/2003
attached mail follows:
Is there a way to serve files with a different file
name than they actually have?
Here's my situation:
Users can upload software manuals, which are then
saved with a unique name. Their title, filename, type
and id are then save into a db.
But when they go to download a file, they'll of course
see a very cryptic filename in their save as dialog.
Lets say they aren't smart enough to change that name.
So would their be a way to serve a file with a
different name than it's actual one?
thanks,
Jay
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
attached mail follows:
On Friday 27 June 2003 18:11, Jason End wrote:
> Is there a way to serve files with a different file
> name than they actually have?
> Here's my situation:
> Users can upload software manuals, which are then
> saved with a unique name. Their title, filename, type
> and id are then save into a db.
> But when they go to download a file, they'll of course
> see a very cryptic filename in their save as dialog.
> Lets say they aren't smart enough to change that name.
>
> So would their be a way to serve a file with a
> different name than it's actual one?
On a un*x system you can use symlinks.
Otherwise you can have php handle the download, see archives for more info.
--
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
------------------------------------------
/*
Carson's Consolation:
Nothing is ever a complete failure.
It can always be used as a bad example.
*/
attached mail follows:
Hi
Can anyone tell me why i'm getting this error?
Fatal error: [] operator not supported for strings in c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41
[code]:
$rst2=sql_call("SELECT * FROM tmenu WHERE parent=".$r['id']);
// now have array of corporate, entertainment and identity
for ($i=0; $i < mysql_num_rows($rst2); $i++) {
$r=mysql_fetch_array($rst2);
$level2[$i] = $r['name'];
$rst3 = sql_call("SELECT * FROM tmenu WHERE parent=".$r['id']);
while ($a=mysql_fetch_array($rst3)) {
$level2[$i][] = $a['name']; // giving error here
}
}
[/code]
Regards
Andrew McCombe
Interactive Web Solutions (Stafford)
Tel: 01785 279921
-----------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachments are confidential and may
be legally privileged. If you have received this e-mail and you are not
a named addressee, please inform us as soon as possible on
+44 (0) 1785 279920 and then delete the e-mail from your system. If you are
not a named addressee you must not copy, use, disclose, distribute,
print or rely on this e-mail. Any views expressed in this e-mail or any
attachments may not necessarily reflect those of Interactive Web Solutions' management.
Although we routinely screen for viruses, addressees should scan this
e-mail and any attachments for viruses. Interactive Web Solutions makes no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Please note that for the protection of our business, we may monitor and
read e-mails sent to and from our server(s).
attached mail follows:
> -----Original Message-----
> From: Andrew McCombe [mailto:andrew
euperia.com]
> Sent: 27 June 2003 11:18
>
> Can anyone tell me why i'm getting this error?
>
> Fatal error: [] operator not supported for strings in
> c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41
>
> [code]:
>
>
> $rst2=sql_call("SELECT * FROM tmenu WHERE parent=".$r['id']);
> // now have array of corporate, entertainment and identity
>
> for ($i
> $r=mysql_fetch_array($rst2);
> $level2[$i] = $r['name'];
$r['name'] will be a string -- and so, therefore, will $level2[$i] be.
> $rst3 = sql_call("SELECT * FROM tmenu WHERE parent=".$r['id']);
>
> while ($a=mysql_fetch_array($rst3)) {
> $level2[$i][] = $a['name']; // giving error here
$level2[$i] is still a string, and the [] notation when applied to a string
selects an individual character -- but you haven't specified which
character, so this is an error.
Did you mean the first assignment to $level2[$i] to start a new array that
you later add to in the loop? In which case you might want to do
$level2[$i] = array($r['name']);
If you meant something else, you probably need to tell us exactly what it is
you're trying to do, so we can suggest accurate solutions.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
1. Check if the table column is large enough to store the image
2. fflush($FILEID); just before fclosing it.
Gerhard Knapp wrote:
> hi, perhaps someone can help me ...
>
> i store jpgs in a database, then i read them out
> and write them to a tempfile, the sizeinformation says,
> the binary blob = 65.535 bytes, but the jpg file has then
> 768.000 bytes, horrable do dl ...
>
> i expect that i read 65 kb and write 65 kb, thats all ...
>
> ................
> $TEMPFILE = tempnam("./","TMP");
> $TEMPFILE .= ".jpg";
> $FILEID = fopen($TEMPFILE,"wb");
> $BLOBID = ibase_blob_open($R->GRUND_FOTO);
> while ($PIC = ibase_blob_get($BLOBID,10240))
> {
> fputs($FILEID,$PIC);
> }
> fclose($FILEID);
> ibase_blob_close($BLOBID);
> ...................
> best regards
> -Gerhard
>
> B
>
>
>
attached mail follows:
First of all, I'd like to thank you all very much for helping me with my
arra-problem, array_count_values is exactly what i was looking for and it
is working perfectly! But.. print_r(array_count_values($array)) gives something
looking like this:
Array([computer] => 2 [harddrive] => 1 [crash] => 1)
etc..
I would off course like it even better when i was able to print to the values
(word and number) in an HTML table structure, or each new word on a new line
for instance, and without the [ ] and =>. Is this possible, and if so, how
do i solve this?
Thanks again for all you great help!!!!
Dore
+++++++++++++++++++++++++++++++++++
N Dore van Hoorn
S s1000454 AlfaInformatica-RuG
E M.D.van.Hoorn
student.rug.nl
W http://www.let.rug.nl/~s1000454
+++++++++++++++++++++++++++++++++++
attached mail follows:
Hello,
This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 12:10,
lines prefixed by '>' were originally written by you.
> I would off course like it even better when i was able to print to the
> values
> (word and number) in an HTML table structure, or each new word on a
> new line
> for instance, and without the [ ] and =>. Is this possible, and if
> so, how
> do i solve this?
See www.php.net/foreach
echo "<TABLE>\n";
foreach($yourarray as $word=>$count){
echo " <TR><TD>$word</TD><TD>$count</TD></TR>\n";
}
echo "</TABLE>\n";
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)
attached mail follows:
[snip]
Has anyone been able to call php from a servlet (JAVA) using CGI
interface? I am trying to do that here, and everything seems to work
without
problems, except that no data returns from the execution of my scripts.
Any
idea what could be happening? Is there information on how to configure
the
CGI variables in order to be able to call PHP? Thanx in advance...
[/snip]
Is the 'data' being returned to stdout? I suspect so, therefore the
servlet would have to get the returned information from stdout.
HTH!
Jay
attached mail follows:
Hello everyone,
I am trying to grab some data from a table in a database. Here is the
code I am using:
$myServer = "192.92.0.248";
$myUsername = "Admin";
$myPassword = "bluefish";
$myDB = "COMPANY";
$myUser = $_GET['user'];
$myPass = $_GET['pass'];
#print ("$myUser<br>$myPass");
$s = mssql_connect($myServer, $myUsername, $myPassword)
or die;
$d = mssql_select_db($myDB, $s)
or die;
$query = "SELECT * FROM users WHERE user = '$myUser'";
print ("$query");
$result = mssql_query($query)
or die;
$numRows = mssql_num_rows($result);
print ("$numRows");
When printing out the query the correct statement is being sent to
MSSQL. The variable $myUser does in face match what is in the database.
However when I print the variable $numRows I am getting a "0". So no
rows are being sent back - how can this be so when what is being sent to
the database does in fact match a record in the table. I am mostly
puzzled - PHP is set up correctly as I have been using this sort of
thing with other projects.
All help is very deeply appreciated.
Gary
attached mail follows:
[snip]
$numRows = mssql_num_rows($result);
print ("$numRows");
[/snip]
A. print($query); //to make sure it is correct, double check
2. print($numRows); // no quotes, again to test
HTH
attached mail follows:
Thanks a lot Jay
It seems that when a "password" type of form is used then you must send
the password variable to the database instead of the user...Strange but
it works !!
-----Original Message-----
From: Jay Blanchard [mailto:jay.blanchard
niicommunications.com]
Sent: 27 June 2003 13:45
To: Gary Ogilvie; PHP General
Subject: RE: [PHP] mssql_num_rows problem
[snip]
$numRows = mssql_num_rows($result);
print ("$numRows");
[/snip]
A. print($query); //to make sure it is correct, double check
2. print($numRows); // no quotes, again to test
HTH
attached mail follows:
Hi everyone,
I want to make an if statement that works only if the 2 conditions are
correct
It starts as:
If ($myUser == $myReturnedUser)
But I want to add another so that the if statement runs only if $myUser
is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How
do I do this?
Thanks a lot =)
Gary
attached mail follows:
if($myUser == $myReturnedUser && $myPass == $myReturnedPass)
{
}
On Fri, 2003-06-27 at 08:51, Gary Ogilvie wrote:
> Hi everyone,
>
> I want to make an if statement that works only if the 2 conditions are
> correct
>
> It starts as:
>
> If ($myUser == $myReturnedUser)
>
> But I want to add another so that the if statement runs only if $myUser
> is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How
> do I do this?
>
> Thanks a lot =)
>
> Gary
--
Adam Voigt (adam
cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group
attached mail follows:
[snip]
It starts as:
If ($myUser == $myReturnedUser)
But I want to add another so that the if statement runs only if $myUser
is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How
do I do this?
[/snip]
if(($myUser == $myReturnedUser) && ($myPass == $myReturnedPass)){
do stuff
}
HTH
attached mail follows:
Thanks that is great!!
-----Original Message-----
From: Adam Voigt [mailto:adam
cryptocomm.com]
Sent: 27 June 2003 13:55
To: Gary Ogilvie
Cc: 'PHP General'
Subject: Re: [PHP] Just a small question on if statement
if($myUser == $myReturnedUser && $myPass == $myReturnedPass)
{
}
On Fri, 2003-06-27 at 08:51, Gary Ogilvie wrote:
> Hi everyone,
>
> I want to make an if statement that works only if the 2 conditions are
> correct
>
> It starts as:
>
> If ($myUser == $myReturnedUser)
>
> But I want to add another so that the if statement runs only if
$myUser
> is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass.
How
> do I do this?
>
> Thanks a lot =)
>
> Gary
--
Adam Voigt (adam
cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group
attached mail follows:
If I attempt to direct the user to a url with in a if statement using a
header I get the following error message:
Warning: Cannot modify header information - headers already sent by
(output started at c:\inetpub\wwwroot\company_search\admin\login.php:3)
in c:\inetpub\wwwroot\company_search\admin\login.php on line 48
The code I am trying :
if ($myUser == $myReturnedUser && $myPass == $myReturnedPass) {
("Location:
http://192.92.0.248/company_search/admin/admin2.php");
} else {
Is there any other way I can try and do this?
Many thanks
attached mail follows:
Just have it echo, example:
echo "<meta http-equiv=\"refresh\"
content=\"0;url=http://192.92.0.248/company_search/admin/admin2.php\">";
On Fri, 2003-06-27 at 09:03, Gary Ogilvie wrote:
> If I attempt to direct the user to a url with in a if statement using a
> header I get the following error message:
>
> Warning: Cannot modify header information - headers already sent by
> (output started at c:\inetpub\wwwroot\company_search\admin\login.php:3)
> in c:\inetpub\wwwroot\company_search\admin\login.php on line 48
>
> The code I am trying :
>
> if ($myUser == $myReturnedUser && $myPass == $myReturnedPass) {
> ("Location:
> http://192.92.0.248/company_search/admin/admin2.php");
> } else {
>
> Is there any other way I can try and do this?
>
> Many thanks
--
Adam Voigt (adam
cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group
attached mail follows:
I didn't realise you could use echo to run a URL. Thanks for your help
:)
-----Original Message-----
From: Adam Voigt [mailto:adam
cryptocomm.com]
Sent: 27 June 2003 14:08
To: Gary Ogilvie
Cc: 'PHP General'
Subject: Re: [PHP] Using header in if statement
Just have it echo, example:
echo "<meta http-equiv=\"refresh\"
content=\"0;url=http://192.92.0.248/company_search/admin/admin2.php\">";
On Fri, 2003-06-27 at 09:03, Gary Ogilvie wrote:
> If I attempt to direct the user to a url with in a if statement using
a
> header I get the following error message:
>
> Warning: Cannot modify header information - headers already sent by
> (output started at
c:\inetpub\wwwroot\company_search\admin\login.php:3)
> in c:\inetpub\wwwroot\company_search\admin\login.php on line 48
>
> The code I am trying :
>
> if ($myUser == $myReturnedUser && $myPass == $myReturnedPass) {
> ("Location:
> http://192.92.0.248/company_search/admin/admin2.php");
> } else {
>
> Is there any other way I can try and do this?
>
> Many thanks
--
Adam Voigt (adam
cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group
attached mail follows:
Yep, or you could echo Javascript, or you could use output buffering,
any of these will get your pages redirecting.
On Fri, 2003-06-27 at 09:06, Gary Ogilvie wrote:
> I didn't realise you could use echo to run a URL. Thanks for your help
> :)
>
> -----Original Message-----
> From: Adam Voigt [mailto:adam
cryptocomm.com]
> Sent: 27 June 2003 14:08
> To: Gary Ogilvie
> Cc: 'PHP General'
> Subject: Re: [PHP] Using header in if statement
>
> Just have it echo, example:
>
> echo "<meta http-equiv=\"refresh\"
> content=\"0;url=http://192.92.0.248/company_search/admin/admin2.php\">";
>
>