Re: [PHP] Modifying OPTIONS header response

2003-10-07 Thread Oscar F
Hey Marek, Thanks for the reply. Nope, doesn't do anything... O. On Tue, 2003-10-07 at 09:19, Marek Kilimajer wrote: > Just a wild guess, but try this in apache config: > Script OPTIONS /options.php > > Oscar F wrote: > > > Hello all, > > > > I'm w

[PHP] Modifying OPTIONS header response

2003-10-07 Thread Oscar F
Hello all, I'm working on a php/dav server and I'm having a problem. When the client sends an OPTIONS request to see what methods are allowed, they only get "Allow: GET, HEAD, POST, OPTIONS, TRACE" back from apache. This seems to me a problem since it does not include PROPFIND, COPY, MOVE, LOCK,

[PHP] WebDAV help

2003-09-29 Thread Oscar F
Hello all, I'm having a problem with PHP/WebDAV. Here's my problem: I am working on a system that keeps track of documents. The documents are stores based on document ids, and the filename is saved on the database along with the document id and file type/size, and the file is renamed to just t

Re: [PHP] Cpanel or Plesk

2003-09-06 Thread Oscar F
I've used both and personally, I like CPanel a whole lot more, it has in my opinion a better and easier to understand interface for users. I don't know if account that use CPanel can be moved to Plesk but I would suppose you could, I don't know for sure tho. Oscar. Dasmeet wrote: Hi! I guess m

Re: [PHP] PHP Certification

2003-06-27 Thread Oscar F
s, I guess the reason is cleared now. Thanks all!. Oscar F.- Warren Vail wrote: A working public website, that solves a business problem, is a good credential. I can't help but wonder if it takes more hours to develop a respectable site or to study and take an exam. Do you suppose the cert

[PHP] PHP Certification

2003-06-26 Thread Oscar F
Hello, Does anybody know of any plans for an official certification path for PHP?. Are they launching something like that anytime soon?. Just curious. Oscar F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] House for rent - Good price

2003-06-23 Thread Oscar F
Yeah this is no Real State List. Put up an ad on the newspaper. O. Leif K-Brooks wrote: [EMAIL PROTECTED] wrote: Hello all mailing list, House for rent - Good price, :), bye. URL : http://www.geocities.com/rapogo Can someone PLEASE unsubscribe the spammer? -- PHP General Mailing List (h

Re: [PHP] MySQL Problem

2003-06-05 Thread Oscar F
_base, debes quitarle el $. Ej. mysql_create_db("nueva_base"). Espero te ayude. Oscar F.- Felipe R. wrote: Hi everyone, first, sorry to all if my english is so poor. second, i have the follow question: when i create a existing MySQL DBase, what happend?? how can i avoid this problem??

Re: [PHP] Super Globals

2003-03-20 Thread Oscar F
Hello, Yep, I just upgraded to 4.3.2-RC1 and now it works fine, thanks!. #Of. Adrian Portsmouth wrote: Hi Oscar, The super globals don't exist in the version of PHP you are using, they were only introduced PHP => 4.1.0 Kind Regards Ade www.phpscriptsearch.com -- PHP General Mailing List (http

[PHP] Super Globals

2003-03-20 Thread Oscar F
so what is the line I should change to turn them on?. If I turn register_global on and print $QUERY_STRING it works, but it wont if I print $_SERVER['QUERY_STRING']. I'm on XP/PHP 4.0.6. Thanks, Oscar F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and javascript

