Re: [PHP-WIN] replacing file contents

2005-04-11 Thread Aidal
Oops, seems I can't do anything right today. It was M. Sokolewicz who had the solution but thanks to all who tried to help me in my noobiest hour. /Aidal "Aidal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DOH! Thanks Kevin for pointing out wh

Re: [PHP-WIN] replacing file contents

2005-04-11 Thread Aidal
DOH! Thanks Kevin for pointing out what should be the obvious !!! /hides Ofcause, str_replace() I totally forgot about that one, maybe because I've just been using eregi_replace() a lot lately, I dunno. Anyway, everything works now as I should, thanks :o) /Aidal "M. Sokolewic

[PHP-WIN] replacing file contents

2005-04-11 Thread Aidal
i opened, create a new one with the same name and write the $altered_file_contents into it and close it. But when I open it and check the line numbers that should have been altered, they haven't been toutched at all, they still show the first link. What am I doing wrong? Why aren't

[PHP-WIN] page output to file

2005-03-14 Thread Aidal
think I've done it before I just forgot how :o( Thanks, Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP-WIN] Re: dynamic -> static html

2005-03-14 Thread Aidal
Nevermind... I found out now. file_get_contents(http://www.blabla.com/index.php); does the job it seems. "Aidal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi NG. > > I'm trying to re-make a script I once had to make static html out of some

[PHP-WIN] dynamic -> static html

2005-03-14 Thread Aidal
l server. This is fairly simple I know, but I've forgotten how I did it last time. Any help would be much appreciated. PS. I have access to the remote server as well if running fetch.php from there would make any difference. /Aidal -- PHP Windows Mailing List (http://www.php.net

Re: [PHP-WIN] vars from page to page

2003-11-05 Thread Aidal
the proper way to access form data. > _ > ----- Original Message - > From: "Aidal" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, November 05, 2003 3:17 PM > Subject: [PHP-WIN] vars from page to page > > > &

[PHP-WIN] Re: vars from page to page

2003-11-05 Thread Aidal
Nevermind - I'm a noob register_globals = on /nod /nod "Aidal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi NG. > > I have a little problem with a new install of php/apache/win2k which has to > do with the setup I think. > > I hav

[PHP-WIN] vars from page to page

2003-11-05 Thread Aidal
after click: click this link Hello_php_noob so you did click the link huh ;o) This is what should have happened... But $action isn't set and nor is $msg, what can be wrong with the setup? Any help appreciated /Aidal -- PHP Windows Mailing List (http://www.php.ne

[PHP-WIN] passthru(), system(), exec()

2003-09-18 Thread Aidal
how I solved it back then. Any suggestions? /Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: PHP -> ODBC -> Remote Access

2003-09-18 Thread Aidal
wrote in message news:[EMAIL PROTECTED] > There is no way to access a remote MS-Access Database over the internet. Try > to switch to mysql or any other database system which is *not* designed for > desktop access only. > > > "Aidal" <[EMAIL PROTECTED]> schrieb

[PHP-WIN] PHP -> ODBC -> Remote Access

2003-09-11 Thread Aidal
anyone has tried to do somthing similar, knows it's not possible, knows how to do it or whatever - it would be greatly appreciated! NOTE: I have full control over the Access database and the server running it - It's my PHP which is remote to my location. Thanks for your time... /Aidal --

[PHP-WIN] Re: unable to delete php created files in php

2003-08-14 Thread Aidal
http://dk2.php.net/manual/en/function.chmod.php "John Yu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It seems that when I try to unlink a file in php which has been created by > php on a winxp machine I always get a unable to delete file, permission > denied error... > > This se

[PHP-WIN] Re: unable to delete php created files in php

2003-08-14 Thread Aidal
Have you tried using chmod() on the files you create? chmod(file_name, 0777) gives everyone all rights to the file. "John Yu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It seems that when I try to unlink a file in php which has been created by > php on a winxp machine I always g

Re: [PHP-WIN] Still can't pass variable through url

