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:
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
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
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
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
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
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.
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
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
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
>>
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.
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
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 :
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(
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
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?
"
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 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
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
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
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
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
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
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
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
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
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
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
= =
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
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
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
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
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
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
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
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
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
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
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);
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
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
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
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, [
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
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
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
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...
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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(&
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
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
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
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
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
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
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
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
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
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
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
301 - 395 of 395 matches
Mail list logo