Re: [PHP] Removing Items from an Array

2005-10-12 Thread tg-php
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

Re: [PHP] onChange js running a php function

2005-10-11 Thread tg-php
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

RE: [PHP] Having resource variables over several scripts

2005-10-10 Thread tg-php
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

Re: [PHP] Detect file size BEFORE upload it

2005-10-06 Thread tg-php
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

[PHP] Re: [PHP-DB] Search & Replace within PHP

2005-10-06 Thread tg-php
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

Re: [PHP] Detect file size BEFORE upload it

2005-10-06 Thread tg-php
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

Re: [PHP] setcookie() is not my friend

2005-10-06 Thread tg-php
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

Re: [PHP] Re: form not submitting when I change action from PHP_SELF to thanks page

2005-10-06 Thread tg-php
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

Re: [PHP] Re: form not submitting when I change action from PHP_SELF to thanks page

2005-10-06 Thread tg-php
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

Re: [PHP] Non-Javascript PHP Onsubmit function?

2005-10-04 Thread tg-php
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 = =

Re: [PHP] Missing pear executable

2005-10-04 Thread tg-php
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

Re: [PHP] URL Referral Tracking with AIM

2005-09-27 Thread tg-php
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

Re: [PHP] replace

2005-09-19 Thread tg-php
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

Re: [PHP] It's A Windows World

2005-09-16 Thread tg-php
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

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread tg-php
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

Re: [PHP] php equivalent for cut

2005-09-06 Thread tg-php
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

Re: [PHP] String format problem

2005-09-01 Thread tg-php
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

Re: [PHP] String format problem

2005-08-31 Thread tg-php
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

Re: [PHP] Weird results of "=="

2005-08-23 Thread tg-php
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: [PHP] php as standalone?

2005-08-23 Thread tg-php
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

Re: [PHP] php as standalone?

2005-08-23 Thread tg-php
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

Re: [PHP] Re: error while running com

2005-08-22 Thread tg-php
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? "

Re: [PHP] PEAR and MSSQL