2003-08-09 Thread Aidal
quot;B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > As far as I can see you are not able to read > and understand a written and indented text. > > > > -Original Message- > > From: Aidal [mailto:[EMAIL PROTECTED] > > Sent:

[PHP-WIN] Re: how to delete file in windows

2003-08-09 Thread Aidal
['file']['name']); @unlink($HTTP_POST_FILES['file']['tmp_name']); @chmod("../some_dir_name/".$HTTP_POST_FILES['file']['name'], 0777); echo "The file " . $HTTP_POST_FILES['

Re: [PHP-WIN] Still can't pass variable through url

2003-08-09 Thread Aidal
Hmm as far as I can see you have used both '&?' in your example below. Have you checked what your POST,GET etc. setting are? "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > > when i click my hyperlink "page.php?year=$year&?month=$month", it > [...] > > if t

Re: [PHP-WIN] Still can't pass variable through url

2003-08-09 Thread Aidal
You can only use '?' once and that's between the pagename and the first variable, after that it's only '&'. Like this: page.php?var1=value1&var2=value2&var3=value3 etc. /Aidal "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message ne

[PHP-WIN] Re: how to delete file in windows

2003-08-07 Thread Aidal
Oops - I forgot to add that this works on both Linux and Windows. "Aidal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Check this out for a moment - this script takes a file name from a form > field (on the prior page) of the type file, which is used in HTML

Re: [PHP-WIN] how to use umask() ???

2003-04-02 Thread Aidal
stored on the server) are logically ANDed with the complement of the current > "umask" - which you can set with the umask() function - and the resulting > bitfield is inspected to see whether or not to grant permission for the > specified action. > > Jill > > >

[PHP-WIN] how to use umask() ???

2003-04-02 Thread Aidal
n needs all permissions to the files: read, write and execute (as i recall them stated when accessing through FTP). Any help would be much apreciated thanks... /Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: $_Post doesn´t work

2003-03-05 Thread Aidal
echo "Daten wurden eingetragen"; } Accessing post_vars on the receiving site is like accessing any global variabel in your script. You can print it with "echo $MyVar;" or "print($MyVar);" at any given point on the receiving site. Hope that helps... /Aidal "Ol

Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Aidal
ng an item to $yourArray[$count], would be adding it to the end aka $yourArray[5]. /Aidal "Matt Babineau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's a numerical key so $myArray[] = "value"; will work perfectly! > > Thanks! > > --&

[PHP-WIN] Re: PHP install on Windows98 and PWS

2003-03-03 Thread Aidal
p file and what does it do when it incounters a *.php file?" Of cause you will get an error if PWS sends a *.php file to the ASP-parser, so you have to make sure that PWS knows what to do with those files namely send it to the PHP-parser. /Aidal "Aidal" <[EMAIL PROTECTED]&g

[PHP-WIN] Re: PHP install on Windows98 and PWS

2003-03-03 Thread Aidal
This will probably not work since you do not tell the function what to do with the returned value. or Should solve that problem. /Aidal "Keith Engelhardt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have installed PHP (using the install wizard an

[PHP-WIN] Re: include_path

2003-03-03 Thread Aidal
Having more than one file with the same name isn't a very good idea in the first place if you ask me. Also I do not know how Apache reacts to having more than 1 path assigned to include_path. If Apache thinks it's ok, then try to find answers to the following when including/requireing files. "whic

[PHP-WIN] PHP array to JS function ???

2003-03-03 Thread Aidal
ball_undefined.gif ---- So my php array seems to have no values once in the javascript function. How can I fix this? Please help... /Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: html2pdf on windows?

2003-02-27 Thread Aidal
u can't buy the apps without support and the shortest period is 1 month. The apps will work unlimited though, you just can't get support or download a newer version when your support period has expired. Check it out here: http://www.easysw.com Hope that will help you, it did me :o)

[PHP-WIN] files

2003-02-26 Thread Aidal
d one, the difference between the old and the new text will still appear in the end of that file? I've treid rewinding the file, but as the word implies the file is only rewinded, not emptied which i need. How can I empty a text file so I can write new text in it? /Aidal -- PHP Windows Ma

[PHP-WIN] randomize ??

2003-01-16 Thread Aidal
Hi NG. Can anyone tell me how to make a random number from a limiter like "randomize(10);" or somthing like that? It seems that the function "gmp_ramdom()" doesn't work. I get "Fatal error: Call to undefined function: gmp_random()" if I try to use it. Can anyon

