RE: [PHP-WIN] new mysql.dll for php...

2004-12-02 Thread Gryffyn, Trevor
I ran into this last weekend. I think what I was reading said you could start using the "Improved MySQL Functions" (the ones that start with "mysqli_*()") to work with the new password hash scheme. You can find the online manual entry at: http://www.php.net/manual/en/ref.mysqli.php I think I end

RE: [PHP-WIN] Strange internet problem

2004-12-01 Thread Gryffyn, Trevor
Definitely strange. Are you having it send you a copy of the header information so you can verify that you're capturing the correct info and you're not getting like a REFERRER type tag from someone clicking on a link IN yahoo? -TG > -Original Message- > From: Charles P. Killmer [mailto:[

RE: [PHP-WIN] Problemas con las igualdades

2004-11-30 Thread Gryffyn, Trevor
Sorry, the english link for file() is: http://us2.php.net/manual/en/function.file.php > -Original Message- > From: Gryffyn, Trevor > Sent: Tuesday, November 30, 2004 10:17 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Problemas

RE: [PHP-WIN] Problemas con las igualdades

2004-11-30 Thread Gryffyn, Trevor
Tango: - En español: ¿Usted habla inglés? Mucha gente en esta lista habla solamente inglés y ella puede no entender su pregunta. Estoy utilizando un software de la traducción (Babelfish) para intentar ayudar. Recomiendo el usar de la función del file

RE: [PHP-WIN] Difference between Installer and ZIP?

2004-11-30 Thread Gryffyn, Trevor
I like the manual install too. Plus, if the installer only contains the CGI, then what happens if you end up wanting to write command line PHP stuff? I'm assuming the CGI version requires integration with a web server to function. Just some extra overhead and totally unnecessary if you're just

RE: [PHP-WIN] problem to open dir

2004-11-30 Thread Gryffyn, Trevor
Good call.. With the ~1 and all. Using short filenames/paths might help sometime (when things have an issue with spaces in filenames). To get short filenames and paths, use the "dir /x" command at a command prompt. Also.. Regarding the \ only sometimes giving issues... It'll only give you a probl

RE: [PHP-WIN] problem to open dir

2004-11-30 Thread Gryffyn, Trevor
Also.. Any permissions issues? Can PHP or the user that PHP is running as access that folder? > -Original Message- > From: Pravin-Kumar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 1:28 AM > To: Mike > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] problem to open dir >

RE: [PHP-WIN] problem to open dir

2004-11-30 Thread Gryffyn, Trevor
I think \' is going to quote the single-quote too. Best to quote the backslashes I guess. Change all the \ to \\ Also.. Silly question.. But that directory DOES exist, right? I assume the is_dir() line is 69 and the opendir() is line 70, correct? -TG > -Original Message- > From: Mik

RE: [PHP-WIN] edge detection

2004-11-29 Thread Gryffyn, Trevor
I don't know that I could help you in any case, but some additional information might be helpful. Are you talking specifically about doing an edge detection type filter for images like you'd find in Photoshop? If you can clarify the question, someone might have some information for you. If you f

RE: [PHP-WIN] Cookie's folder

2004-11-29 Thread Gryffyn, Trevor
It's probably not the cookies you're trying to fix. The cookies are stored on the client side and should be automatically set up by the client's web browser. There should never be a problem with a cookie folder not existing and you needing to do something to fix it. (although I'm sure someone rea

RE: [PHP-WIN] HI! can u help me?

2004-11-29 Thread Gryffyn, Trevor
In addition to the opendir() and readdir() there's also the dir() class: http://us2.php.net/manual/en/class.dir.php Don't forget to take a look at the script on the readdir() page: You need to remember that "." and ".." are condidered directories (aka folders). You can also use is_dir() and i

RE: [PHP-WIN] What's wrong with these two programs?

2004-11-23 Thread Gryffyn, Trevor
Check out the other responses, but another thought is that you may not have your web server configured to process .PHP files properly. If it thinks it's a text file, it won't pass it through the PHP script interpreter. Go back over the instructions for installing PHP on your web server and mak

RE: [PHP-WIN] Re: Passing an Array in HTML

2004-11-23 Thread Gryffyn, Trevor
Yeah, I wouldn't recommend passing an array via an HTML form, it just seems clunky. I'd definitely use $_SESSION variables. BUT.. If you absolutely had to pass this array via a HIDDEN form element, I'd recommend trying serialize() and unserialize() >From the PHP manual: "serialize() returns a st

RE: [PHP-WIN] How can I?

2004-11-22 Thread Gryffyn, Trevor
le, how do you add the proper link to > that stylesheet or function page? .. Sure you could fopen the > page after > it's been created and then fwrite the link in, but you'd still need a > switch to know what link to fwrite in and opening sockets > like that is just > an invite

RE: [PHP-WIN] How can I?

2004-11-22 Thread Gryffyn, Trevor
t; your path is, > check it against known paths, if it exists use a certain > stylesheet. There > may be an easier way to do this than switches, but I have yet > to find one. > > Tony > > > -Original Message- > From: Gryffyn, Trevor [mailto:[EMAIL PROTECT

RE: [PHP-WIN] How can I?

2004-11-22 Thread Gryffyn, Trevor
I'm not quite sure what you're asking for here, but let me take a shot: Do you want the scripts in, say, your index.php's to know what folder they're in and act accordingly? So you'd essentially have exactly the same index.php in every folder, but they would do different things depending on if th

RE: [PHP-WIN] Question concerning SWITCH and Comparisons

2004-11-11 Thread Gryffyn, Trevor
I just copy and pasted your switch statement and it worked fine for me the way you described it needed to work. One thing I did notice, there's a semi-colon on the >= 2400 CASE, but it still seemed to work ok for me (maybe I noticed and fixed that before I tested >= 2400). What error are you gett

[PHP-WIN] Copyright law, how to protect your investment, how to protect your work... Was - RE: [PHP-DB] Please point me in the right direction.......

2004-11-10 Thread Gryffyn, Trevor
I'm surprised I havn't seen this question come up before (might have just missed it) but it's an excellent question so forgive the crossposting as it's extremely relevant to coders and those purchasing services of coders. Anyone who's gotten married and hired a wedding photographer is probably fam

RE: [PHP-WIN] Time Zones for windows

2004-11-08 Thread Gryffyn, Trevor
I did a real quick search and didn't find the answer quickly. If you have some free time and don't mind doing things the "hard way", you could try reading the $_ENV["TZ"] variable, recording it's value, changing the setting, lather, rinse, repeat. I'm sure there's a list somewhere though. It m

RE: [PHP-WIN] COM Object and Acrobat 6

2004-10-21 Thread Gryffyn, Trevor
> -Original Message- > From: Weber Bernd-Thomas [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 21, 2004 7:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] COM Object and Acrobat 6 > > I try to access Acrobat 6 as COM Object. My problem is that I > don't know the aviable methods. >

RE: [PHP-WIN] Church Database

2004-10-15 Thread Gryffyn, Trevor
I know there are a million schools of thought on design structure, so I'm not trying to argue here, but I'd like to make some comments. > A few comments on Trevor's DB structure recommendations regarding > primary keys. > > 1) Only make the auto-incrementing primary key IF you don't > already h

RE: [PHP-WIN] Church Database

2004-10-15 Thread Gryffyn, Trevor
> The church has about 2000 members. The groups can range in > membership from > as few as 5 to as many as 300. > > I'm a novice programmer and was looking into using MySQL and PHP to > implement the system. > > Am I on the right track? > Any thoughts or suggestions? > Me being a beginner am I g

RE: [PHP-WIN] PHP & Win98

2004-10-15 Thread Gryffyn, Trevor
Yup! Just check out the PWS/IIS instructions in the manual: http://www.php.net/manual/en/install.windows.iis.php > -Original Message- > From: Chris Ollar [mailto:[EMAIL PROTECTED] > Sent: Friday, October 15, 2004 10:02 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP & Win98 > > >

RE: [PHP-WIN] impressao!! Definite a virus.. NETSKY ALERT

2004-10-14 Thread Gryffyn, Trevor
Ok, had our IT guys update my virus definitions (and set it so I can do it myself from now on) and upgrade the server's virus defs too. Looks like between 10/6 and 10/14 (today) a new variant of Netsky came out or something. -TG > -Original Message- > From: [EMAIL PROTECTED] [mailto:[E

RE: [PHP-WIN] impressao!! Virus!!??!!??

2004-10-14 Thread Gryffyn, Trevor
Be careful everyone. This zip file contains a PIF (which is a typical way viruses spread via email these days... PIF, SCR and other windows executable file types that aren't COM or EXEs that may fool people into running them). My Symantec hasn't been updated since 10/6/04 (and the way our IT guys

RE: [PHP-WIN] Function reference

2004-10-06 Thread Gryffyn, Trevor
Very good point. The VBA editor and related help can definitely be a good place to look for information. A lot of times in VBA, you just start typing and it pops up with help and options relating to what you're entering. I've written things in VBA then translated them to PHP just to get the st

RE: [PHP-WIN] Function reference

2004-10-06 Thread Gryffyn, Trevor
This might help a little: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrco re/html/wrconwordobjectmodeloverview.asp Microsoft has a few object models online that give you an idea of the objects, properties, methods, etc in their products. The one for MapPoint is excellent

RE: [PHP-WIN] Commas conundrum

2004-10-04 Thread Gryffyn, Trevor
Hey Anne. How are you "importing" the file? Looks like your comma delimited file also uses double-quotes to delineate the data (which is normal for CSVs). I'd say just split the lines on the commas (as you're probably doing) with explode or something, then count how many entries you got. If it

RE: [PHP-WIN] Date Formatting

2004-09-22 Thread Gryffyn, Trevor
I know a lot of people will recommend using strtotime() to convert it to a unix timestamp, then use date() to format that: Date("m/d/Y",strtotime("Sep 12 2004 2:16AM")) That may work.. I have an inherent distrust of functions that use too much logic that isn't apparent to me, so I don't use str

RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-21 Thread Gryffyn, Trevor
I believe there's ChiliSoftASP or something that'll do ASP on Apache. -TG > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 21, 2004 6:52 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4 > > > virtual i

RE: [PHP-WIN] How can I organise my data from a total amount into tens?

2004-09-17 Thread Gryffyn, Trevor
Using the MOD (%) operator works great for paging and such. It gives you the remainder of a division statement: If ($itemcount % 10 == 0) echo "Itemcount divisible by 10, starting new page." Or us the floor() function to determine what the integer is without the fractional remainder: $pagenum

RE: [PHP-WIN] INCLUDE ASP does Not Work! for PHP - 4.3.4

2004-09-17 Thread Gryffyn, Trevor
The problem is that the web server looks at the file type and determines what to do with it before it sends anything to the web browser. Your .PHP file is being sent to a PHP interpreter which outputs certain things that get sent to the browser. What's going to happen in this case is that ASP cod

RE: [PHP-WIN] NT username detectable?

2004-09-14 Thread Gryffyn, Trevor
Well, nobody seemed to change anything and it's not doing the basic authentication request today, so I don't know what the deal is. Maybe something like Stut mentioned with someon rebooting a server or something. I don't know. A lot of odd things happened yesterday on our network. Everything se

RE: [PHP-WIN] Reading mapped drive with PHP5

2004-09-14 Thread Gryffyn, Trevor
I found this page relating to mapped drives and PHP: http://bugs.php.net/bug.php?id=26214&edit=1 Since you upgraded your PHP, maybe some of your other settings changed as well. This page indicates that mapped drives are user-specific and if your PHP script is running as a different user, that it

RE: [PHP-WIN] NT username detectable?

2004-09-14 Thread Gryffyn, Trevor
Thanks for the note. Unfortunately I don't have visibility to the settings they've chosen on the IIS box. I told them I wanted just Windows Integrated Authentication activated, but initially they left "anonymous" still activated. Maybe they still have Basic turned on as well. I just assumed the

RE: [PHP-WIN] NT username detectable?

2004-09-13 Thread Gryffyn, Trevor
omain? We apparently have two domains here and I'm not sure which one it belongs to. Does that make any sense to anyone? Thanks in advance. Just wondering if anyone else had run into this issue. -TG > -Original Message- > From: Gryffyn, Trevor > Sent: Friday, September 0

RE: [PHP-WIN] Re: NT username detectable?

2004-09-07 Thread Gryffyn, Trevor
I jumped a little too quick. I found this on MS's site: http://support.microsoft.com/default.aspx?scid=kb;en-us;188717 I'm going to ask them to take a look into that. Thanks again! -TG > -Original Message- > From: Gryffyn, Trevor > Sent: Tuesday, September 07

RE: [PHP-WIN] Re: NT username detectable?

2004-09-07 Thread Gryffyn, Trevor
Thanks for the response, Manuel. Yeah, "LOGON_USER" doesn't show up in PHP or ASP. It's been a while since I've done any IIS admin and I don't have direct access to the server setup (and want to minimize the amount of pestering to our IT staff). Can someone give me a checklist of things that sho

RE: [PHP-WIN] Re: NT username detectable?

2004-09-07 Thread Gryffyn, Trevor
I put in a request to have the Windows Integrated Authentication enabled on the web server that runs my PHP scripts at work here. Just got a note back saying that the task was completed, but I still don't see LOGON_USER in the _ENV or _SERVER (or anywhere in phpinfo). Does anyone know if there is

RE: [PHP-WIN] Re: WELCOME to php-windows@lists.php.net

2004-09-07 Thread Gryffyn, Trevor
I havn't worked with the code side of Squirrelmail (only the user side) but just a guess, check the variables and such being used on line 104. I'm guessing that one of them is null (value == "" or something). Probablems like this usually occur when the command wants certain information to be able t

[PHP-WIN] RE: Help required for developing word reports.

2004-09-07 Thread Gryffyn, Trevor
t; -Original Message- > From: CBharadwaj [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 04, 2004 1:13 PM > To: Gryffyn, Trevor > Cc: [EMAIL PROTECTED] > Subject: Help required for developing word reports. > > > Dear All, > > I want to developing reports u

RE: [PHP-WIN] Re: NT username detectable?

2004-09-03 Thread Gryffyn, Trevor
Won't "GetEnv" get the environment of the machine the script is run on? So wouldn't that end up giving you the login of the user logged into the web server, not the remote user? I just did a test and it didn't work. And I don't see my domain username anywhere in the $_ENV variable either. Here's

RE: [PHP-WIN] NT username detectable?

2004-09-03 Thread Gryffyn, Trevor
Probably not the most reliable way (actually, I know it's not 100% reliable), but the way I use for quick and dirty, informal usage logging is this: $ipaddress = $_SERVER["REMOTE_ADDR"]; $nbtstat = "nbtstat -A ". $ipaddress; exec ($nbtstat,$result); foreach ($result as $row) { if (strpos($row,"

RE: [PHP-WIN] Converting a dos console batch file to aphp shell script

2004-09-03 Thread Gryffyn, Trevor
Good to know. But wouldn't "flush()" or something still have worked? Maybe try isolating the issue, Jim. Write a test script and slowly add things to it until you get to the point where it's buffering too much. Maybe it internally buffers whatever commands you're trying to run (you using exec or

RE: [PHP-WIN] Converting a dos console batch file to a php shell script

2004-09-02 Thread Gryffyn, Trevor
Silly response, but did you try the "flush()" command? There's also a setting in the PHP.INI: output_buffering = Off Also check the Output Control Functions: http://us4.php.net/manual/en/ref.outcontrol.php Hope this helps! -TG > -Original Message- > From: Jim MacDiarmid [mailto:[EMAI

RE: [PHP-WIN] Strange 'if' test bug?

2004-09-01 Thread Gryffyn, Trevor
I did a quick check, putting the switching the "muppet" and the 0 and it did exactly the same thing. Yeah, I thought of that too. Order of precendence or something, but the quick check I did seemed to show that it'd convert it to an int no matter what order they were in. -TG > -Original Mess

RE: [PHP-WIN] Strange 'if' test bug?

2004-08-31 Thread Gryffyn, Trevor
The only thing I can think of, and it still doesn't totally add up, but when you do "$key = 0;", you're assigning an integer to $key. You then do a comparison of 0 (integer) == "muppet" (string). 0 is also symbolic of "false" as well, correct? If I replace 0 with FALSE, I get "key is something e

RE: [PHP-WIN] Newbie Question: PHP/Appache/WINXP/MySQl

2004-08-27 Thread Gryffyn, Trevor
When you click "submit" on a POST method form, it'll go to whatever file is specified in the "action=" part of the FORM and send the POST data to it for processing. PHP scripts are executed when called, they're never "already running" although you could probably have a case where you could (and mi

RE: [PHP-WIN] Re: HELP - varible not passing from form

2004-08-23 Thread Gryffyn, Trevor
And if you ARE using $Name = $_GET["Name"], then maybe post a sample of your PHP code so we can try to help you better. The most common cause of this issue is the "register_globals" thing, but it could be something else as well. Remember, GET method passes all your data through the browser URL (

RE: [PHP-WIN] PHP and HTML

2004-08-20 Thread Gryffyn, Trevor
I got it the first time, so guess it went through. I don't remember if it needs to be this strict or not, but I'd do it this way: Echo "$Name"; Doensn't look like you're ECHOing or otherwise outputting the OPTION tag and I usually include a "value=" with my options. No need to use the "." to co

RE: [PHP-WIN] using the mail function in php

2004-08-18 Thread Gryffyn, Trevor
Yeah, let's keep the aggravation off the list. There are tons of new people joining every day and there's bound to be a lot of repeat questions, even if it's been discussed 1000 times before. If you feel that your comments are falling on deaf ears and nobody's listening to your advice, then mayb

RE: [PHP-WIN] Re: include_path and relative vs. absolute paths

2004-08-17 Thread Gryffyn, Trevor
Maybe not the most elegant, but I like to keep my stuff kind of modular so what I've done is just create an "includes" folder in the root and them reference it as include("../includes/includename.inc") from the scripts that are all in their own folders (by project). This may not be the best as far

RE: [PHP-WIN] connection: close header

2004-08-13 Thread Gryffyn, Trevor
t > was written to try to use persistant connections. It doesn't > make sense to me to do it that way, but that's the way it is. > > With the client, it works on Apache on Windows, but not with > IIS. The only difference between Apache and IIS is the > "Con

RE: [PHP-WIN] connection: close header

2004-08-13 Thread Gryffyn, Trevor
or something? A little more detail might help solve this one. -TG > -Original Message- > From: Justin Patrin [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 12, 2004 5:45 PM > To: Gryffyn, Trevor > Cc: [EMAIL PROTECTED]; d c > Subject: Re: [PHP-WIN] connection: close h

RE: [PHP-WIN] connection: close header

2004-08-12 Thread Gryffyn, Trevor
Just tossing out my 2cents.. Maybe there's a way or a reason, but HTTP connections are, by their nature, connectionless. They send the data and close the connection. I'm not sure why you'd want to keep a persistant connection to a specific page. There are "Keep Alive" codes you can send that ma

RE: [PHP-WIN] FOrm processing question

2004-08-11 Thread Gryffyn, Trevor
I didn't notice if someone had replied to this yet or not, but sounds like a classic globals issue. Check your PHP.INI to see if you have globals turned on? I'm guessing you do for the Unix system but not on the Windows box. In PHP.INI (make sure you're looking at the same PHP.INI that PHP is u

[PHP-WIN] PHP en español - RE: [PHP-WIN] Re: Enviar Attach via PHP

2004-07-23 Thread Gryffyn, Trevor
Try Babelfish, also. Intento Babelfish también. http://babelfish.altavista.com/ > -Original Message- > From: Jason Barnett [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 22, 2004 10:03 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: Enviar Attach via PHP > > > Hola, > > Por f

RE: [PHP-WIN] how to expire a page?

2004-07-16 Thread Gryffyn, Trevor
I just use this, seems to work ok. But there are a few ways to do it. Some browsers pay attention to one tag and some to another. IE5 and 6 seem to like this one ok: Some Page Title > -Original Message- > From: Alejandro César Garrammone [mailto:[EMAIL PROTECTED] > Sent: Fri

RE: [PHP-WIN] check boxes... set the VALUE or just echo CHECKED????

2004-07-06 Thread Gryffyn, Trevor
For HTML form elements that can be checked or selected or whatever, I like to do something like this: if ($conditionistru) { $checked = " CHECKED" } else { $checked = ""; } echo ""; If I was doing this for a combo/option box, I'd have a list of the options in an array, use a "foreach" to creat

RE: [PHP-WIN] Self-calling script problem.

2004-07-06 Thread Gryffyn, Trevor
> > http://160.221.21.129/timelog/?user_id=9 > > This is what I don't understand. > The thing is, the correct call should be > > http://160.221.21.129/timelog/index.php?user_id=9 > > and inside you should have > > $user_id = $_GET['user_id']; > > Unless it is a

RE: [PHP-WIN] Self-calling script problem.

2004-06-18 Thread Gryffyn, Trevor
You might try doing a var_dump on $GLOBALS to make sure it's in there. I don't see any reference to $user_id=$_SESSION["User_ID"] so if it's not global, you're going to need to do something like that. The other thing you could double check, that I've done plenty of times myself, is check to make

RE: [PHP-WIN] Self-calling script problem.

2004-06-17 Thread Gryffyn, Trevor
I don't see any $_GET['User_ID'] statements anywhere. When you pass a value via the URL like "scriptname.php?userid=", you either need to use $_GET[] or $_REQUEST[] to retrieve the data. That could be why it's being 'ignored' -TG > -Original Message- > From: Garry Grierson [mailto:[

RE: [PHP-WIN] Multiple file Delete

2004-06-17 Thread Gryffyn, Trevor
I'm not understanding the logic in all the loops and such here. And why comparing the first 5 characters? That seems kind of dangerous. Why don't you pass the name of the main file ($file = "image1.jpg" for example) then: 1. unlink $file in images 2. unlink $file in big 3. unlink $file . ".txt"

RE: [PHP-WIN] ASP to PHP converter?

2004-06-17 Thread Gryffyn, Trevor
Yeah, I was going to say that there are a ton of ASP -> PHP converters on http://www.guru.com and probably http://www.codelance.com too, but they're not free. The problem with converters is: If it's a small project Upside to conversion - you have some idea if it converted it reliably Downside to

RE: [PHP-WIN] PDF Acrobat Issue *Strange*

2004-06-16 Thread Gryffyn, Trevor
Have you tried downloading the file you generated and trying to load the file on a Windows machine then on the FreeBSD box? That would at least verify the integrity of the file. Maybe something in the Windows version of PHP or the PDF extensions is causing it to generate a bad PDF. If the PDF wo

RE: [PHP-WIN] Blank Screen-Newbie

2004-06-16 Thread Gryffyn, Trevor
Sounds like it's not interpretting the PHP scripts properly. Check the following page and trace through the instructions making sure you followed all the steps: http://www.php.net/manual/en/install.apache2.php I think there's an error log you can check too, but it's been a while since I've run A

RE: [PHP-WIN] Arrrrrrrrrrrg. Session management expert needed.

2004-06-08 Thread Gryffyn, Trevor
Just a shot in the dark, do you have your session variables expiring or something like that? (check "session_cache_expire"). It's going to be something little and stupid... Maybe you're unsetting something, or something's expiring. See if it does it at regular intervals (5 minutes every time or s

RE: [PHP-WIN] RE: select top 1 * WAS: [PHP-WIN] [ANNOUNCEMENT] ODBTP 1.1.1 Released

2004-06-08 Thread Gryffyn, Trevor
If you have access (not sure if this is universal READ or if my db admins just didn't secure this properly) you can do this: select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '$tablename' All the information about the table you'd need should be in there. -TG > -Original Message--

RE: [PHP-WIN] calculations

2004-06-03 Thread Gryffyn, Trevor
As people pointed out, your current calculations don't add up to 452. What I'm reading here is that you want an image gallery with 3 rows (do you mean columns since you're talking width?) with borders on the images. Maybe you're calculating the width to use for your table or something. If this

RE: [PHP-WIN] Output Control

2004-05-27 Thread Gryffyn, Trevor
You can buffer your output and control how much of a buffer to use (so it will flush the output and send to the web server to send to the client) when the buffer is full, but the buffer, I believe, is also automatically flushed periodically whether it's full or not. You can do an implicit_flush, w

RE: [PHP-WIN] Transfering database

2004-05-27 Thread Gryffyn, Trevor
Firstly.. Isn't this a list where people can ask for help, even when they're just getting started in PHP? I'm guessing that english isn't Sudeep's first language, but the request was clear enough for us to understand and answer. Don't assume that someone hasn't done research just because the que

RE: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Gryffyn, Trevor
What's happening is the pointer on the results is advancing until it hits the end of the result set. When you run it again, the pointer is still at the end of the result set and therefore sees nothing 'ahead' of it. The same thing can happen with arrays. I'm not sure if you have to do it still,

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-24 Thread Gryffyn, Trevor
You can also put an "@" before the actual DOS command to suppress it's output ("@dir *.txt"). Between that, using the "@" on you PHP command and "> NUL", I'd think you could get it to be quiet. Sorry, don't have time to test this for your ight now. Let us know what you find. -TG > -Origina

RE: [PHP-WIN] updating from xls -> [filter] -> mysql

2004-05-24 Thread Gryffyn, Trevor
You might try putting a "UserControl = False" in there. The application should automatically end when it's called from COM (unless "UserControl = True") is set. But you could also try making sure to explicity "Quit()" the the application too.If you interrupted the script in the middle of r

[PHP-WIN] Hello World - was (RE: [PHP-WIN] Passing +, =, - at post and get)

2004-05-20 Thread Gryffyn, Trevor
Sleep(2000); >ulCnt = pHello->Release(); >} > else >printf("Failure to connect, status: %lx", hRslt); > > // Tell OLE we are going away. > CoUninitialize(); > } > > return(0); > } > > > > > Apprentice Hacker > #!/usr/local/bin/perl > $msg="Hello,

RE: [PHP-WIN] Why doesn't php have a 'date' variable type?

2004-05-20 Thread Gryffyn, Trevor
But it's not a bad point he's trying to make though. I mean, you could store the mktime value of a date into a variable and that's sort of the same as having a date type, but still not quite the same. I work in PHP as well as VBA on a fairly daily basis and it's kind of nice in VBA to have a date

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
Rube Goldberg would appreciate it. > -Original Message- > From: Charles P. Killmer [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 11:01 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Passing +, =, - at post and get > > > How is this > $String = implode(explode($String,

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
That's gotta be one of the more creative ways around using a regular expression I've ever seen.. Hah.. Good job Svennson. A regex or string replace would probably work better, or at least be more direct though. -TG > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTEC

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
Sorry, don't have time to go through your code or to look up the regex way of doing this, but you can translate then decode the plus sign fairly easily. One really basic example: $plussign = "+"; echo "Plus: $plussign\n"; $plussign = "&#" . ord($plussign) .";"; echo "HTML Entity Plus: $plussign\n

RE: [PHP-WIN] i need help

2004-05-18 Thread Gryffyn, Trevor
If the format is consistantly the same, try this: $somedata = "[i:aslkdfj]"; $insidedata = substr($somedata,3,strlen($somedata)-4); -TG > -Original Message- > From: Student [mailto:[EMAIL PROTECTED] > Sent: Monday, May 17, 2004 11:42 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subje

RE: [PHP-WIN] Windows speed issue

2004-05-13 Thread Gryffyn, Trevor
Is the web server (IIS) giving you a timeout or is PHP? If it's PHP, you can change your max execution time with "set_time_limit" or I believe you can change it in your PHP.INI If it's IIS, then I'm very familiar with the error. Hah. I work doing data analysis and sometimes we deal with very l

RE: [PHP-WIN] I've found the cause of the error but I cant fix it.

2004-05-13 Thread Gryffyn, Trevor
t;; Output: Value of testvariable is: 50 (no value is present in $testvariable because it's not automatically assigned when "register_globals" is turned off) Try something like that. -TG > -Original Message- > From: Alejandro César Garrammone [mailto:[EMAIL PROTECTED]

RE: [PHP-WIN] I've found the cause of the error but I cant fix it.

2004-05-13 Thread Gryffyn, Trevor
If you're used to running on a system with register_globals turned ON then you might run into a snag with something like this since the GET and POST values aren't automatically assigned to the variables you're trying to echo. You need to do: $variablename = $_GET["variablename"]; Or... $varia

RE: [PHP-WIN] Date format

2004-05-13 Thread Gryffyn, Trevor
Lots of ways to skin this particular cat.. Here's one way I'd do it (broken out a bit so you can follow the flow): $date = "1965-12-25"; List($year,$month,$day) = explode("-",$date); $monthtext = date("M",mktime(0,0,0,$month,date("d"),date("Y"))); $fixeddate = "$day-$monthtext-$year"; You're righ

RE: [PHP-WIN] Photo gallery with description

2004-05-12 Thread Gryffyn, Trevor
> So are you going to offer your gallery code for use by > others? Just curious. I'm also working on > my own version of gallery software. I am using Gallery > (http://gallery.menalto.com/modules.php?op=modload&name=News&f > ile=index) currently, but hate that > it does not easily integrate into m

[PHP-WIN] Photo gallery with description

2004-05-12 Thread Gryffyn, Trevor
I'm doing my own and plan to keep developing it. I feel the same way, those other scripts are really neat but they do WAY too much for what I want. The script that powers the link below is one file, no database setup (currently and I'm thinking about keeping it that way... Or making a PHP5 versio

RE: [PHP-WIN] How to check port conection? socket_connect and fsockopen have problems

2004-05-10 Thread Gryffyn, Trevor
Well, two things come immediately to mind. Using sleep() or continuously cycling and checking to see if the current time matches whatever time criteria you need (8:00am, minutes divisible by 10, etc). Then you don't need to hammer the sockets 1000+ times per second. -TG > -Original Message-

RE: [PHP-WIN] FW: Problem with amazon jobs autoresponder

2004-05-07 Thread Gryffyn, Trevor
e another one after I've > posted this one. :( > ) > > //Anders > > -Original Message- > From: Gryffyn, Trevor > To: [EMAIL PROTECTED] > Sent: 7-5-2004 19:33 > Subject: [PHP-WIN] FW: Problem with amazon jobs autoresponder > > Well, sounds li

[PHP-WIN] FW: Problem with amazon jobs autoresponder

2004-05-07 Thread Gryffyn, Trevor
subscribers to this list. :) -TG -Original Message- From: Viebrock, David [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 1:21 PM To: Gryffyn, Trevor Subject: RE: Problem with amazon jobs autoresponder Hi, I think I fixed this a couple days ago. I've been really busy and so h

RE: [PHP-WIN] Is this possible

2004-05-07 Thread Gryffyn, Trevor
That's sort of what I thought you were getting at George. How's this scenario work for you: 1. User pulls up initial screen, either showing all data or no data at all --- SELECT recordid,projectid,title,genre,author,whatever FROM sometable 2. User enters parameters for recordset (ie. All

RE: [PHP-WIN] Is this possible

2004-05-07 Thread Gryffyn, Trevor
> I think this is not possible, but hopefully, someone will > prove me wrong. One thing that's certain, almost EVERYTHING is possible, it just depends on how much time and effort you're willing to put into it :) > Imagine a webform with about 50 fields (I actually have > several of these forms)

RE: [PHP-WIN] Strange e-mails

2004-05-06 Thread Gryffyn, Trevor
I contacted Amazon about this and twice received form letters back claiming it was a virus spoofing their address. After assuring them that it wasn't a virus and pressing the issue, they finally seem to have gotten it to the right people to look at it. I received this email the other day: | Hell

RE: [PHP-WIN] Passing a Multidimensional Array through a hidden form element

2004-05-03 Thread Gryffyn, Trevor
Have you tried using the serialize() function in PHP? That should keep your array in order while it's being passed, then just unserialize it on the other end. -TG > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Monday, May 03, 2004 9:02 AM > To: [EMA

RE: [PHP-WIN] differences between (IIS PHP GD) & (Apache PHP GD)

2004-05-03 Thread Gryffyn, Trevor
I'm not sure on the pixels/points thing on the two systems, you could always check a server variable and see what system you're on and do the compensation internally so it comes out properly on both systems without having to have two different scripts. But I'm curious.. I know that if you creat

RE: [PHP-WIN] The COM problem when converting from ASP to PHP

2004-04-29 Thread Gryffyn, Trevor
Yeah, this is some of the fun of dealing with COM and PHP. Microsoft puts all kinds of little shortcuts into their system that are difficult to access via PHP. I'm sure there's a smarter programmer out there than I am who knows how to make this work properly, but here's my 2 cents: 1. When you c

RE: [PHP-WIN] Need help using "php.exe"

2004-04-29 Thread Gryffyn, Trevor
http://www.php.net/manual/en/features.commandline.php Check out this page about using PHP via command line. You pass variables in via the $argv variable. Here's a snippet: Like every shell application, the PHP binary accepts a number of arguments but your PHP script can also receive a

RE: [PHP-WIN] Order By........

2004-04-29 Thread Gryffyn, Trevor
If you want the last post first, you probably want to order your query "descending", try this line: $get_post = "select * from $table_name2 where cat_id = '$_POST[cat_id]' ORDER BY posted DESC"; -TG > -Original Message- > From: Will [mailto:[EMAIL PROTECTED] > Sent: Monday, April 26, 20

RE: [PHP-WIN] COM on remote machine + MapPoint COM question?

2004-04-29 Thread Gryffyn, Trevor
I'm playing around with COM right now doing things with PHP and MapPoint. I got the feeling that COM was something that had to work on the local machine because you needed the COM information in your registry to tell the computer what application to run. That is, PHP says "Open COM connection to

RE: [PHP-WIN] Re: PHP + COM

2004-04-16 Thread Gryffyn, Trevor
I didn't see if this was answered yet. This is something I'm interested in as well, so if anyone has any good information on using PHP with COM objects, that'd be great. Specifically I want to do some things with Microsoft MapPoint. This should work, just in the context of instantiating Word

RE: [PHP-WIN] Converting from ASP to PHP

2004-02-03 Thread Gryffyn, Trevor
> -Original Message- > From: Duane Lakoduk [mailto:[EMAIL PROTECTED] > Sent: Monday, February 02, 2004 3:27 PM > > I have been developing ASP sites and applications for about 7 years. > Recently, I have been considering doing some of my new > development projects in PHP. Depending on

  1   2   >