2005-08-17 Thread tg-php
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&#

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
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(

RE: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
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 :

Re: [PHP] How to suppress HTTP headers?

2005-08-16 Thread tg-php
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

Re: [PHP] PHP and Active Directory

2005-08-11 Thread tg-php
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.

Re: [PHP] Re: possible bug (string equality to zero)?

2005-08-11 Thread tg-php
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 >>

Re: [PHP] Oracle Question

2005-08-11 Thread tg-php
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

RE: [PHP] Restarting windows from php

2005-08-10 Thread tg-php
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

Re: [PHP] select * from...

2005-08-09 Thread tg-php
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.

Re: [PHP] Access and PHP

2005-08-03 Thread tg-php
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

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread tg-php
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

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread tg-php
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

Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread tg-php
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

Re: [PHP] snapshot

2005-07-27 Thread tg-php
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

Re: [PHP] Tracking a mobile phone... PHP related?

2005-07-18 Thread tg-php
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:

RE: [PHP] Trimming Text

2005-07-15 Thread tg-php
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

Re: [PHP] How do I create an Outlook calendar entry?

2005-06-24 Thread tg-php
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

Re: [PHP] problem with IE and php

2005-06-08 Thread tg-php
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

RE: [PHP] Displaying an Outlook Calendar on a webpage using PHP

2005-06-07 Thread tg-php
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.

Re: [PHP] This is happening why?

2005-06-06 Thread tg-php
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 = = =

Re: [PHP] Displaying an Outlook Calendar on a webpage using PHP

2005-06-06 Thread tg-php
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

Re: [PHP] Displaying an Outlook Calendar on a webpage using PHP

2005-06-06 Thread tg-php
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

Re: [PHP] Exporting to MS Word or Excel

2005-06-02 Thread tg-php
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

Re: [PHP] foreach ($media as $key => $val) problem

2005-06-01 Thread tg-php
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

Re: [PHP] PHP and USB Devices

2005-05-31 Thread tg-php
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

Re: [PHP] Basic PHP/HTML code question

2005-05-18 Thread tg-php
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

Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread tg-php
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

Re: [PHP] expand array into function arguments?

2005-05-11 Thread tg-php
$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

Re: [PHP] Re: SQL Date guru in the house?

2005-05-11 Thread tg-php
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

Re: [PHP] marking words bold

2005-05-11 Thread tg-php
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

Re: [PHP] str_replace on words?

2005-05-11 Thread tg-php
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

Re: [PHP] MySql injections....

2005-05-11 Thread tg-php
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.

Re: [PHP] Editing PDF

2005-05-10 Thread tg-php
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

Re: [PHP] MSSqlServer table/field information

2005-04-23 Thread tg-php
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

Re: [PHP] Re: reverse MD5 ???

2005-04-21 Thread tg-php
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 = = =

Re: [PHP] PEAR Packages

2005-04-21 Thread tg-php
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

Re: [PHP] PEAR Packages

2005-04-21 Thread tg-php
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

Re: [PHP] Post shorter code

2005-04-21 Thread tg-php
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

Re: [PHP] How to format every secound row in a database result

2005-03-30 Thread tg-php
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

Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread tg-php
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

Re: [PHP] rawurldecode

2005-03-28 Thread tg-php
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

RE: [PHP] Best Server OS

2005-03-28 Thread tg-php
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

[PHP] phpDocumentor usage (specifically changelog capability?)

2005-03-28 Thread tg-php
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

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread tg-php
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.

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread tg-php
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

[PHP] ezmlm "bounced email" warnings - [was RE: [PHP] suspicious - maybe spam]

2005-03-09 Thread tg-php
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:[

Re: [PHP] Database engine in PHP

2005-03-04 Thread tg-php
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)

Re: [PHP] line feed

2005-03-04 Thread tg-php
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:

RE: [PHP] On Topic - Theoretical Concents of Anti-password trading/sharing solutions

2005-03-01 Thread tg-php
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.

Re: [PHP] Windows COM programming.

2005-02-21 Thread tg-php
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,

Re: [PHP] Uploading products in database using zip file?

2005-02-14 Thread tg-php
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

[PHP] ENOUGH!! RE: AW: [PHP] Student Suspended Over PHP use.

2005-02-10 Thread tg-php
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 ___

Re: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread tg-php
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

RE: [PHP] REPOST: Serving WML

2005-01-21 Thread tg-php
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

Re: [PHP] Firefox's Web Developer Extension.. Re: [PHP] quoting values in HTML - is there a diference between ' and "

2005-01-20 Thread tg-php
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

[PHP] Firefox's Web Developer Extension.. Re: [PHP] quoting values in HTML - is there a diference between ' and "

2005-01-20 Thread tg-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 (

Re: [PHP] quoting values in HTML - is there a diference between ' and "

2005-01-20 Thread tg-php
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

[PHP] Search indexing.. Re: [PHP] Search engine

2005-01-20 Thread tg-php
;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

[PHP] Re: PHPED PHP IDE

2005-01-18 Thread tg-php
. 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

Re: [PHP] NT Auto Authentication?

2005-01-18 Thread tg-php
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

Re: [PHP] $_GET & $_POST simultaneously

2005-01-11 Thread tg-php
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

Re: [PHP] Error in foreach?

2005-01-10 Thread tg-php
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

Re: [PHP] Comparison Operator

2005-01-10 Thread tg-php
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

Re: [PHP] Calculate No Of Days

2005-01-03 Thread tg-php
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

Re: [PHP] filesize math

2004-12-24 Thread tg-php
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..

Re: [PHP] stripping negative number

2004-12-23 Thread tg-php
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

Re: [PHP] Sort by string length...

2004-12-21 Thread tg-php
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

Re: [PHP] Re: Good and free encoder for PHP5

2004-12-15 Thread tg-php
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]

Re: [PHP] Text tools

2004-12-13 Thread tg-php
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

Re: [PHP] Removing a return character

2004-12-10 Thread tg-php
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

RE: [PHP] FCK Editor

2004-12-07 Thread tg-php
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

Re: [PHP] returning value to variable

2004-02-14 Thread tg
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

[PHP] returning value to variable

2004-02-14 Thread tg
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

<    1   2   3   4