php-windows Digest 19 Sep 2001 06:50:58 -0000 Issue 761 Topics (messages 9400 through 9410): Compiling PHP with Apache 9400 by: Jobarr COM - accessing pointer variables 9401 by: park 9407 by: alain samoun Re: Warning Undefined Variable on Win - PHP 4.0.6 via Apache 9402 by: Ingo Re: File Upload In Form 9403 by: Mike Flynn calling php from javascript? 9404 by: Andrew.Martin sql server problem....... 9405 by: clock Re: How can I retreive a users Windows logon name? 9406 by: Frank M. Kromann htaccess 9408 by: Daniela Jirlaianu R: [PHP-WIN] File uploading 9409 by: Frankie Strange behavior 9410 by: Sichta Daniel Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I want to compile Apache with PHP built-in instead of being loaded as an external module. Can anyone help me with this? I have Visual C++ 6.0 and Windows 2000. -Jobarr
I have a method into my COM object specified as: HRESULT Get_Version_Str( [ in, out, size_is( size ) ] unsigned char *str, [ in ] unsigned long size ); now how do I call this from PHP ? I think that I need to create the arg's as VARIANT but I cant get it to work :( please help park
Do you have a VB script showing how it connects to your COM object? Alain -----Original Message----- From: park [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 3:18 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] COM - accessing pointer variables I have a method into my COM object specified as: HRESULT Get_Version_Str( [ in, out, size_is( size ) ] unsigned char *str, [ in ] unsigned long size ); now how do I call this from PHP ? I think that I need to create the arg's as VARIANT but I cant get it to work :( please help park -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
yeah i've the same problem. perhaps i posted my problem in php.general. so i hope the would come some help from others..... i used win2000 xitami , php and access db. so it doesn't works. cu ingo "Wes" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I keep getting a Undefined variable on unused form elements after they have > been posted. > > For instance i have a form > > Form Element Chem_id ( drop down) > Form Element freetxt ( text box) > > Query String A B C D to search for products via letter > > both the form post and the querystring go to the same page. > > If the querystring is use i get the Warning: Undefined variable Chem id and > freetxt error mgs > > but if i use them ..it works fine... > > Is this a bug or do i need to change a setting in the php.ini file > > Any help would be greatly appreciated. > > Wes > > [EMAIL PROTECTED] > >
At 10:39 AM 9/18/2001 +0430, you wrote: >Hi All, >I must a file download with used html form, for example with this code: >How can upload only GIF or JPG file? Be sure to include the MAX_FILE_SIZE hidden input field -- it is required. And be sure to put it BEFORE the file input field in the code. As for limiting it to .GIF or .JPG files, you can only check that (without JavaScript) once the file has already been uploaded. You could also verify it with JavaScript, but that is dependent on the client's browser. For more on this, see: http://developer.netscape.com/docs/manuals/communicator/jsref/txt3.htm If you have a basic understanding of field properties and string functions, you can get the file extension from the field when it is changed. Verifying it with PHP is a little tricker, but not much. Here's some code that I use. content_file is the name of the file field from the form. $the_file = $HTTP_POST_FILES['content_file']['tmp_name']; $the_name = $HTTP_POST_FILES['content_file']['name']; $the_type = $HTTP_POST_FILES['content_file']['type']; $the_size = $HTTP_POST_FILES['content_file']['size']; if ($the_file != 'none') { $allowed_types = array( "text/plain" => ".txt", "application/msword" => ".doc", "application/pdf" => ".pdf" ); if (in_array($the_type, array_keys($allowed_types))) { if (is_uploaded_file($the_file)) { move_uploaded_file($the_file, ...destination...); // proceed with file manipulation & successful form submission } else { // possible hack attempt? } else { // not an accepted file type } } else { // no file was attached } HTH -Mike
Is this possible? I'm converting a heavy javascript based site to a dynamic php but my problem is that the navigation sytem is very graphic orinentated and is hard coded with large and complex javascript. (multiple js files) So instead of writing all the javascript through php I would like to call where necessary small snipits of php (which build the menu dynamically) and then revert back to the original javascript when necessary. is this possible to call a separte php include in a js file? thanks.
你好 我之前都可以connect 到database but 今日就唔得 個code 就無問題,coz之前都run到 但係又唔知what happen 咁我想再apply 個new user 請問在那裡apply, 我之前係用wizard 來申請的 thanks
Hi Christian, You can force NTLM to be activated by removing file access for the user IUSR_<computer name>. If you have both basic and NTLM access to the files and the user running the web service has read access to the files the basic method is used. If the user don't have access NTLM will kick in and you will be able to get the users login name. - Frank > Eric, > > Thanks for sharing. I too can not get the user name for pages where > anonymous access is allowed, but since it's on our intranet, that's ok (all > users are loged on to our NT domain). > > Regards, > > Christian > > -----Original Message----- > From: Eric R. Gavin [mailto:[EMAIL PROTECTED]] > Sent: 17. september 2001 22:50 > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] How can I retreive a users Windows logon name? > > > It's important to note that this only works for pages that require > authentication. > > I don't believe that there is a way to retrieve username information via > pages that are accessed anonymously (i.e. if you were trying to retrieve the > name of the anonymous web user.) > > I only say this because I tried to retrieve user name for debugging purposes > and couldn't do it. There are/were some POSIX functions/modules that > supposedly do this but I think I screwed something up trying to use them, > and needed to dl() the module or something like that, which I didn't do > because I'm the laziest person alive ^_^ > > > If you change the access control from Basic to NT LM for the Intranet web > site you will gain the following things: > > > [snip] > > > > 2) The users login name and auth method will be available in $AUTH_USER > and $AUTH_TYPE. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > >
Hello, i am new at this list and also at beginning of learning php. Could someone tell me what i must write in .htaccess file for access restrictions on my web server? thanks, Daniela
Thanx, I'll try it and I'll say you if it works. Frankie Angie Tollerson <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED] Frankie, the function is copy($old, $new); so it needs to be from the exact path to the exact path....what is the folder you want to store the file in eventually? the best thing to do is to set the path for the folder where the new file will be residing and tack on the image for example: $PATH = "../news/archive/images/"; $userpath = "c:\windows\images\picture.jpg"; // ( gotten by them doing a browse of computer using type="file" ??? maybe??) $newimagename = "new.jpg"; copy($userpath, $PATH.$newimagename); hope that helps, Angie >>> "Frankie" <[EMAIL PROTECTED]> 09/17/01 02:01PM >>> I have a problem with the file uploading. I copied a script from a book on PHP and I followed instructions about the upload temp dir (upload_tmp_dir = c:/Windows/temp). The script was developed for an Unix machine and the line is: @copy("$img1","/usr/local/apache_1.3.12/htdocs/$img1_name") or die... The book suggests, for Windows machines, to change the root in: /Apache/htdocs. I tried the program, but an error message appears: "It is impossible to upload file" (message wrote in die command). What is the exact command for uploading file? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi there, cfg: w2k, Apache 1.3, php404: Problem: each time I run this code I'm getting warning : Warning: settype: invalid type in include/initialize.inc on line 41 but in differnet variable. Here is some data from table I'm using: glb_variable - TEST, LIMIT glb_value - false, 15 glb_type - boolean, integer 37 while ($row = ibase_fetch_object ($sth)) { 38 $variable = $row->GLB_VARIABLE; 39 $$variable = $row->GLB_VALUE; 40 $type = $row->GLB_TYPE; 41 settype($$variable, $type); 42 } Can somebody tell me what I'm doing wrong ? DAN