arr[$key][$subkey]);
}
}
}
using foreach $arr as $key => $data you can get the key/index name as well as
the actual value stored in that part of your array. Then all you have to do is
refer back up to the main array using the current $key/$subkey values as your
indexes.
Basic exam
d performs appropriate DB pull
Voila! (or viola if you're more musical than french)
-TG
= = = Original message = = =
Its been awhile since I tried this so I was wondering if anyone had
any luck with this.
I need to get a list of tables from a database, which means I have to
run a functio
w you'd avoid opening and closing each time
unless you had a back-end server type program running.
-TG
= = = Original message = = =
Ben,
If you grab the resource and store it in a variable, you certainly should be
able to send it via GET or POST. For that matter, you should be able to
s
sed an image for the file name.
Oh well.. guess that Java applet might be the best way then, to keep it cross
platform and all that.
-Tg
= = = Original message = = =
[EMAIL PROTECTED] wrote:
> var myFile = new File("c:\temp\myfile.txt");
> myFile.open("r");
> ale
uot;);
$userinfoQY = "select Name, Address, Phone from users";
$userinfoRS = mysql_query($userinfoQY);
while($userinfoRW = mysql_fetch_assoc($userinfoRS)){
$userinfo = array($userinfoRW['Name'], $userinfoRW['Address'],
$userinfoRW['Phone']);
echo str_repla
nagging at the back of my brain so I
had to do a quick search or two.. hah
-TG
= = = Original message = = =
Hi,
I have been trying _several_ ways to control the size of the files that
can be uploaded in a form.
The problem is that I was able to detect file size after complete file
is tra
Good catch, Chris. I was wondering about that myself but hadn't taken the time
to see if setcookie() used regular serial time or if cookies had another time
standard.
echo date("m/d/Y h:i:s", 15552000);
06/29/1970 08:00:00
That's what I get.
-TG
= = = Original messa
en or heard of any bugs with header() where
it'd mysteriously bomb out in this manner, it's always been something output
and it's always been something people kick themselves for not seeing before. hah
Keep looking, you'll find it.
-TG
= = = Original message = = =
I checke
Check to make sure absolutely nothing before the header() function is outputing
anything. No echos, no prints, no var_dumps, no HTML or even blank lines.
If it's something tangible like an echo or print or something, then putting an
exit()/die() function right before the header() function then
Nope.. you're pretty much stuck using Javascript or processing it all on the
back end with PHP as you described. You could store the data in a database or
a $_SESSION variable but without using something client-side, you're going to
have to juggle it all with PHP.
-TG
= =
ge manager that may not be the
latest update. *shrug*
Either way, the info I sent earlier should get you up and running in no time.
Good luck!
-TG
= = = Original message = = =
[EMAIL PROTECTED] wrote:
>Admittedly I've only dealt with PEAR a little bit, but the two times I
>insta
tgryffyn instead of %s) then obviously other people using it will get
logged as me, and not them.
Just some quick thoughts off the top of my head. Let us know if you come up
with anything good and I'll write later if I get a chance to play with this.
-TG
= = = Original message = = =
I kn
ot;D", "E");
$newcontents = str_replace($searcharr, $replacearr, $contents);
echo $newcontents;
Numbers A, B, C, D and E will be replaced with A, B, C, D, and E
Good luck!
-TG
= = = Original message = = =
Hi all
if I have an array of chars to be replaced array(1,2,3,4,5);
and an
p and didn't feel like using C++ or VB or whatever, and you
(obviously) already have solid PHP knowledge, this can be a real godsend.
Best of luck at the new company, Jay!
-TG
= = = Original message = = =
Howdy group!
As many of you may or may not know, I made the switch to another compan
gt; $arr2) {
if ($arr1['id'] == $arr2['id']) {
# $arr1['selected'] = true;
$_SESSION['arr1'][$key1]['selected'] = true;
}
}
}
Is that what you were trying to do?
-TG
= = = Original message = = =
Hel
plode() and put it into the variables
used in $list. It's been ages since I've messed with *nix /etc/passwd files,
so forgive any inaccuracies in the field names I've used above. You get the
idea though.
Good luck Michelle!
-TG
= = = Original message = = =
Hello,
I am se
hts/info anyone?)
I feel somewhat vindicated now at my use of echo "blah $something blah" versus
print 'blah ' . $something . ' blah', which is the standard used in the code I
inherited. hah
Anyway, thanks again Satyam for the rundown. It's greatly appreciated
the "whatever your style dictates" category. I prefer double
quotes because I think it visually delineates the code better and I think
"$firstname $lastname" looks tidier than $firstname . ' ' . $lastname even
though I do consider it slightly looser coding practic
ts would be helpful here.
-TG
= = = Original message = = =
Hello
I have the following code:
($b + $c))
// do the second thing
elseif ($a < ($b + $c))
// do the third thing
?>
Each of the three variables is derived by some earlier calculation, but for
testing purposes I have made s
re if Rubem has explored this yet)
of making Winbinder more of a universal Windows API interface that could be
used with PERL, Python, etc like some other projects have done.
So much potential.
Anyway, my thoughts and opinions, blah blah.
-TG
= = = Original message = = =
This is pretty coo
sion all around.
Eh.. check it out anyway. :)
http://www.hypervisual.com/winbinder/
-TG
= = = Original message = = =
Hi there,
I am going to take that chance now to ask if it is viable to create a
standalone app with php and gtk+, fully realizing that this IS the php list
;-)
I was thinking o
e. Don't remember if you have to do one THEN the other (and don't remember
which order.. sorry) or if one works while the other only sort-of works.
Anyway, check into that. I'm pretty sure that may help you.
-TG
= = = Original message = = =
Could u show me ur source code?
"
x27;gotcha' when it comes to SQL Server.
I'm sure someone else has some snakebites they can share :)
-TG
= = = Original message = = =
We are using PEAR as our database abstraction layer for connectivity to
MSSQL. It seems that, for some inexplicable reason, that our code is
losing it
t;command, does it prevent the web server from generating it's own headers?
>
>That is, if you send out "Somethingserver automatically generate the headers but if you use header() it uses what
>PHP generates rather than it's own?
>
>If so.. can you just do:
>header(
ck it right now).
So another thing I may be wrong on.. but a thought.. If you use the header()
command, does it prevent the web server from generating it's own headers?
That is, if you send out "Somethingstuff");
?
Just thinking out loud since nobody else has responded yet :
be you can describe the interaction between the system you can't control and
your PHP scripts better. Walk us through it step by step.
-TG
= = = Original message = = =
I am coding a PHP page to deal with a badly implemented automated status
update script on a remote server (that I do no
little more complicated. But possible I believe.
Can you give more detail on what you're trying to accomplish?
-TG
= = = Original message = = =
Hi,
Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.
Thanks,
pancarne.
type conversion though.
the triple equalsign deal should work since it forces PHP not to convert types.
-TG
= = = Original message = = =
>> No, Christopher, that is not a bug. As long as the var is empty, and if
>> you try to compare with 0, or false, it will report true in the
>>
ames.ora" (or whatever the
file is) and the username/password combo.
Maybe that'll give you a nudge in the right direction.
Good luck! Let us know what you find!
-TG
= = = Original message = = =
Hi,
Can PHP connect to a remote Oracle db?
Because all oracle connecting functio
it calls?
If just using EXEC to call a program is considered 'forking', is there another
method? Could you use PHP to EXEC a script file that ran shutdown instead?
Would this behave better?
Is there a way to do this and/or any tricks to making it work?
I think that's the que
er_id =
soi.order_id
Then in PHP just check to see if soi.order_id is blank or not. If it is,
there's no special orders to be found. If it's not blank, then check out the
SOI variables.
Hope that helped a little. Forgive any typos... wanted to respond quick so I
could go home.
nsert it into a MySQL database
via ODBC.
-TG
= = = Original message = = =
I am looking for some resources to use my Access Databases with PHP, anyone
have a good link?
David
___
Sent by ePrompter, the premier email noti
Don't forget also that if you're running on a Windows platform, you can use the
php-win.exe to avoid having any console window appear at all.
-TG
= = = Original message = = =
Steve Buehler wrote:
> At 04:54 AM 8/1/2005, you wrote:
>
>> Shit shit shit!!! I completell
oomsday device that could fall into the wrong hands. :)
-TG
= = = Original message = = =
Hi Jay & Jim,
Let me apologize for mis-communication.
I HATE sp#ammers like any normal being in the net.
What I intend to do is build a customer forum(Purely opted in)
People come to a web page & d
ect.
But maybe your idea or intentions aren't along those lines. Maybe you can
re-describe or better describe what you need and what you plan to use it for
and geta better response.
-TG
= = = Original message = = =
Hello Jay,
Pardon my ignorance but can you enlighten me a little more pl
I remember using a program called
ClockMan95 to run the scripts. It cost like $30 versus the $90+ for WinBatch.
So that's what comes to mind for me..
1. COM PHP -> IE
2. WinBinder PHP Extension
3. WinBatch
Good luck!
-TG
= = = Original message = = =
Hi all
We just bought ourselfs a ver
ports
tracking.
Lots of If's.
-TG
= = = Original message = = =
I think that would require tapping the cellphone network, which I doubt
they would let you do since it be a major violation of privacy, because
you could track the general location of anyone on their network.
Thomas wrote:
ntities to change any special characters back to entities.
Someone might have a clever way of figuring out where the HTML tags are
supposed to go back. I don't know of any quick and dirty way to do it off the
top of my head.
-TG
= = = Original message = = =
[snip]
Let's say tha
somewhere to start.
Keep us updated!
-TG
= = = Original message = = =
I was on Avis' car rental site the other day and booked a reservation, then
they had a button that automatically added an entry into MS Outlook for the
details, dates, times, etc. it was very nice!
Anyone have some cod
fault.htm"
or something like that).
If you don't have a tag, try something like this:
Changing "yourscript.php" to your script name of course, and you can use either
POST or GET for the method depending on what you want to do.
If that didn't help, please post mor
script gets for you before it bombs out. It
might be trying to tell Outlook to do something and just hanging (hence the
perpetual loading in your browser) which is why I'm wondering how far it gets
and what happens if you run it via command-line.
More info would definitely be appreciated.
Yeah.. you're comparing a string, 'NULL' with an integer 0. You're not
comparing NULL with anything, you're comparing a string that contains the word
'NULL'.
You can use === to do an exact comparison without conversion.
echo intval('NULL');
intval('NULL') === 0
= = = Original message = = =
l" is a good one
because if there's a smarter/better way, I'm sure even inflexible bosses can be
made to bend a bit, but asking "Why?" always feels like someone's asking "Are
you a moron?" hah..
-TG
= = = Original message = = =
But why would you
That looks like some of my code.. or a derivative of my code. For some
reason, my PC at work here is having issues with PHP instantiating with COM so
I can't test this, but the code you posted is conspicuously missing all the
braces { }. I'm guessing that's not your issue though... or else yo
p://www.php.net/mailing-lists.php
Good luck!
-TG
= = = Original message = = =
Hi!!!
Are there any chances that I could export a dynamic created web page into MS
Word or Excel?
I know this can be done with PDF!!
I'm using LAMP!!
---
Miguel Guirao Aguilera
Logistica R8 TE
why you're only getting the second item.
-TG
= = = Original message = = =
Hi, all,
This might look like a mysql problem but I assure you it's my botching
the PHP which is the problem!
I'm building a part of a page with info from three tables: art, media
and media_art. Media_art
since even if you can connect directly to the bus, you gotta know what to do
with the data coming in and out of it.
Seeing as it's a Microsoft USB fingerprint reader, there's a halfway decent
chance that the included software (or some similar third party app or plugin)
has CO
ren't sure what it could and couldn't do and remember that asking questions
like this is part of the learning process.
Best of luck Carlos!
-TG
= = = Original message = = =
Hi,
I have been trying to write or find a pre-written script of a combo-box which
would
allow one to
I missed the original post, but if you're looking at doing Windows desktop
development and want a GREAT alternative to GTK, definitely check out
Winbinder! Rubem and crew have done an awesome job (even though he modestly
calls it an "alpha" release.. it's very function).
It's a native Windows
$arg2, $arg3) = $argarr;
#do something
}
Maybe it automatically splits the array for you.
-TG
= = = Original message = = =
You can do this in Python:
def myFunc(arg1, arg2, arg):
#do something
myList = [1, "arg", 5]
myFunc(*myList) # calls myFunc(1, "arg", 2)
C
datestamp to work with which should make finding
things within that range a ton easier.
Good luck!
-TG
= = = Original message = = =
Hello,
on 05/11/2005 03:17 AM [EMAIL PROTECTED] said the following:
> I have a small problem.
>
> I have a project in which someone has got three int
ext = "I'm going to the store.";
$word = "store";
Padding with spaces is good thinking.. just need to take it that extra step
further.
-TG
= = = Original message = = =
Include a space in your str_replace statement.
For instance
$t = str_replace(" $word &q
ou really have to do some kind of regex expression to get this right when
substituting whole words and not just "any substring".
A thought in the exact right direction, just need to follow through with the
rest of the thought.
-TG
= = = Original message = = =
I think that's a
ction
routines and abstraction layers. Takes some of the work out of trying to
properly escape everything manually.
-TG
= = = Original message = = =
it depends
by having register_globals set to on (server config) it is usually easier to
create
sql-injection exploit, but it is not required.
th it.
You're not really altering what's there as much as generating a new PDF with
some additional stuff slapped over what was there in a layer or something.
Sorry to be so vague.. but wanted to pass on that info in case it helped avoid
a pitfall somewhere.
Good luck!
-TG
= = = O
d nobody
could give me good answers on how things joined..haha. so this meta data was
very helpful.
It's basically stored in a table in SQL Server, all the table/column
information. So it's super simple to get the information you want.
Check out this query:
SELECT * FROM sy
d essentially isn't worth it.
The short answer? No, there are no tools to decrypt MD5. It's a hash (like a
checksum) not an encrypted string. You could write your own brute force
program like above in about 2 minutes, but it wouldn't do you any practical
good.
-TG
= = =
ndows guys, someone needs to write a Winbinder based GUI PEAR
package installer. Hmm... another project to add to my list of projects that
I'll never finish. haha
-TG
= = = Original message = = =
El Jue 21 Abr 2005 11:36, Don escribi~:
> Hi,
>
> I have just started to explo
le through it a little, but once we figured it out, it was WAY too easy..
hah..
Good luck!
-TG
= = = Original message = = =
Hi,
I have just started to explore PEAR. I am using PHP 4.3.11 and so PEAR
automatically comes with PHP. I would like to install PEAR's DB classes.
Howeve
All of them. :)
-TG
= = = Original message = = =
> You're far more likely to get someone to look at your problem code if
> you can narrow it down to a block of code. Hell, you didn't
> even state a problem!!!
>
> Sorry, but if you come back with a well defined problem
27;m just stupid in some way, that's
cool.. feel free to speak up. But it does present another way to do what was
requested and the theory might help someone at least :)
-TG
= = = Original message = = =
On Mar 30, 2005, at 12:08 PM, Richard Davey wrote:
> Hello Leif,
>
> Wednesday, M
of my first PHP projects and is BADLY in need of updating,
but it does basicly what you were looking for I think.
-TG
= = = Original message = = =
I am looking for an open source calendar program that uses MySQL to
store the data and has an online Admin feature. Rather than trying the
many tha
Could you use parse_url() and just take the [query] section of it, then maybe
do an explode on "&" to get the different parts of it?
-TG
= = = Original message = = =
I am trying to use the rawurldecode() function to decode a variable that is
begin passed from a different page t
2003 interfacing (via ADODB) with SQL Server and Oracle
was great. I didn't have any problems with PHP running under Windows. But it
also wasn't a "mission critical" or high volume setup. Results may vary.
-TG
= = = Original message = = =
I personally like OpenBSD - though
this with phpDocumentor.
Any thoughts on how I can do this the 'right' way and possibly do some kind of
changelog for pages and/or individual functions would be greatly appreciated.
Thanks in advance!
-TG
___
Sent by eProm
e it's the uncommon sense that'll
bite you in the behind.
Thanks again!
-TG
= = = Original message = = =
Chris Ramsay wrote:
> This is excellent:
>
> http://www.shiflett.org/
I'm glad you think so. :-)
There's a free article there on SQL injection:
http://shiflett.
data before it goes into a SQL statement.. for security and
for things like making sure singlequotes and other special characters are
escaped properly?
htmlentities()
addslashes() (if magic quotes isn't turned on right?)
What else?
-TG
= = = Original message = = =
Hi,
Just a quick q
regarding this?
I was wondering of other emails were bouncing trying to get to me and just
hadn't taken the time to follow up with my hosting company about it.
-TG
= = = Original message = = =
Same here
Christo van Rooyen
-Original Message-
From: Chris W. Parker [mailto:[
bout (if I understand SQLite
and your requiremrents properly).
-TG
= = = Original message = = =
Hi,
I have already asked this question, but I think I wasn't clear enough of my
intentions (thanks for all your responses anyway)
I was wondering if there is any DBMS, like MySQL, which is (fully)
echo '' . chr(10);
chr(10) should be line feed and chr(13) is a carriage return (aka "\r").
Unless I got those mixed up. But yes, you can do that.
Or you could even cheat and do:
echo '' . "\n";
-TG
= = = Original message = = =
Double quotes:
ccount probably won't have access to the original account holder's email
account and if the owner is sharing with some friends, they can still share but
have incentive not to share TOO much.
See? None of this is impossible or even implausible and I don't see it as off
topic at all.
on (eg item($i), or item(2), etc).
Drop me a line later to remind me, and maybe I can dig up some of my sample
code for MapPoint and Outlook and such. I know I posted some Outlook calendar
code to either PHP General or PHP Windows recently.
Good luck Dave!
-TG
= = = Original message = = =
Hi,
p it won't decompress it.
Just make sure that if you're using WinZip it's a file that's going to be used
on a un*x system or possibly on machines that don't have the latest WinZip,
that you use the second best compression algorithm.
-TG
= = = Original message = = =
[EMAIL
P IDE would be? hah.. sorry, had to break the seriousness a little.
Everyone knows rulez!!!
Before you post to the list, ask yourself two questions: What do I hope to
accomplish with this post and is this the appropriate way to go about it?
-TG
___
ut sounds like you want it like when you display an invoice
afterwards or display a "Would you like to use this CC that's already on file?"
type thing without exposing the whole CC#.
-TG
= = = Original message = = =
Hello,
I need to replace all the numbers of a credit card except
g to do. Everything after that is WML and
not really pertenant (sp?) to this mailing list.
Good luck!
-TG
= = = Original message = = =
> you own a phone company? get one of your lakey sysadmins to fix up what
> you need ;-)
LOL! The trouble with lackey sysadmins is that they ne
till cool in my book. Style and new standards be damned.
-TG
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you can see a list of all form
elements and their current value (including HIDDEN elements) without having to
look at the source code.
Very good stuff.
-TG
> Firefox's Web Developer extension (which I highly recommend for web
> developers) will tell you if it's using W3 standard (
ally which facet of it's
rendering engine is being used to display the page.
-TG
= = = Original message = = =
I always thought quoting values in HTML had to be dome with double
quotes ("). however on reeding some stuff in the PHP manual the
examples use single quoted. Single
;t do with just doing a 'LIKE' SQL query on your
raw content).
I know this isn't strictly PHP related, but if someone hasn't done a basic
indexing search engine in PHP, then it's time someone did I think. :)
-TG
= = = Original message = = =
Why not use PHP to create
.
Most of the functions I used were included in the free version. It's
definitely worth checking out.
-TG
= = = Original message = = =
Ben Edwards wrote:
>>>Whats the story with this. It seems too good to be true. A fully featured
>>>IDE/Debugger released under som
do, you might look into LDAP or something
possibly.
More details might be useful if you'd like to post them.
-TG
= = = Original message = = =
Anybody figured out how to auto authenticate into a windows server? I
need to have some users log through NT Authentication on their browser
without
ong as it's not complicating the
situation for no reason.
-TG
= = = Original message = = =
Browser history: I do not want it to contain any URIs to files which require
some sort of id variable passed.
Example:
1. http://www.entity.org/edit.php
(should produce an error or redirect to entity
ave
overwritten your originally submitted data and you can get this kind of
confusion.
Let us know what you find out.
-TG
= = = Original message = = =
Hello all;
I have encountered a very strange error on one of our customers sites.
Their script returns the following error:
Warning:Invalid arg
se will give a better explaination soon, just wanted to give you
something so you weren't stuck/frustrated/etc for too long.
-TG
= = = Original message = = =
Could anyone tell me why this code echos?
";
?>
___
Sent by
Greetings!
I've posted this before, but there are always new readers so here's my script
solution. One of these days I'll make it a function or something, but this
should give you a good general idea of how to do such a thing in case you need
it again in the future.
btw: This also calculates
00' method then you're returning a
number based on the '1024' method.
You should always be consistant across the board.
-TG
= = = Original message = = =
i made this function and want to know if i am doing the math correctly..
seems to be caculating ok.. $filesize is in bytes..
e number before
displaying it.
-TG
= = = Original message = = =
I want to convert negative number to its positive equivalent.
$num = -40;
printf("Unsigned value is %u", $num);
output is: Unsigned value is 4294967256
I have checked the manpages and %u seems
l overwrite each other if you don't do another layer like I did (with
$tmparr[$length][] = $value);
Just gotta get a little clever with it.
Good luck!
-TG
= = = Original message = = =
Any idea how to sort an array by string length?
Rus
search engine and maybe $200 for VMWare)
there's an emulation of some kind.
-TG
*** new email address [EMAIL PROTECTED]
*** old email address [EMAIL PROTECTED] YAY CHAPTER 11!
= = = Original message = = =
On Wed, 15 Dec 2004 22:38:16 -0200, Manuel Lemos <[EMAIL PROTECTED]
if you want to implement something web-based though.
Damn, I forget the name now but there was one recently that worked in IE, but
not in Firefox. Someone mind re-posting that for Will?
Good luck!
-TG
= = = Original message = = =
Hello,
I was just wondering how to build a text editing tool
vertical tab apparently), then you could
use str_replace or use trim() with it's optional parameters to remove the
offending character.
See the documentation for trim() here for more info:
http://us2.php.net/manual/en/function.trim.php
Good luck!
-TG
= = = Original message = = =
Hi,
I have a sys
ng' if it didn't detect a genuine IE browser is
it?
Firefox and the other big name browsers can do most of what IE can do, but I
can still see that some internal controls might be outside of their reach.
Just a thought.
-TG
*** new email address [EMAIL PROTECTED]
*** old emai
Bao Ruixian wrote:
tg wrote:
hi
i need returning value of function as a variable
example :
function 1 () {
return "some error";
}
function 2 () {
$v = 1();
if ( $v != '' ) echo "error";
}
it doesn't work this way
Are you using 1 and 2
hi
i need returning value of function as a variable
example :
function 1 () {
return "some error";
}
function 2 () {
$v = 1();
if ( $v != '' ) echo "error";
}
it doesn't work this way
this works : echo 1();
but i need the string value as a variable
thanks
--
PHP General Mailing Lis
301 - 395 of 395 matches
Mail list logo