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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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
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

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] 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] 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

[PHP] Re: [PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread tg-php
hat it was clear what to do with $key and $subkey relating to the main array ($alldataarr in this example) -TG = = = Original message = = = Well to give my .02 here. Why even go through the second foreach? By doing this you are making your code very inefficient in that it must read through

Re: [PHP] function to compare ip addr to a ip range

2005-10-13 Thread tg-php
You could try converting to long IP addresses and comparing that way: http://us3.php.net/manual/en/function.ip2long.php $startip = "192.168.0.5"; $endip = "192.168.0.16"; $targetip = "192.168.0.7"; $startlong = ip2long($startip); $endlong = ip2long($endip); $targetlong = ip2long($targetip);

Re: [PHP] Ardent Pursing help

2005-10-13 Thread tg-php
ing a PHP script to attempt to find the info. Or just call Ford directly and ask for a directory of registered dealerships. They might be able to email you a complete list. -TG = = = Original message = = = Hi All, My company is trying to send an offer email to all Ford dealers in USA. We don

[PHP] Re: [PHP-WIN] Is this a PHP bug?

2005-10-16 Thread tg-php
e "0", it's been converted to a string value "0". Good catch on that though, shows good methodical debugging :) So in the future, either use === or be extra aware of your variable types and make sure you're comparing properly. Good luck! -TG = = = Original messa

Re: [PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread tg-php
quot;INSERT INTO MYTABLE (column1, column2) VALUES ($value1, $value2)"); That way, if it's empty, you'll get NULL, otherwise you'll get 'somevalue'. I use double quotes (") PHP variable values (yeah, I know.. some people have issues because it makes everything

Re: [PHP] Re: Inserting NULL Integer Values

2005-10-18 Thread tg-php
Sorry everyone, I missed the "integer" requirement here. I apologize. And yes, '' isn't a good integer value and will throw an error. That's what I get for not reading thoroughly enough :) -TG = = = Original message = = = On Tue, October 18, 2005 12:42 pm, [

RE: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread tg-php
ng to be Windows specific and there may be people there with more experience. Good luck Jay! -TG = = = Original message = = = [snip] Done a phpinfo() to see if the CURL extension is really getting loaded? Is your extension_dir (or whatever it's called) correct in php.ini? The other

Re: [PHP] Memory Leak?

2005-10-22 Thread tg-php
ame thing on DestDB right then, or "play it back" later like during nightly maintenance. Good luck Richard! -TG = = = Original message = = = I've written a script to munge and import 108,000+ records. To avoid spiking the server, I'm sleep()ing 1 second for each record. S

Re: [PHP] Processing two post values

2005-10-22 Thread tg-php
s, yard, etc.. with the PropertyID that it belongs to), then maybe a third table for addition info regarding the PropertyFeature, like irregular cutouts, wall paint color, carpet/flooring type, etc. I don't know how much control you have or how many requirements that may confl

Re: [PHP] Memory Leak?

2005-10-22 Thread tg-php
arily). Sucks that you don't have more control over the incoming data. Good luck in finding a solution. -TG = = = Original message = = = On Sat, October 22, 2005 5:04 pm, [EMAIL PROTECTED] wrote: > Does it make a difference if instead of one record at a time, you pull > 10, 20, 100...

Re: [PHP] PDF printing under windows.

2005-10-25 Thread tg-php
I see lots of ways to potentially solve this problem without using COM. I loved messing with COM (with or without PHP) for a while, but it's not a great general solution to things unless you absolutely HAVE to control the app (which is very cool and slick sometimes, but not for something a

Re: [PHP] PDF printing under windows.

2005-10-25 Thread tg-php
open the app then just have the user (you?) click the print button? Or do you want it totally one-button click and that's it? Just a thought. -TG = = = Original message = = = Richard Lynch wrote: >On Mon, October 24, 2005 1:48 pm, Dave Lists wrote: > > >>I'm

Re: [PHP] [DONE] Substr by words

2005-10-29 Thread tg-php
though: $maxwords) { $wordarr = array_slice($wordarr, 0, $maxwords); $tmpstr = implode(" ", $wordarr) . "..."; } else { $tmpstr = implode(" ", $wordarr); } return $tmpstr; } ?> Or if you want really obfuscated code... -TG = = = Original

Re: [PHP] is there a number translation function?

2005-10-29 Thread tg-php
any questions or if anyone can improve this (always up for learning new tricks :) Good luck Linda! -TG "one", 2 => "two", 3 => "three", 4 => "four", 5 => "five&q

Re: [PHP] getting rid of bad characters

