://www.capella.edu/
It sounds like you want to use a while loop and then iterate manually
through both arrays, iterating both arrays once per loop iteration.
Sorry if I've misunderstood the problem.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
on to
the final destination. The idea is to get TCP tunneling working, once
you do that you can rely on other programs to use that TCP tunnel for
more complex things, like SOCKS.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on a full data/time:
echo str_replace(array(am, pm), array(a.m., p.m.), date(g:i a));
which would output something like 12:52 p.m.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mindaugas L wrote:
I'm still new in php:) what about using cookies? nobody mentioned
anything? store info in client cookie, and read it from server the
same time? :))
On 5/24/06, *Adam Zey* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
*snip*
Regards, Adam Zey.
--
PHP
, it ignores the second one. This is useful if your script might
include the same file in different places (perhaps your main script
includes two other scripts which both themselves include functions.php)
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
jekillen wrote:
On May 23, 2006, at 3:37 PM, Adam Zey wrote:
Essentially, I'm looking to write something in the same vein as GNU
httptunnel, but in PHP, and running on port 80 serverside. The
server-client part is easy, since a never-ending GET request can
stream the data and be consumed
Stut wrote:
Adam Zey wrote:
Tunelling arbitrary TCP packets. Similar idea to SSH port forwarding,
except tunneling over HTTP instead of SSH. A good example might be
encapsulating an IRC (or telnet, or pop3, or ssh, etc) connection
inside of an HTTP connection such that incomming IRC traffic
, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
On Tue, May 23, 2006 at 06:37:27PM -0400, Adam Zey wrote:
The data going from client-server needs to be sent over an HTTP
connection, which seems to limit me to PUT and POST requests, since
they're the only ones that allow significant quantities of data to be
sent
missed something.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the next
character, then if I add *, the text selection will expand to show it
matching the rest of the letters, and so on.
Anyhow, I find the feedback as I write a regex to be addictively useful.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
= str_replace(array(!. ?), , $str);
This is especially important if you're doing the string replace in a
loop, but even if you aren't, it is very bad style to use regular
expressions for such a simple replacement.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net
,
Siavash
This has nothing to do with PHP, this is a javascript matter. You PHP
script merely prints out the javascript code.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
directly influence anything on
the client-side. That is why you need to have your PHP script output a
client-side scripting language such as JavaScript. You are still only
executing PHP code on the server.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
script.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aren't
trying to cram 4MB of HTML into some poor user's browser. If you're
getting this data from a database, set a limit to how many records can
be shown, and give the user a form to control the parameters of what
data is returned.
Regards, Adam Zey.
--
PHP General Mailing List (http
and examples you need
in the manual in the pcntl and stream sections.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
information on
obstacles to getting data to the client as it is generated.
As an unrelated note, there is no point in using print for some things
and echo for others. For your uses, you might as well just use echo
for everything.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net
that simplexml_load_string() doesn't care about what type of file
you reported it as (with Content-Type or something). It only cares that
the string you pass it is XML. So if your script is the ONLY one that
will ever get this XML, you don't need to bother with the content type.
Regards, Adam Zey.
--
PHP General
.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
might want to
look into actual HTML parsing libraries, like tidy (which has a PHP module).
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(http://www.tryout.com/1/2/;);
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
chris smith wrote:
On 6/3/06, Adam Zey [EMAIL PROTECTED] wrote:
Rodrigo de Oliveira Costa wrote:
I just discovered the problem I have to retrieve the output of the
site and not the url since its dynamic. Ca I do it like retrieve the
output of this url:
www.tryout.com/1/2/
And of course
to develop again on 5.1.2 to fix the bugs. Not to mention that
any testing done with 5.0.5 is invalid since you can't be sure that
things will behave the same with the different production version. You
may even waste time working around bugs in 5.0.5 that don't exist in 5.1.2.
Regards, Adam Zey
and longblob yet? They both have more capacity. I suggest you
refer to the MySQL manual.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tedd wrote:
-TG:
Thanks for your explanation and time.
Normally, I don't alpha++ anything -- not to criticize others, but to me it
doesn't make much sense to add a number to a character. But considering the
php language is so string aware, as compared to other languages, I just tried
it on
?'even':'odd').br /\n;
I'm not sure if you can nuke the whitespace in the modulus area or not.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has to question why they are
running an old badly written script :)
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
still complaining about it?
You've been shown to do exactly what you want, why is it still a problem?
Heck, if you still really want to do and with strings, you can
easily write your own functions to compare two strings using your own
requirements.
Regards, Adam Zey.
--
PHP General Mailing
the need for your code. It appears that all
your code does is searches through a file for a certain line. Do you
need to do this manually? array_search() will replace your entire for
loop with a single function call, and it'll almost certainly be faster
to boot.
Regards, Adam Zey.
--
PHP
to work with.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)
But since you don't want php files to execute forever you will have to
stick to AJAX.
You can do it without polling. I've seen web applications that open a
neverending GET request in order to get updates to the browser
instantaneously.
Regards, Adam.
--
PHP General Mailing List (http
kartikay malhotra wrote:
Dear Adam,
You can do it without polling. I've seen web applications that open a
neverending GET request in order to get updates to the browser
instantaneously.
Regards, Adam.
Kindly elaborate on neverending GET request. Shall I call the script from
within itself
out or not.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
safer to handle errors before they happen by checking that
you're in a good state before you try to do something.
For example, nonexistent files can be handled by file_exists().
Undefined functions can be checked with function_exists().
Regards, Adam Zey.
--
PHP General Mailing List (http
to just
letting Apache handle the download itself.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the second to last character.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to loop at all.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Which of these has a more readily
apparent meaning?
if ( strcmp($foo,$bar) == 0 )
if ( $foo === $bar )
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SELECT COUNT(*) FROM foo
and reading the result rather than doing SELECT * FROM foo and then
mysql_num_rows(). Don't ask MySQL to collect data if you're not going to
use it! That actually applies to why you shouldn't use mysql_data_seek
either.
Regards, Adam.
--
PHP General Mailing List
to get fancy, you could code your system to prevent new
logins, expire normal logins much faster (Say, after 15 minutes instead
of hours or days), and then wait for all users to be logged out before
continuing.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
?
Because otherwise, if you've denied all access to ANY of your webapp's
php scripts, it shouldn't matter if the user has session data. If you
physically move the web app's PHP scripts (Or set up a redirect, etc),
they can't do anything with it.
Regards, Adam
Ben Liu wrote:
Thanks Adam
be a lot easier to read than
concatenations :)
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and over, USE A
FILTER TO BLOCK THEM. Don't be an asshole and threaten to DDoS/attack
their server. At that point you've just gone from being a victim to the
bad guy, and you don't get any sympathy from people on this list. So,
screw off.
Regards, Adam Zey.
--
PHP General Mailing List (http
Rafael wrote:
(inline)
Adam Zey wrote:
Rafael wrote:
A single = it's an assignment, not a comparison; and though it
sometimes work, you shouldn't compare strings with ==, but using
string functions, such as strcmp()... or similar_text(), etc.
This is PHP, not C. Operators
: [PHP] helping people...
OK, this is just amusing. Somebody over at AIT Batam is obviously an
idiot.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
fields by their names. So if your select query was
SELECT foo, bar FROM mytable, after doing a mysql_fetch_array you
could do this:
echo $row['foo'] . br /;
echo $row['bar'] . br /;
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
for brvbar;
and either replace it with an alternative character (perhaps a ¦
directly), or an empty string to remove it entirely.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
be relevant.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bandwidth savings!
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
checked the PHP docs on how to install
MySQL support for PHP5 on Windows?
http://www.php.net/manual/en/ref.mysql.php
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an if statement will be compiled (So it has to be free of
syntax errors and such), but it won't be executed unless the condition
is true.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with
associative arrays? As in, what is wrong with:
$level[$buildingname]
(I'm only guessing at the correct naming scheme)
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or downloading files. The same would
apply to any other security measure; it'd be just fine to use JavaScript
to discourage multiple clicks, but it wouldn't solve the underlying
problem; he'd still have to solve the problem on the backend.
Regards, Adam.
--
PHP General Mailing List (http
= file_get_contents(http://urloffile.com/filename.xml;);
I mean, that is what you asked, how to read the xml file...
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'to the power of'.
Regards,
Alex.
... The manual is your friend. Seriously, don't come here looking for
all the answers before you checked the manual. I searched for power,
and the first result was the function you want. RTFM.
Regards, Adam Zey.
--
PHP General Mailing List (http
used the others recently. XOR is handy on
occasion, but doesn't really need an operator.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
weetat wrote:
Hi Adam,
Thank for your input.
However search and replace the value such as
![CDATA[ù?¸ü÷úù?àù?ØZ4ÀÏ]] to empty string ? Try the
code below , no successful.
$xmlfile = /home/gvintranet/datacraft/htdocs/properties/test_cdata.xml;
$xml = file_get_contents
a HEAP table (a MySQL table stored entirely in memory),
while updates and inserts went to disk and then were mirrored back into
the HEAP table. There are so many ways to optimize databases, it's insane.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
to do the query asynchronously,
though, since you'd need to output the tags while it was executing.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeo Wee Tat wrote:
Hi Adam,
I can modify the xml file without any error , however when I tried to
unserializer the xml file using PEAR:XML , it gave the error message below.
I have attached my code for your perusal.
Any ideas ? thanks
?php
ini_set('display_errors', E_ALL);
require_once
the topmost
parent so that you could do something simple like selecting ten
superparents and all their children.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
maintained by people at my workplace. Still, it's probably the fastest
POP3 mail fetcher out there.
Regards, Adam Zey.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for a more
sane method of doing this.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on this list is, well, pretty dumb.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
your example relies on getting everything in one query by
getting all posts with the same threadid, and then sorting by ID, but
the problem is that we don't want to sort posts by ID, since a higher ID
might could easily go before a post with a lower ID based on where
people replied.
Regards, Adam
.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to copy it. HOWEVER, if my above supposition about foreach
not copying a reference is correct, you wouldn't need to do this. It's
just a backup plan.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that result is false, and that it is a boolean that is false. It
compares the value AND the type.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a version control
application WRITTEN in PHP, not that supported PHP.
Regards, Adam.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
something
like this?
Thanks for any help.
-- Adam Atlas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've been having a tough time with parsing XML files and special characters.
I have attempted every applicable engine, last try SAX, to attempt at
parsing a (rather large, 17.8mb) xml file.
The problem I hit, is when it hits a UTF8 encoded character. I've
attempted at decoded the file before
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly impossible
road block thats been placed by what seems to be the xml engines :O..
Adam:
I believe that these special character
Adam Hubscher wrote:
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly
impossible road block thats been placed by what seems to be the xml
engines :O..
Adam:
I believe
Steve Clay wrote:
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote:
ee dee da da da? sect;eth; -- those that look like html entities are
the represented characters. I was mistaken, they are html entities,
Can you show us a small chunk of this XML that throws errors?
You said
I have a block of XML that looks as follows:
namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name
Now, if I run that block of XML through htmlentities, I will get the
following:
name*_!_* Røyken VGS *_~_*/name
XML parsers will return a problem, as there is both an unclosed tag and
an invalid tag,
Brian V Bonini wrote:
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
I have a block of XML that looks as follows:
namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name
My question is, can I in any way efficiently (i -stress- efficiently, if
anyone read my previous XML and special characters
it
is in the pear-general archives as this question has been asked and
answered many times.
Adam Ashley
signature.asc
Description: This is a digitally signed message part
dickmeiss Wed Apr 18 08:03:24 2001 EDT
Modified files:
/php4/ext/yaz php_yaz.c
Log:
Function yaz_record returns database for record if type is "database".
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.14
Synopsis: I am writing a management system for a MSSql database driven
game, and I've run into an issue. The community site is located on a
remote webserver, to protect the actual server from any possible
vulnerabilities in the community application/forum application (as we
all have seen the
y are treated as vars of the main URL.
Any help appreciated,
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EM
I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...
Adam
On Tue, 3 Dec 2002, Kevin Stone wrote:
Is it possible you're mistaken somehow? x isn't an operator in PHP.
Executing $a x $b will give you a parse error
If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great.
I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better.
Adam
On Wed, 4 Dec 2002, Vicente Valero wrote:
Hello,
PHP 2.4.3 can work with Apache 2.0.x or I need Apache 1.3.x?
--
PHP
Yes
On Wed, 4 Dec 2002, Vicente Valero wrote:
Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache
1.3.x??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change the directory ownership to the user apache runs as, or make the dir
777.
Adam
On Wed, 4 Dec 2002, [iso-8859-1] Davíð Örn Jóhannsson wrote:
I need to be able to create dirs, chmod and other stuff on the server,
but I get : Warning: MkDir failed (Permission denied
,
but that didn't help
ERROR 1064: You have an error in your SQL syntax near 'mysqldump -h
localhost -u xxx -p xxx backup.sql' at line 1
any ideas?
Adam Voigt [EMAIL PROTECTED] wrote in message
news:[EMAIL
expire after there have been no calls to the DB for a certain time?
Many Thanks,
-Luc
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
signature.asc
Description
many
parameters. Adam's reply implied removing both.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EMAIL PROTECTED
I've been searching the manual for a way to grab the number of
lines in a file and read a particular line from it, however I found no
solution to my problem so I'm wondering if any of you out there could help me
:-)
- CS
--
Adam Voigt ([EMAIL PROTEC
.
Regards,
Vinod.B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http
is register globals enabled?
On Tue, 10 Dec 2002, Shane wrote:
Greetings gang.
You know me, I never ask for help if I haven't checked all my other options, but
this is day two, and I'm getting spanked on this one.
Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an
/028_25.jpg`;
echo $outputp /;
}
$submit= ;
echo new value of submit=$submit;
?
form name=form1 action=?php echo($PHP_SELF) ? method=post
input type=submit name=submit value=Rotate 90
/form
p /
img src = pictures/028_25.jpg
/body
/html
Regards thanks in advance
Adam White
--
PHP General Mailing
Many thanks Ed, works a treat!
Regards
Adam White
Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 18:31
To: Adam White
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to force an image to reload
As one who has had to do the same thing and had
to run the DataObjects install script but it gave a warning that the archive was an old format because there was no package.xml. We have downloaded the most recent TGZ and received the same error when installing locally.
Any ideas?
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG
. =)
http://mysql.nukedweb.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080
/unsub.php
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
signature.asc
Description: This is a digitally signed message part
???
Thanks!
Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http
ee everything that was
passed from the form?
Anyone have an idea?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt ([EM
401 - 500 of 1386 matches
Mail list logo