> We all have our favorite PHP books and resources but there is one tome
> that seems to be missing from the group...a "best practices" book. We
PHP, being server-side, is not difficult. I think the client-side stuff
deserves some books (DOM, Javascript, CSS, XHTML, XML, ) if you want
to save
Anyone ever coded a full business app using PHP and nCurses?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.22.1
^ ^ 15:43:01 up 21 days 17:47 2 users load average: 0.01 0.04 0.00
news://n
>From a Flash 8 ActionScript book I glanced this afternoon, I couldn't
find a table input type, nor a grid class. How does Flash name them?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.22.1
^
Thanks to all.
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.22.1
^ ^ 17:35:01 up 15 days 19:39 1 user load average: 0.03 0.03 0.00
news://news.3home.net news://news.hkpcug.org news://news.new
Does Web 2.0 or maybe 3.0 offer some new types, say something
like a real grid, or maybe a modal child popup?
Java is just a specialized DOM... in my opinion.
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04)
Out of curiosity, is there any effort in creating a new DOM that's
easier for application builders (something like Visual Foxpro)?
Does Web 2.0 or maybe 3.0 offer some new types, say something
like a real grid, or maybe a modal child popup?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \
JavaScript (The main part of AJAX) runs on the client. Using AJAX you
can have it call stuff on your server, but mainly it is client side only.
THX
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.
If the child refers to a file, is it client-side only? I meant it's
nothing like AJAX, right?
Since JS runs on the client, yes.
... or unless the file was cached, right?
I am reading about these stuffs lately. :)
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May
If the child refers to a file, is it client-side only? I meant it's
nothing like AJAX, right?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.22.1
^ ^ 18:44:01 up 14 days 20:48 1 user load aver
What you do is assign the items to an array called, say, items. Then you
use "foreach" in the template to iterate the array, just like you would
in PHP itself. Example 7-8 (Contacts) is pretty close to what you're doing.
Need to take a look first. Thank you. I sincerely want to know how
experts
Is there a template that presents a parent-child
forms, for example, an invoice object which has a header(invoice no,
date, customer code, invoice total) and multiple items (item no, item
name, quantity, price, amount)?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty!
Is there a good book that shows good techniques in coding parent-child
forms, for example, an invoice object which has a header(invoice no,
date, customer code, invoice total) and multiple items (item no, item
name, quantity, price, amount)?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \
> Now if I could flush my Foxpro memory and replace the brain cells with
> PHP books and manuals. :)
Oh... forgot the mess of HTML, XML, Javascript and CSS. This one is a
hard nut to crack
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce
> I have a book case next to me that has three three-foot shelves filled
> with just php, mysql, javascript, css, ajax, html, and accessibility books.
> I could not function without my reference library -- that's why I hate
> job interviews.
I could write a foxpro program in a short period of ti
> E_ALL includes E_NOTICE which is off by default which is just plain
> daft, if you ask me...
Thank you.
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.22.1
^ ^ 17:52:01 up 6 days 19:56 1 use
Thank you. This is horrible as a simple typing mistake ($sucess rather
than $success) would waste me some time hunting down the problem. Foxpro
isn't like this
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.
Is there a parameter in php.ini that requires all variables to be
explicitly initialized, rather than being automatically assigned the
value of false?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.
[EMAIL PROTECTED] wrote:
> I don't see why people need to buy the books. I learned PHP buy
> borrowing one book from the library, then using php.net for more
> advanced functions.
I am basically on the same route, peeking codes from experienced. But I
still wanna believe that there is/was really a
You have to draw the line between:
1. a book
2. a secret
By not allowing customers to sample the book in a bookstore, you would
be selling secrets.
--
.~. Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\
I have to agree with Col on this one. Books are not shareware, freeware
or open source. They are written for profit and anyone wanting to pirate
Not really. You could open a sample book in bookstores, scan the
chapters to decide whether you are gonna buy it. It's not porn magazines
wrapped in
> All I'm really saying is that there are a lot of questionable things out
> there, be it pirated software, books, movies and music, or other even
> more deplorable things. These problems will never, ever be solved by
> locking away the means there has to be the desire to not reach that end.
R
> CREATE TEMPORARY haha ( KEY (field1), KEY (field2) )
> AS
> SELECT po_no, po_date, item_no FROM . WHERE
> Then I don't need the privilege for ALTER TABLE.
I meant I could build index on a temp table without
the privilege to use "ALTER TABLE" by making the index
definitions as part of t
> You didn't send much info along, so I assume you're using some version
> of MySQL 5.0.
Thanks. I figured it out (doesn't need 5.0):
CREATE TEMPORARY haha ( KEY (field1), KEY (field2) )
AS
SELECT po_no, po_date, item_no FROM . WHERE
Then I don't need the privilege for ALTER TABLE.
-
I tried to post to mysql.general, but the message never appeared. So I
am trying my luck here.
How could I build an index for a table created using the "CREATE
TEMPORARY TABLE ... SELECT ... FROM ..." syntax, using an account
without the privilege to use ALTER TABLE?
--
.~. Might. Courage.
> http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/
> How did he/she do it? I meant the modal login window...
I just found that linux.com is using the same trick. :)
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubu
let's say we have the following associative array:
$array = array(
"red" => "ferrari",
"yellow" => "volkswagen",
"green" => "mercedes",
"blue" => "volvo"
);
now: how do i get the key of the next array element (in this case "green")?
$next = ?
Why not define your array with number index as we
> On a sidenote, this has nothing whatsoever to do with PHP, it's
> presentation in a client-browser we're looking at.
I asked here because I believe good PHP programmers are usually
well-versed in client-side stuffs. :)
--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v
> I'm listening to the song now without logging in, just running this in
> the URL bar:
> javascript:floatingWindow.hide();
> and the login window is gone :)
So is there a proper way to create a modal window inside a browser?
--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/
How did he/she do it? I meant the modal login window...
--
@~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.21.5
^ ^ 1
Im using this instruction
header( refresh:'3'; url=./file3.php);
But I got the error that in http://localhost/file3.php does not exists any
page
What's the absolute path to file3.php? If it's in DocumentRoot, then use
"/file3.php" (no dot).
--
@~@ Might, Courage, Vision, SINCERITY. http:/
Interesting reading:
http://wiki.w4py.org/python-vs-php.html
I don't understand those python-over-php advantages at all... possibly
not important. For now, I stick with PHP.
--
.~. Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the
Micro$oft expressed interest in Python. But I don't know whether it's a
trap or bait... :)
I said these because of Foxpro. Micro$oft bought it, improved it. But
now that Micro$oft wanan go .NET, Visual Foxpro was discontinued.
Same thing could happen to Python, since it's not a tool invente
Otherwise you have to start again from scratch in python code (creating
more places for bugs to hide and making the whole thing more complicated).
While they can access the same database, there's nothing else they can
share.
Micro$oft expressed interest in Python. But I don't know whether it's a
yeoh sock yee wrote:
Please unsuscribe me from receving all the PHP email!
Which list?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.21.1
^ ^ 17:07:01 up 14 days 2:0
you have a screen design image file and you want html and css created
from that? if yes, then I don't think you'll find an automated software
doing that... it's just too complicated - for example how can a software
Doesn't have to use an image as a starting point, but something like
this in dBa
Zoltán Németh wrote:
what screen? you mean the client's screen? I think that's basically
nonsense since php is server side.
if I misunderstood what you want then please explain it more clearly
I don't know whether there is a php project that generates codes from
screen designer. :)
--
.~.
I meant I could drop some controls into a form freely and the tool would
automatically generate the HTML+CSS to produce the screen.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) L
[EMAIL PROTECTED] wrote:
I need to do some socket work on a production machine that is constantly
busy so I don't dare re-compile php. Anybody know if it's possible to load
the socket functions dynamically, maybe as if they were in a module?
I think both Fedora Core and Ubuntu do it. Check out
<<< END
some code
END
Bash redirection... :)
Syntax error ;)
Bash uses only 2. PHP uses 3. And I am using this:
$sql="
select ...
from
left join ...
on
where .
";
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplic
<<< END
some code
END
It's heredoc syntax.
http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
Bash redirection... :)
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce
Man-wai Chang wrote:
>> build test failed. Please check the config.log for details.
>> You need to source your DB2 environment before running PHP configure:
>> # . $IBM_DB2/db2profile
>
> so where is your db2profile?
>
did you `export IBM_DB2=x`?
--
.
build test failed. Please check the config.log for details.
You need to source your DB2 environment before running PHP configure:
# . $IBM_DB2/db2profile
so where is your db2profile?
--
.~. Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the For
> $var1 = "Something " + PHP Notice
> $var2 = "Something Hmmm_that";
I wonder whether Smarty's way of specifying variables is based on this...
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu
> Heh, lucky me I was just looking into that earlier today.
> http://us.php.net/manual/en/language.types.string.php
> Around the "Simple Syntax" area.
Foxpro called this Macro Substitution. There is also a eval() function
that works the same.
--
.~. Might, Courage, Vision, SINCERITY. http:
Buesching, Logan J wrote:
> Heh, lucky me I was just looking into that earlier today.
> http://us.php.net/manual/en/language.types.string.php
> Around the "Simple Syntax" area.
Thanks. Foxpro called this macro substitution.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
where can I find the documentation about this "symbol"?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.7
^ ^ 21:22:01 up 6 days 2:08 0 users load average: 1.00 1.00
Any recommendation? Smarty Templates help a bit, but still need lots of
coding...
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.6
^ ^ 22:26:01 up 6 days 5:17 0 user
how do you do string comparison in utf-8? say the user entered a chinese
string the browser and you need to search for the string in the MySQL
table using PHP.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
screenshot of the error:
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.6
^ ^ 19:25:01 up 3 days 2:16 1 user load average: 1.03 1.08 1.08
news://news.3home.net news:/
> Well, show us a part of your code. Do var_dump($value) before you
> enter it into the database, and see if it still says 0x9f54.
The error:
string(2) ""
Duplicate entry '' for key 1
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Fo
> On the other hand, I remember you talked about the type of that
> column to be char(2). Have you specified what encoding it's using?
> Moreover, I hope you're not using legacy encoding like Big5 or GB. Use
> Unicode (UTF-8) if your database is a brand new one.
Unfortunately, I am still usi
itoctopus wrote:
> Note, however, that array_keys is not recursive.
foreach is recursive??? thanks.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.4
^ ^ 20:44:01 up
Man-wai Chang wrote:
> $array = array(1,2,3);
> foreach( $array as &$item );
> foreach( $array as $item );
> print_r( $array );
>
> foreach is a read, not a write, isn't it?
I got it...
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Si
$array = array(1,2,3);
foreach( $array as &$item );
foreach( $array as $item );
print_r( $array );
foreach is a read, not a write, isn't it?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6
Jake McHenry wrote:
> foreach ($myarray as $key => $value)
> {
> echo "$key = $value";
> }
Thanks. I just found that there is an array_key() function.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _
myarray=array()
myarray['a']=1
myarray['b']=1
myarray['c']=1
Is there an iterative way to find out the array index values ('a', 'b'
and 'c') of myarray?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _
>> MySQL? MSSQL? PgSQL?
>> Tijnema
> It seems he wanted to insert a Chinese character with that hex value.
Yes... I tried the insert with PHP, including the use of
mysql_real_escape_string(), but MySQL still gave me a blank only.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux
Anyone knew how to insert this value into a char(2) column?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.4
^ ^ 22:19:01 up 5 days 9:31 0 users load average: 1.04 1.
> queries in the command-line MySQL client. If it works there but not
> through mysqli_query() then you might have a case for asking here.
For the 13081 chinese alphabets I tried, only 1 one failed, and it's
0x9f54. mysqli_query() should have escaped the string for me. So ...
I suppose most PHP p
>> create table temp ( big5 char(2) ) character set big5 collate big5_bin;
>> insert into temp ( big5 ) values ( 0x9f54 );
>> insert into temp ( big5 ) values ( 0x9f53 );
>> The 2nd query will report duplicated key. How should I fix the problem?
> What does this has to do with PHP?
> First of all I
create table temp ( big5 char(2) ) character set big5 collate big5_bin;
insert into temp ( big5 ) values ( 0x9f54 );
insert into temp ( big5 ) values ( 0x9f53 );
The 2nd query will report duplicated key. How should I fix the problem?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linu
In case you want a full ./configure line...
#!/bin/bash
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-config-file-path=/etc \
--enable-track-vars \
--enable-ftp \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--enable-gd-native-ttf \
--enable-memory-limit \
--enable-trans-si
> # rpm -ivh php-5.2.1-1.i386.rpm
> file /etc/pear.conf from install of php-5.2.1-1 conflicts with file
> from package php-pear-1.4.9-4
> file /usr/share/pear/.channels/pear.php.net.reg from install of
> php-5.2.1-1 conflicts with file from package php-pear-1.4.9-4
> file /usr/sha
Alberto Ferreira wrote:
> Teste
>
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.19.2
^ ^ 19:27:01 up 20 days 22:39 0 users load average: 1.07 1.02 1.00
news://news.3
> Do you have any suggestion on WebMail clients written in PHP that is good
> and easy to install?
do a search in http://freshmeat.net
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06)
Anyone got an updated and bug-fixed version? The one I got seems to have
many serious bugs.
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.17.13
^ ^ 19:50:01 up 11 days
> You'd probably have better luck using PHP+PDF Generation Classes of some
> sort if you need precision layouts for printing... With HTML+CSS it will
> still vary depending on the render used...
Not a bad idea. But is there free PHP class to do it?
--
.~. Might, Courage, Vision, SINCERITY. h
How do you guys and gals use PHP+HTML+CSS to print a report to
preprinted forms with precision?
if the report is to be printed at client side, how do you do it? Via
networked printer?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Fo
> That 100% depends on how the cash register works. Is it an NT cash
> register, or an propitiatory one? Is it rs232 or on a network?
> Basically, find out how the cash register can be controlled, then make a
> php script that can fire that control.
Thanks.
It's a RS232 serial register. PHP, ru
to open its drawer?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.17.13
^ ^ 21:43:01 up 1 day 2:37 0 users load average: 0.02 0.03 0.00
news://news.3home.net news://new
Here is the new version:
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.16.20
^ ^ 16:48:01 up 9 days 2:31 1 user load average: 1.02 1.04 1.00
news://news.3home.net ne
Here is the new version:
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.16.20
^ ^ 16:48:01 up 9 days 2:31 1 user load average: 1.02 1.04 1.00
news://news.3home.net news:
It says : everytime page loads submit the form.
And since submitting a form is like reloading a page it will go over and
over again.
Then how could I make it happen once only? I already had a
if..then..else to separate the 2 sections of codes.
--
.~. Might, Courage, Vision, SINCERITY. h
I hit the script by http://server/haha.php?ip=192.168.1.1
But the script entered an endless loop. What's wrong?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.16.20
^ ^
I hit the script by http://server/netgeo.post.php?ip=192.168.1.1
But the script entered an endless loop. What's wrong?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.06) Linux 2.6.16.20
A table with a column big5 char(2) not null primary key.
$target->query("delete from canton");
for ($ii=0; $ii<256; $ii++) {
for ($jj=0; $jj<256; $jj++) {
echo $ii .".". $jj . "\n";
$query="insert into canton ( big5 ) values ( '"
. mysql_real_escape_string(chr($ii).chr($j
76 matches
Mail list logo