2005-10-31 Thread tg-php
want to use whatever your database's "escape_string" function is). -TG = = = Original message = = = I having been looking for some snippet to help me with changing MS Word double, quotes, single quotes and other characters to acceptable HTML safe characters. The problem comes about whe

Re: [PHP] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread tg-php
That's not a sadist.. that's a masochist. :) I nominate Jay too. It's been a while since I've seen someone go totally insane and I think Jay is the man for the job. Congrats on your promotion(??) Jay! -TG = = = Original message = = = John Nichel wrote: > Jochem Ma

Re: [PHP] Register Globals

2005-11-04 Thread tg-php
7;]\r\n" ..with single quotes on the 'from' or put the $_POST variable outside the quotes: "From: " . $_POST["from"] . "\r\n" Hope that helps! -TG = = = Original message = = = Ok, you are all used to working with register_gloabsl=off. mail($to

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-09 Thread tg-php
Yay! Useless Trivia Time! That big nasty word is apparently the name for "::". Here's a PHP manual page explaining how it's used. I'd recommend looking for a misuse of the "::" operator in your code. http://www.php.net/manual/en/keyword.paamayim-nekudotayi

Re: [PHP] Text between two tags

2005-11-10 Thread tg-php
Maybe just treat it like XML and use PHP's XML parsing routines. Should work pretty good but maybe someone else has a better way of handling it. (code below) -TG // $string - contains your HTML string $innerText = ""; $_XML_PARSER = xml_parser_create(); xml_set_element_handl

Re: [PHP] Text between two tags

2005-11-10 Thread tg-php
Great example.. haha.. I knew someone would pull some nice regex out for this one.. I suck at regex. hah I still like my XML parsing fix, but Leonard's regex is probably better. hah -TG = = = Original message = = = HI, > Hello > I'm trying to extract some text between

Re: [PHP] Walking through a bunch of MySQL Records

2005-11-14 Thread tg-php
27;t have to be, then that could be a solution. Or, as someone else mentioned I believe, you could pre-load the results into another array structured how you want it to be. Depending on the specifics, there are probably other methods. -TG = = = Original message = = = Greetings all, I have a q

Re: [PHP] Uploading more than one file

2005-11-21 Thread tg-php
Sorry, my brain's running on one cylinder this morning, but maybe this helps: http://us2.php.net/manual/en/features.file-upload.multiple.php If not, excuse my waste of bandwidth :) -TG = = = Original message = = = Hi, I have a form on my page that has many file input fields: F

Re: [PHP] Howto search in SQL for a specific character?

2005-11-29 Thread tg-php
g more like: SELECT nameOfPedigree FROM tbpedigrees WHERE SUBSTR(nameOfPedigree,0,1) = "'" So maybe try this: $sql = "SELECT nameOfPedigree FROM tbpedigrees WHERE SUBSTR(nameOfPedigree,0,1) = \"$v1\""; See if that works any better. -TG = = = Original me

Re: [PHP] Schroedinger's Bug - may require exorcism...

2005-11-30 Thread tg-php
rpret it in your head like the computer would.. like by line.. maybe you'll see where something is ambiguous and under certain conditions creates a fail. Let us know what you find.. kind of curious myself. -TG = = = Original message = = = So... I have this script (being called in a per

Re: [PHP] Newline character problem...

2005-12-03 Thread tg-php
ment you might want. One other side nugget related to this (formatted and spaces and all that nonsense), you can use the tag to tell HTML not to word-wrap the text within it. Comes in handy when you want to force a column heading to be one line even though it's got a space in it and yo

Re: [PHP] Unnecessary if statement? Programming technique

2005-12-06 Thread tg-php
wise.. I'm wondering how much "eval()" slows it down.. and I'm wondering if "if (value == value2)" is slower than "if (true)". Probably other offbeat ways of doing something like this too. -TG = = = Original message = = = Hi everyone Quick question: If I h

Re: [PHP] Arrays

2005-12-06 Thread tg-php
This what you want? http://us3.php.net/manual/en/function.array-search.php -TG = = = Original message = = = If I have an array, such as $Var[0] = "Dog"; $Var[1] = "Cat"; $Var[2] = "Horse"; Is there a way to quickly check to see if $Var contains "Lion&

Re: [PHP] Non-trivial task of converting text to HTML

2005-12-07 Thread tg-php
Maybe I'm missing some requirement, but what if you just used HTML "" tags. You can still use other HTML for formatting within the tags but it'll pay attention to carriage returns/line feeds and spaces without having to use s For example, if you did the following... is it what you need or wha

Re: [PHP] Create Image From HTML