2003-03-18 Thread Oscar F
It has to do with the fact that you're using single quotes, and $thepage is not replaced for its value. I think you'd want to rewrite the function like this (note the \ escaping the "): function js_pointer_login($thepage) { echo " window.location = '$thepage'

Re: [PHP] A faster way to Redirect pages

2003-03-17 Thread Oscar F
Kelvin, You can use If you want to do it with PHP. You have to put it at the top of the file, since no other information can be sent before the Location header. HTH, -Oscar F. Poon, Kelvin (Infomart) wrote: Hi, I know this topic was discussed but I deleted my previous mail so I can't go

[PHP] Progress bar for uploading files

2002-10-16 Thread Oscar F
Hello, I'm working on a file uploading script, but I need to know if there is a way to know what's the progress of the file, so I can make la a progress bar?.. Any ideas? Please?. Thanks in advance. Oscar F.-

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Oscar F
I'm pretty sure it's not $_SERVER["QUERY_STRING"], it's $_SERVER['QUERY_STRING'] (note the ' instead of "). HTH. Oscar F.- Miles wrote: > When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index >QUERY

[PHP] High-Res Images

2002-10-13 Thread Oscar F
HP to get the DPI value of an image, because the image they submit has to be 300 dpi. In short, I need the user to upload the file, and the script to verify it is 300 DPI and to resize it to its equivalent size with 72 DPI. ANY help would be really appreciated. Oscar F.- -- PHP Ge

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Oscar F
Most likely you have register_globals set to "off" on your php.ini. Change this to register_globals = on (or "true", or "yes", either one should). If you dont want to do that, Try with $_GET['name'] or $_POST['name']. HTH. Oscar F.- An

Re: [PHP] file uploads problem

2002-09-23 Thread Oscar F
Try: $upload = "/path/to/copy/"; $upload_path = "$upload/$file_filename"; if (is_uploaded_file($file)) { Exec("cp $filename $upload_path"); } Then you have the file at /path/to/copy/, and you can do whatever you want with it. (I'm assuming the file field of the form is called "file", and that

Re: [PHP] PHP.exe crash Problem

2002-09-23 Thread Oscar F
That's happened to me while trying to run a PHP script that handles Form-based file uploading. The scripts work fine on *nix enviroments. Any toughts?. Oscar F.- simanhew wrote: >Hi all, > >One of my pages always crashes php.exe on Windows XP. I can not find any >logic

Re: [PHP] any string function to...

2002-09-23 Thread Oscar F
Taylor, You can use: quotemeta($string) for . \\ + * ? [ ^ ] ( $ ). hth. Oscar F.- Taylor York wrote: >Is there any string function to put backslashes on any characters that are >used in regular expressions? IE ()[];.^*$ etc. > > >Thank you, >Taylor > > > -- PHP

[PHP] PDFlib --pixels? 2

2002-07-30 Thread Oscar F
Sorry, The code wasn't complete for the scaling thing. $dpi_x =PDF_get_value($p,"resx",$image); $dpi_y =PDF_get_value($p,"resy",$image); /*calculate scaling factors from the dpi values */ if ($dpi_x >0 && $dpi_y >0){ $scale_x =(72.0)/$dpi_x; $scale_y =(72.0)/$dpi_y; } else if ($dpi_

[PHP] PDFlib --pixels?

2002-07-30 Thread Oscar F
Hello, I'm developing a web app, that needs to generate a PDF file. The "background" of the PDF will be a high resolution image (300dpi). and I calculate the scaling factor from the resolution of the image. $dpi_x =PDF_get_value($p,"resx",$image); $dpi_y =PDF_get_value($p,"resy",$image);

Re: [PHP] sessions and https

2002-07-28 Thread Oscar F
Mike, I have used them with https, and they work fine. Make sure you are calling session_start(); on every page you need your session vars. Oscar.- - Original Message - From: "Mike Mannakee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 28, 2002 9:21 PM Subject: [PHP]

Re: [PHP] need help with uploading images

2002-07-28 Thread Oscar F
deadsman, if (($filename_type != "image/jpeg") && ($filename_type != "image/jpg") && ($filename_type != "image/pjpeg")) { header("Location:submitError.php"); exit; //goes to an error page if the file wasnt a jpg } else { $upload_path = "/path/of/the/$filename_name"; if (is_uploaded_file($filenam

[PHP] Sending a File to User's Browser

2002-07-27 Thread Oscar F
Hello, I need a user to save an image file to their disk. Normally when someone clicks on an link to a .jpg file, the fil will display on the same browser window, since it is capable of displaying such files. Now, I don't want this to happen, I need to be able to show the user the "Save As.."

Re: [PHP] CURL & SSL

2002-07-27 Thread Oscar F
. but nothing works... Anyone has a solution?. Oscar F.- - Original Message - From: "Jonathan Rosenberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 27, 2002 1:50 PM Subject: [PHP] CURL & SSL > I am on a server that has CURL & OpenSSL e