Re: [PHP-WIN] Re: get row (latest by date)

2003-01-09 Thread Aidal
> To: <[EMAIL PROTECTED]> > Sent: Thursday, January 09, 2003 9:46 AM > Subject: [PHP-WIN] Re: get row (latest by date) > > > > select * from table where date=(select max(date) from table) and > > time=(select max(time) from table) > > > > HTH, > > Ra

[PHP-WIN] get row (latest by date)

2003-01-09 Thread Aidal
bla 2 | --- What i need is the SQL that would give me the latest created row of these 2 (i dont mean latest as in last_id) by date and time in this case the result should be the row with id = 129 because of the time. Please help... ~ Aidal -- PHP Windows Mailing List (http://www.ph

[PHP-WIN] Re: Arrays - I may have gone blind

2002-12-16 Thread Aidal
irk_id" = 16. 3 because "virk_id" is present twice but the row with id = 3 has the highest "type" for "virk_id" = 23. 5 because "virk_id" is present only once so the value of type doesnt matter. Does this make it easier for you to see what it is

[PHP-WIN] Arrays - I may have gone blind

2002-12-16 Thread Aidal
I do this? Or can a SQL statement do this in a DISTINCT like way? (SELECT table.id FROM table WHERE somthing is = somthing else and a lot of other stuff BUT only give me those where table.type has the hifgrst value)? Please... need help with this ~ Aidal. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] dates

2002-11-05 Thread Aidal
Hi NG. I was wondering if anyone knows of a (maybe build-in) way to check dates. Say I want to show some articles on a page, the articles I want to show here are the latest aka those created on the current date or the date closest to the current date. Regards ~ Aidal -- PHP Windows Mailing

[PHP-WIN] Apache - simple question (IndexIgnore)

2002-10-23 Thread Aidal
read the documentation on IndexIgnore I still dont get the syntax. Can anyone tell me how I do this? Do I add a new line with 'IndexIgnore ' ? Or do I add '' to the existing 'IndexIgnore' ? In any case, what would the syntax be for ignoring *.php and *.inc files when

[PHP-WIN] HTTP_POST_VARS - need help

2002-10-23 Thread Aidal
\php9223.TMP No form submition was registered Acording to my script this means that the receiving script couldn't catch/access the HTTP_POST_VARS. I'm aware that some variable names have changed, like HTTP_POST_FILES => $_FILES and so on, but this shouldn't affect this script since it never get to the part with HTTP_POST_FILES. If anyone can give me a clue to whats wrong here please let me know. Also if you need more info about php.ini settings let me know and I'll post it asap. Regards ~ Aidal -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: picking files (server side) - need help please

2002-10-22 Thread Aidal
Thanks for your suggestion, I'll try it out. By the way, couldn't you see my examples or whats with the < ... > ? "David Elliott" <[EMAIL PROTECTED]> wrote in message news:1923107396.20021022154647@;elliott.uk.com... > Hi Aidal > > On 22 October 2002 a

Re: [PHP-WIN] Creating files with PHP - need help

2002-10-10 Thread Aidal
If I use full path I get in trouble with spaces in the path like "c:\program files\Apache ...", in this case the path would be "c:\program" due to the space in the path. Of cause I could make a new dir on C like "c:\articles" to work around this, but if I could get the files into a sub folder of h

Re: [PHP-WIN] Creating files with PHP - need help

2002-10-09 Thread Aidal
gave your advice and I'm thankful :) though it didn't solve my problem. "Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > win xp AND 2000 pro > > --- Aidal <[EMAIL PROTECTED]> wrote: > Are you working &g

Re: [PHP-WIN] Creating files with PHP - need help

2002-10-09 Thread Aidal
Are you working on a UNIX/Linux box? It might make a difference due to the difference on file systems etc. I'm working with Win98 at the moment. "Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > well aidal > for me it

Re: [PHP-WIN] Creating files with PHP - need help

2002-10-09 Thread Aidal
Dona that \\nef\\articles makes no difference. "Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > or u could add an other \ to tha path > > "c:\\name.txt", "wb" > > luck > > toby > > --- Luis Moreira <[EMAIL PROTECTED]> wrote: > When you > refer to a