2005-12-09 Thread tg-php
u can test it by changing "sendHTMLtoJSEditor" to "alert" so it shows in a popup window. Just make sure all your s or s or whatever you choose to encapsulate the clickable areas in all have unique ID's. -TG = = = Original message = = = Hi, I am trying to create a Content Management

RE: [PHP] Forwarding $_POST Values

2005-12-09 Thread tg-php
yself.. but that's the basic concept in a nutshell). -TG = = = Original message = = = > > I have a server with all my clients websites on. However I > have some clients > who have their own servers. I want to be able to have a form > on my site that > allows users to log

RE: [PHP] Forwarding $_POST Values... please no flaming

2005-12-09 Thread tg-php
on is stupid or irrelevant, take it to private email or just delete it. Please. -TG = = = Original message = = = [snip] Wow...what a helpful answer! Thankfully, other people responded to the guys question and didn't come off like smug pricks! [/snip] Been on mailing lists long? Who

RE: [PHP] Message Should be displayed based on Date ,Time and Eve nt name

2005-12-14 Thread tg-php
This is a kinder, gentler Jay.. hey, don't look a gift horse in the mouth! But if anyone's still not satisfied... you can go RTFM if it makes you feel better. :) Happy holidays! (yeah, holidays.. christmas IS included in that.. jesus.. how did political correctness turn to bite everyone on the

Re: [PHP] Re: Programming Query - Authentication - Multiple Logons

2005-12-14 Thread tg-php
omeone has a better way, but I'd say this works out ok for us so far. -TG = = = Original message = = = Hello there, Goal: Preventing multiple user login using the same username & password from different location ( Simoltanous Login) Options Available: 1) IP Checking: One way to prev

Re: [PHP] Re: Declaring arrays? Good practice?

2005-12-14 Thread tg-php
here's a security need to do so. So what was the original question again? hah -TG = = = Original message = = = What I said was that arrays can be handled two different ways for loops. 1] By assigning the variable prior to the loop [i.e., $new_array= array();] 2] Or, by using inside th

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread tg-php
ding) and just use PHP to pad the numbers for display purposes too. Just some random thoughts. -TG = = = Original message = = = Ave, Now that is an interesting perception. I didn't think about that. Well I can always change it to five or six. Let me re-assess this with the concerned pers

Re: [PHP] Function Overloading

2005-12-17 Thread tg-php
If all you want to do is pass an unknown number of arguments to a function, this looks like it demonstrates what you're doing: Found it at: http://www.php.net/manual/en/function.func-num-args.php = = = Original message = = = "PHP does not support function overloading." So, is there any othe

Re: [PHP] accessing RAW response

2005-12-19 Thread tg-php
It'll be disregarded since it's not 'contained' inside any tags. Cheap hack, but should work fine. -TG = = = Original message = = = Hi, I am posting a request to a server from a PHP and getting a result. When I trap the response, it comes with all the contents. Is there a met

RE: [PHP] Connecting to PHP

2005-12-19 Thread tg-php
open up PHP functionality to every Microsoft product (can you imagine calling PHP functions from within Access or Excel or Word?). Probably pointless because 99% of what you can do in PHP you can do in VBA.. not as elegantly I think (I've worked extensively in both) but someone may have a

Re: [PHP] Problem with fopen and sending POST vars

2005-12-20 Thread tg-php
form-urlencoded". But you still end up sneding data in this form: "var1=value1&var2=value2&var3=value3" (hence the "urlencoded" part). Good luck! -TG = = = Original message = = = Hello everyone! I have a problem sending POST vars via fopen. It was possible for

Re: [PHP] load testing tools

2005-12-27 Thread tg-php
ing window? I read I could if I had an Intellimouse... now THAT'S retarded). Anyway... know the beast... the name of the beast.. and use the beast to your advantage if you can. Pro-linux/opensource/whatever doesn't mean you HAVE to be anti-Microsoft. -TG = = = Original message

RE: [PHP] nifty little tools - resposity - evaluations..

2005-12-30 Thread tg-php
to the item being rated. Probably have to approve items so it doesn't get crazy, but still might be cool. Ok... off to stare at the pirate llama for a bit so I don't have to do real work. -TG = = = Original message = = = [snip] >They are all variants of that. All nifty littl

RE: [PHP] nifty little tools - resposity - evaluations..

2005-12-30 Thread tg-php
ton Market that was the good one > with the all-you-can-eat curry at lunch on weekends? (*shiver* scary > hah) > > So when I get un-lazy and stop playing World of Warcraft long enough > to do some PHP projects.. is this something anyone would find useful? > I'd like to open it up

Re: [PHP] printing keys and values of array

2006-01-06 Thread tg-php
as $category => $data) { echo "$category:$data\n"; } Also, if you ever needed to get just the keys or just the values of an array, you can use: array_keys() and array_values() Both return an array. Good luck! -TG = = = Original message = = = Hi i need some help with print

Re: [PHP] Converting IP Address to int value?

2006-01-06 Thread tg-php
starting address and ending address to long format and compare it with numbers stored in your database in long format, it should give you what you need. Good luck! -TG = = = Original message = = = I'm in the process of parsing through a apache access_log file and putting the informatio

Re: [PHP] input validation?

2006-01-12 Thread tg-php
form, then yeah, what everyone else said.. strlen($data) (where $data contains the information submitted). -TG = = = Original message = = = Hello, I need to check that user input text is less than 300 characters long. How? Thanks -Will

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-16 Thread tg-php
r defaults, possibly through .htaccess or some other Apache type prefs setting mechanism. Good luck! -TG = = = Original message = = = Hello, What would be the best way to get a page variable like this: www.domain.com?page=home to show up when a user types in: www.domain.com M

Re: [PHP] Best way to do this: www.domain.com?page=var

2006-01-17 Thread tg-php
nly use the javascript window.location or html meta-refresh techniques as a worst case scenario. -TG = = = Original message = = = I'm confused... why does everyone use a refresh??? According to me, that's not what a refresh is supposed to be used for (!). Why don't use a header(&

Re: [PHP] odd behavior

2006-01-19 Thread tg-php
P.INI file.. I forget the exact permissions). If removing C:\WINNT\PHP.INI doesn't work.. or isn't an option... and permissions look ok... then I'm not sure. But drop a line back when you've messed around with it some more and maybe we can figure it out. -TG = = = Origina

Re: [PHP] Determining number of days in a selected month

2006-01-20 Thread tg-php
date("t") will give you the number of days in the current month. Or you can do: date("t", mktime(0, 0, 0, $month, $day, $year)) to get the number of days in a specific month in a specific year (that way you can get leap year accurate counts..) -TG = = = Original messa

Re: [PHP] Str to Int

2006-01-20 Thread tg-php
e two"; break; default: echo "No valid value"; break; } Good luck Ron! You'll get ahold of this stuff soon enough. Looks like you have some experience in other languages (and some of it will work fine in PHP.. it's very forgiving and flexible, but some of it

[PHP] Re: [PHP-DB] auto_increment and INSERT INTO

2006-01-21 Thread tg-php
Try: -TG = = = Original message = = = I have various tables where a column is set to auto_increment in my table structure. I have been using the following INSERT query format: INSERT INTO table VALUES ('$auto_increment_variable','$variable_1', '$variable_2&#x

Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread tg-php
s can be passed from script to script and what can't? I know things like database connections can't be shared (that is, you can't assign a MySQL connect link to a variable then pass that variable/connect to the next script, it needs to reconnect the next time around.. or am I wr

[PHP] PHP job postings?

2006-02-16 Thread tg-php
ting sites. Thanks. -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

Re: [PHP] PHP job postings + previous hosting question

2006-02-17 Thread tg-php
t going to and college campuses are always a good place to check (especially since we're about 2 miles from a metro stop). I appreciate all the great feedback. Thanks again everyone! -TG ___ Sent by ePrompter, the premier email n

Re: [PHP] Last Sunday in September?

2006-02-17 Thread tg-php
in this one, just showing one way. -TG = = = Original message = = = Hi, I'm building a program and I need to find the last Sunday in September for every year because the following Monday is the start of a new year for us. So 2006 ends on September 24th 2006 and the new year (2007) starts

Re: [PHP] "!" in front of a variable?

2006-02-17 Thread tg-php
Ooops.. I made the same mistake in my private reply.. hah.. = = = Original message = = = I took me a little while to notice that it wasn't a function declaration :p ~It's just as Jay said, it's calling "function" with those arguments, where '!$var2' extends to '!(bool)$var2' or "treat/cast this

Re: [PHP] What does a "?" represent

2006-02-17 Thread tg-php
It's usually used as a single character wildcard. So "something = ?" would match "A", "B", "1", etc.. but not "AB, "A1". -TG = = = Original message = = = In the some code I'm working with I see many database queries using the

[PHP] PHP documentation solutions? (PHPDoc, Doxygen, ???)

2006-02-20 Thread tg-php
ell as end user product documentation but maybe there's other features people have found useful as well that we havn't thought of yet. Thanks. -TG ___ Sent by ePrompter, the premier email notification software. Free download at

<    1   2   3   4