Re: [PHP] ayuda...solo se ve el código cuando ejecuto los script
Tenes el codigo PHP entre ... ? Ej.: From: Rot Alvarez <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] ayuda...solo se ve el código cuando ejecuto losscript Date: Mon, 20 Jan 2003 09:20:51 -0800 (PST) Subo los script y solo veo código...q puedo hacer ayuda _ Registra gratis tu cuenta email en http://www.exploraiquique.cl _ Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Max Limit of post variables
I was making an aplication few months ago, and i had your same problems. I think that crash because the php file send to the client its to large, and the client machine dont have the necesary memory to suport that in the navigator. So i chanche my grid to one row of controls, and i put all the information in one html table. If i want to modify the one html table row, i have a link in that row, and automatic the information appear in the controls row and you can modify. So the controls row modify and insert information. From: "Stuart Donald" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Max Limit of post variables Date: Thu, 6 Feb 2003 11:18:51 -0800 I am trying to generate an html form with approximately 3000 post variables (1500 input type text and 1500 hidden, I am mimicing a grid control). The page will handle several hundred but it crashes with more. Is there a limit to the number of variables that can be sent post. Or is it possible I am violating some html tag rules and the browser does not have a too much problem with the few hundred post variables. I am using apache2, php4 and Explorer for the browser, however it also crashes in Netscape (but not as bad). Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] limiting characters
You can use the substr function: $myoutput = "This is my sample output."; $myoutput = substr($myoutput,0,10)."..."; From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP] limiting characters Date: Wed, 19 Feb 2003 07:00:52 +0800 Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that perfectly support it? Example: $myoutput = "This is my sample output."; Required Output: This is my Any idea? Thanks in advance for the replies mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PDF Creation
I'm trying to use PDFreportsLite in Windows. in the /src folder, there is a rep.php example. But when i run the rep.php script, nothing apears, only the white page and the window done status. In the PDFReportsLite.php, i set: $MM_PDFReportsLite_HOSTNAME = "127.0.0.1"; $MM_PDFReportsLite_DBTYPE = "mysql"; $MM_PDFReportsLite_DATABASE = "pdfreportslite"; $MM_PDFReportsLite_USERNAME = "root"; $MM_PDFReportsLite_PASSWORD = "root"; In the Yaps.inc.php, i set: if (!defined('YTMP_DIR')) define('YTMP_DIR',"./tmp"); // Complete GhostScript filename if (!defined('YGS_DIR')) define('YGS_DIR',"./gs"); Can you help me? From: "Alexandru COSTIN" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] Re: PDF Creation Date: Thu, 13 Mar 2003 22:17:37 +0200 Hello, You should also look at http://www.interakt.ro/products/PDFreportsLite/ It allows you to avoid using the API and concentrate on the reports Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 411 2610 "Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am just getting into PDF creation and I am having some issues. Can anyone > send me a simple script that creates a PDF doc. I would like it to open in > the browser after creation, not create a file. If someone has a simple one > with an image placement as well that would be great. I can figure it out if > I have a working one, but everything I tried so far does not work. Here is > the latest I tried and the error I get. > > Warning: Wrong parameter count for pdf_close_image() in > /home/inxdesig/public_html/demos/pennytraders.com/pdf.php on line 20 > > Fatal error: PDFlib error: function 'PDF_stroke' must not be called in > 'page' scope in /home/inxdesig/public_html/demos/pennytraders.com/pdf.php on > line 22 > > > > > $pdf = PDF_open(); > pdf_set_info_author($pdf, "Luca Perugini"); > PDF_set_info_title($pdf, "Brochure for FlyStore"); > pdf_set_info_creator($pdf, "See Author"); > pdf_set_info_subject($pdf, "FlyStore"); > PDF_begin_page($pdf, 595, 842); > PDF_add_outline($pdf, "Item ".$data[1]); > pdf_set_font($pdf, "Helvetica-Bold" , 20, winansi); > pdf_set_text_rendering($pdf, 0); > pdf_show_xy($pdf, "FlyStore Catalogue 2000",50,780); > > PDF_show_xy($pdf, "Item : " .$data[1], 100, 700); > > PDF_show_xy($pdf, "Description : " .$data[2], 100, 620); > > $im = PDF_open_jpeg($pdf, "pass4_sml.jpg"); > pdf_place_image($pdf, $im, 100, 300, 3); > pdf_close_image ($im); > > pdf_stroke($pdf); > PDF_end_page($pdf); > PDF_close($pdf); > > > ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Free compiler for Win
I need to know how to compile php code with ms visual studio 6.0. Thanks, RB. PHP is ANSI compliant, thus, theoretically, any compiler should be able to build it. Though, MS Visual Studio 6 is the one used for PHP windows version. That's not free. _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] paper size print problem
I want to set up a specific size of paper to print a report. I made this with a PDF document and in screen looks like the size that i need, but when i print it, the printer doesn't respect the size and always print with the letter or default acrobat size. I check the printer properties and doesn't have a customs size option. What can i do? Thanks, RB _ MSN. Más Útil Cada Día http://www.msn.es/intmap/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Free compiler for Win
I want a php code compiler. I wrote above visual studio 6.0 because i read in the mailking list archieve that it was posible with that software, but i want a good free compiler because i don't want to distribute my php code. Thanks RB From: Stuart <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Free compiler for Win Date: Thu, 31 Oct 2002 00:40:05 + On Wednesday, Oct 30, 2002, at 23:02 Europe/London, R B wrote: I need to know how to compile php code with ms visual studio 6.0. Do you want to compile PHP or PHP code? If you want to compile PHP itself full instructions are included in the source distribution. If you want to compile PHP code then I believe there are a couple about - Google should be able to find them for you - but I'm pretty sure none of them work within Visual Studio. If you are looking for a speed increase for a web site your best bet is the Zend accelerator: http://www.zend.com/store/products/zend-accelerator.php I hope that helps. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] command to determine the end of a page?
When you use, FPDF class (i think others pdf class too), you can setup the paper size in the document (pdf), but the printer don't care this paper size configuration and prints with the default paper size, and my printer don't have a custom size setup. Do you know who to print with custom size? Thanks, RB From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Evan Nemerson'" <[EMAIL PROTECTED]>, "'Jeff Bluemel'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [PHP] command to determine the end of a page? Date: Thu, 31 Oct 2002 12:16:24 -0600 [snip] Might not be the best solution, but you _could_ create PDFs of your data, then print those...? Really clunky, but you could do nice formatting type stuff... [/snip] You may want to try the FPDF class ... http://www.fpdf.org @HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with reference variables.
Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this warning: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. I'm trying to pass a variable by reference to a function, ex: myTestFunction(&$x); ?> Do anyones know the new sintax for use reference variables? I don't understand the warning text: "If you would like to pass it by reference, modify the declaration of [runtime function name]()." If anyone have an example, better.. thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with reference variables.
And when i call the myTestFunction function, i have to put & in the variable? ex: function myTestFunction(&$x) { funtion stuff here } myTestFunction(&$x) or myTestFunction($x) ? Thanks, RB From: Marek Kilimajer <[EMAIL PROTECTED]> To: PHP <[EMAIL PROTECTED]> Subject: Re: [PHP] Problem with reference variables. Date: Thu, 07 Nov 2002 19:09:06 +0100 change the function declaration to function myTestFunction(&$x) { ........ funtion stuff here } R B wrote: Hello, If i set display_errors = on and error_reporting = E_ALL in my php.ini file, then i get this warning: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. I'm trying to pass a variable by reference to a function, ex: myTestFunction(&$x); ?> Do anyones know the new sintax for use reference variables? I don't understand the warning text: "If you would like to pass it by reference, modify the declaration of [runtime function name]()." If anyone have an example, better.. thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array_change_key_case() warning...
Hello, I'm using array_change_key_case to return an array with all string keys uppercased. ex: $myArray = array_change_key_case($result,CASE_UPPER); If i have the display_errors = on and error_reporting = E_ALL in my php.ini then i get the warning: "Warning: Wrong datatype in array_change_key_case() call in." How can i fix this warning? Thanks, RB _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array_change_key_case() warning...
I'm making this: $result = mysql_fetch_array($this->stmt,MYSQL_BOTH); $result = array_change_key_case($result,CASE_UPPER); So the $result array is returned from a mysql function. I tried to put only MYSQL_ASSOC keys, but i get the same warning. I want to put all the keys in uppercase because i make an application with oracle and i need to migrate to MYSQL, and oracle return the keys in uppercase, then i don't want to replace all the keys of my application. The last solution is to put the @, but i want to know where is the problem. Thanks, RB. From: Maxim Maletsky <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] array_change_key_case() warning... Date: Thu, 07 Nov 2002 20:02:31 +0100 Are you sure you don't have something different from strings and integers in one of your keys? Anyway, you can still quiet the error up by prepeding the function with an at-mark: $myArray = @array_change_key_case($result,CASE_UPPER); -- Maxim Maletsky [EMAIL PROTECTED] "R B" <[EMAIL PROTECTED]> wrote... : > Hello, > > I'm using array_change_key_case to return an array with all string keys > uppercased. > > ex: > > $myArray = array_change_key_case($result,CASE_UPPER); > > If i have the display_errors = on and error_reporting = E_ALL in my > php.ini then i get the warning: > > "Warning: Wrong datatype in array_change_key_case() call in." > > How can i fix this warning? > > Thanks, > > RB > > _ > MSN Fotos: la forma más fácil de compartir e imprimir fotos. > http://photos.msn.es/support/worldwide.aspx > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Notice problem...
When i set display_errors = On and error_reporting = E_ALL in my php.ini, i get the next message for each variable that i use in the script: "Notice: Use of undefined constant varname ." How is the best solution for this problem, setting error_reporting = E_ALL & ~E_NOTICE or other method? Thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql date format
I'm using php with MySql. I'm migrating an php-oracle application to php-mysql. I need to know if exists any function in mysql similar to the "to_char" or "to_date" functions of oracle; or "format" function of access?. These functions make a date format or numeric format. ex: to_char(sysdate,'dd/mm/ hh:mi:ss') return a string with the actual datetime in the specified format. Thanks, RB _ Únete al mayor servicio mundial de correo electrónico: http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array_change_key_case() warning...
Now it's working well. I was making a mistake with the while's loop. I saw my mistake using the print_r function. Thanks, RB From: Maxim Maletsky <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] array_change_key_case() warning... Date: Fri, 08 Nov 2002 00:01:41 +0100 What does $result = mysql_fetch_array($this->stmt,MYSQL_BOTH); print_r($result); give you? --- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 On Thu, 07 Nov 2002 21:50:03 + "R B" <[EMAIL PROTECTED]> wrote: > I'm making this: > > $result = mysql_fetch_array($this->stmt,MYSQL_BOTH); > $result = array_change_key_case($result,CASE_UPPER); > > So the $result array is returned from a mysql function. > I tried to put only MYSQL_ASSOC keys, but i get the same warning. > I want to put all the keys in uppercase because i make an application with > oracle and i need to migrate to MYSQL, and oracle return the keys in > uppercase, then i don't want to replace all the keys of my application. > The last solution is to put the @, but i want to know where is the problem. > > Thanks, > > RB. > > > >From: Maxim Maletsky <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: "R B" <[EMAIL PROTECTED]> > >CC: [EMAIL PROTECTED] > >Subject: Re: [PHP] array_change_key_case() warning... > >Date: Thu, 07 Nov 2002 20:02:31 +0100 > > > > > >Are you sure you don't have something different from strings and > >integers in one of your keys? > > > >Anyway, you can still quiet the error up by prepeding the function with > >an at-mark: > > > >$myArray = @array_change_key_case($result,CASE_UPPER); > > > > > >-- > >Maxim Maletsky > >[EMAIL PROTECTED] > > > > > > > >"R B" <[EMAIL PROTECTED]> wrote... : > > > > > Hello, > > > > > > I'm using array_change_key_case to return an array with all string keys > > > uppercased. > > > > > > ex: > > > > > > $myArray = array_change_key_case($result,CASE_UPPER); > > > > > > If i have the display_errors = on and error_reporting = E_ALL in my > > > php.ini then i get the warning: > > > > > > "Warning: Wrong datatype in array_change_key_case() call in." > > > > > > How can i fix this warning? > > > > > > Thanks, > > > > > > RB > > > > > > _ > > > MSN Fotos: la forma más fácil de compartir e imprimir fotos. > > > http://photos.msn.es/support/worldwide.aspx > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > _ > Únete al mayor servicio mundial de correo electrónico: > http://www.hotmail.com > _ MSN. Más Útil Cada Día http://www.msn.es/intmap/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Other Notice problem...
This is not the same question i asked yesterday. When i set error_reporting = E_ALL and display_errors = On in my php.ini, i get the next message: "Notice: Undefined variable: varname in ". How can i fix this problem without setting error_reporting = E_ALL & ~E_NOTICE and/or display_errors = Off, or what way do you think is the best to resolve this problem? Thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Other Notice problem...
My code is: some code. if ($status == "ADD") { some code ... ... ... } ?> The message is: "Notice: Undefined variable: status in " I'm going to explain how my script work. I have an php page (addProduct.php) with an input form. I have 2 buttons (add and cancel) and a hidden control with name=status. If i press the add button, the page submit the form data to the same page () with status hidden control name set to ADD, so the if statement its true only if i press the add button. I see the message when i call the page to add the data not when i submit the data. How can i fix the problem? or there is another best way to do this? From: Marco Tabini <[EMAIL PROTECTED]> To: R B <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Other Notice problem... Date: 08 Nov 2002 10:25:46 -0500 This usually means that you're using a variable without having initialized it. For example $a = $b + 1; will give you that warning if no value is assigned to $b prior to this line. It's PHP's way of telling you that you might be doing something wrong. Perhaps if you post some of your code we can help better? Marco - php|architect -- The Monthly Magazine For PHP Professionals Come visit us on the web at http://www.phparch.com! On Fri, 2002-11-08 at 10:31, R B wrote: > This is not the same question i asked yesterday. > > When i set error_reporting = E_ALL and display_errors = On in my php.ini, > i get the next message: > > "Notice: Undefined variable: varname in ". > > How can i fix this problem without setting error_reporting = E_ALL & > ~E_NOTICE and/or display_errors = Off, or what way do you think is the best > to resolve this problem? > > Thanks, > > RB > > > > _ > Charla con tus amigos en línea mediante MSN Messenger: > http://messenger.microsoft.com/es > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > _ MSN. Más Útil Cada Día http://www.msn.es/intmap/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Other Notice problem...
The array_key_exists or isset is a good solution. About your comment, i have the register_globals=on. I have 2 questions: 1.- What's the relation to have register_globals=off with this notice message? 2.- I read the security comment about register_globals=on in the php.ini, but i set to on because if i set to off, i can't pass GET variables to other page. how can you pass GET variables to other page without setting register_globals=on? From: Ernest E Vogelsinger <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: [PHP] Other Notice problem... Date: Fri, 08 Nov 2002 17:14:30 +0100 At 17:04 08.11.2002, R B spoke out and said: [snip] >I'm going to explain how my script work. >I have an php page (addProduct.php) with an input form. I have 2 buttons >(add and cancel) and a hidden control with name=status. If i press the add >button, the page submit the form data to the same page ( >action="addProduct.php">) with status hidden control name set to ADD, so the >if statement its true only if i press the add button. >I see the message when i call the page to add the data not when i submit the >data. [snip] Ahhh your $status variable should be a form variable? Well, as pointed out many times the last days, register_globals is OFF by default since PHP v.4.something. Either turn register_globals on in your PHP.ini (bad and deprecated, read the security bulletins), or you refer to the _POST array: if ($_POST['status'] == "ADD") if the data is not set (the status control empty), you'll still get a notice about an undefined array index, so you might if (array_key_exists('status', $_POST)) { switch ($_POST['status']) { case 'ADD': break; default: echo 'Unsupported status!'; } } else echo 'No status sent!'; -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ _ MSN. Más Útil Cada Día http://www.msn.es/intmap/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Other Notice problem...
About your comment 1: if i have register_globals=on, why $status is not be set by PHP? About your comment 2: if i have 2 pages: p01.php and p02.php, with p01.php code: ... ... link ... ... and p02.php code: ... ... echo "$pp"; ... ... If i have register_globals=off, then when i click the link, in p02.php page, the echo command display nothing. If i have register_globals=on, then the echo command displays the value buy this way is deprecated. How can i run the script without problems having register_globals=off? Thanks, RB From: Ernest E Vogelsinger <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re: [PHP] Other Notice problem... Date: Fri, 08 Nov 2002 17:31:25 +0100 At 17:27 08.11.2002, R B spoke out and said: [snip] >The array_key_exists or isset is a good solution. >About your comment, i have the register_globals=on. >I have 2 questions: > >1.- What's the relation to have register_globals=off with this notice >message? If register_globals is OFF, $status will simply not be set by PHP. You can always access it as $_POST['status'] or $_REQUEST['status']. >2.- I read the security comment about register_globals=on in the php.ini, >but i set to on because if i set to off, i can't pass GET variables to other >page. how can you pass GET variables to other page without setting >register_globals=on? What do you mean by "pass it on to other page"? I'm afraid I don't get you. What are you trying to accomplish? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Other Notice problem...
And without using the $_GET[] array. From: Stuart <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] Other Notice problem... Date: Fri, 8 Nov 2002 16:52:50 + On Friday, Nov 8, 2002, at 16:44 Europe/London, R B wrote: if i have 2 pages: p01.php and p02.php, with p01.php code: ... ... link ... ... and p02.php code: ... ... echo "$pp"; ... ... If i have register_globals=off, then when i click the link, in p02.php page, the echo command display nothing. If i have register_globals=on, then the echo command displays the value buy this way is deprecated. How can i run the script without problems having register_globals=off? p02.php code: ... ... echo $_GET['pp']; ... ... -- Stuart _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.microsoft.com/es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Other Notice problem...
It's ok. I understand that i can't use plain variables with register_globals=on, but this is only for GET variables or to all variables? Thanks, RB From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Other Notice problem... Date: Sat, 9 Nov 2002 01:42:56 +0800 On Saturday 09 November 2002 01:02, Marco Tabini wrote: > Well, it's possible he's using an older version of PHP in which > superglobals did not yet exist. It looks to me as if he just wants to use plain $variable but with register_globals disabled that's just not possible. Unless you go through that extract($_POST) ritual, all of which is covered in the manual and archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The biggest problem with communication is the illusion that it has occurred. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Search engine simulation...
I'm making a php database application. The database tables have many rows and in a webpage i have to display a big number of that rows, but the browser display the information so slow or the browser chash. So i was thinking to make a search engine simulation or webmail simulation, that display the rows from 10 x 10 (rows) or N x N. I was thinking to add a new correlative column to the database table, and use it, but in this case, i have to display the rows in the add order. I want to display the rows in alphabetic or other order. I have 2 versions of the application, in oracle and mysql. In the oracle version i find a solution with a query, buy only run in oracle 8i because older version don't have some features i used. I tried to put all the data in a php array and display n x n, but i don't know how efficiently it is. Do you know a query solution (oracle or mysql) or a php efficiently solution for this problem? Thanks, RB _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Search engine simulation...
I was thinking in limit for mysql. But my question is how to make all the process. When you click the number 5 for example in the bottom numbers, how to knows the rows to display, etc... From: Marco Tabini <[EMAIL PROTECTED]> To: R B <[EMAIL PROTECTED]> CC: PHP-General <[EMAIL PROTECTED]> Subject: Re: [PHP] Search engine simulation... Date: 08 Nov 2002 13:09:57 -0500 You should be able to sort records and limit the output with MySQL... -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmer Come visit us at http://www.phparch.com! << message3.txt >> _ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Search engine simulation...
Excellent information for the mysql version. I was thinking to use the limit function because i'm in the develop process of the mysql version. Someone have an idea for the oracle version? I tried to use the oracle's numrow, but oracle create this number before the order by command... Maybe a php solution is the best, because is compatible with both versions. Thanks, Rodolfo From: Rodolfo Gonzalez <[EMAIL PROTECTED]> To: R B <[EMAIL PROTECTED]> Subject: Re: [PHP] Search engine simulation... Date: Fri, 8 Nov 2002 12:31:19 -0600 (CST) On Fri, 8 Nov 2002, R B wrote: > Do you know a query solution (oracle or mysql) or a php efficiently solution > for this problem? Sure, I think you need SQL's LIMIT x,n to display N rows per page, starting from the rom X. Is that what you need, isn't it?. There are quite a few scripts for this in hotscripts.com, for example, and you can take them as a reference on how to do that. _ MSN. Más Útil Cada Día http://www.msn.es/intmap/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] avi to wmv convert
I'm making a php video system, buy i need to convert the avi videos to wmv videos. Some one knows a good, free, and functional avi to wmv converter? Thanks, RB _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.latam.msn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] avi to wmv convert
In what manual? From: Jason Wong <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP] avi to wmv convert Date: Sat, 21 Aug 2004 00:45:07 +0800 On Saturday 21 August 2004 00:36, R B wrote: > I'm making a php video system, buy i need to convert the avi videos to wmv > videos. > Some one knows a good, free, and functional avi to wmv converter? There are a few listed in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* panic ("No CPUs found. System halted. "); 2.4.3 linux/arch/parisc/kernel/setup.c */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and Apache configuration
Hello, I need that every time someone access one image file in my server, then redirect to a php file. I make this well with: Redirect 301 imagefile.jpg scriptfile.php But i need that the file scriptfile.php can only be accessed by this redirect command. If someone try to access directly from the url http://www.mydomain.com/xyz/scriptfile.php, i want to send an error access. I tried with: Order allow,deny Deny from all But with this configuration, the redirect command cant access the scriptfile.php Do you have the solution for this? thanks.
Re: [PHP] PHP and Apache configuration
I like this apache solution, but if i put SetEnvIf Referer "^http://www.yourdomain.com"; local_referal Then i can access the file putting this path in the URL: http://www.yourdomain.com/xyz/scriptfile.php And i don´t want the script to be access by the url. That is the main problem. Thanks On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes wrote: > > ... > > This may be of some help. It's from the Apache website and only allows > access if the Referer header is sent by the browser and is > www.yourdomain.com, ie. Direct access is not permitted: > > ### > SetEnvIf Referer "^http://www.yourdomain.com"; local_referal > > Order Deny,Allow > Deny from all > Allow from env=local_referal > ### > > -- > Richard Heyes > > HTML5 Graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.org (Updated January 17th) >
[PHP] Non-traditional software accessing my website
Hello, Is there a way to be sure that a website is going to be accessed only by traditional browsers and not from another software that send to the server the same headers of any of the traditional browsers? For example, supose that i only want to give access to my site users from firefox, ie, chrome and safari, because i know that the users can´t download the copyright information of the website to the temporary files with anyone of this browsers. How can i be sure that someone that develop a mini-browser or a software can´t access my site sending the same header information of traditional browsers? In this case, the validation of HTTP_USER_AGENT isn´t a solution. Thanks.
[PHP] Include PHP library file in the .htaccess
Hello. Supose that i have this script: I want to know if there is a way to call the lib.php library from the .htaccess instead of the PHP script? Thanks.
[PHP] mysql_query - CREATE DATABASE
Hello, When i create a mysql database with the next command: mysql_query("CREATE DATABASE my_db",$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i detect with PHP the complete name of the new database created? Thanks
Re: [PHP] Re: mysql_query - CREATE DATABASE
I´m creating a software that use a database, and i want to include a install.php file to install the database of the software. I can create the database in the install.php file with mysql_query("CREATE DATABASE my_db",$con) But when is created, i don´t know the complete name of the database, because a prefix is added. On Mon, Feb 9, 2009 at 12:17 PM, Shawn McKenzie wrote: > R B wrote: > > Hello, > > > > When i create a mysql database with the next command: > > > > mysql_query("CREATE DATABASE my_db",$con) > > > > In the server is created the database, but usually the name is created > with > > a prefix. > > > > In this case: someuser_my_db > > > > How can i detect with PHP the complete name of the new database created? > > > > Thanks > > > > There may be a better way, but off the top of my head, translate this to > PHP: > > use information_schema; > select SCHEMA_NAME from SCHEMATA where SCHEMA_NAME like '%_my_db'; > > Now of course you could have multiples there, like user_my_db and > user2_my_db. Not sure about that, maybe it would be the last one in the > returned records? > > -- > Thanks! > -Shawn > http://www.spidean.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Re: mysql_query - CREATE DATABASE
I´m looking that i have another problem: I´m making a software to install in any server. The software needs a database, so i want to create a script install.php to create the database when this script is executed. At this point of the instalation, i don´t know none of the users that are defined in mysql. If i use this command: mysql_query("CREATE DATABASE my_db",$con) first i need to connect to mysql with the command mysql_connect But at this point, i don´t know none of the users that are defined in mysql. So, what i do in this case? Thanks On Mon, Feb 9, 2009 at 12:31 PM, Shawn McKenzie wrote: > Shawn McKenzie wrote: > > R B wrote: > >> Hello, > >> > >> When i create a mysql database with the next command: > >> > >> mysql_query("CREATE DATABASE my_db",$con) > >> > >> In the server is created the database, but usually the name is created > with > >> a prefix. > >> > >> In this case: someuser_my_db > >> > >> How can i detect with PHP the complete name of the new database created? > >> > >> Thanks > >> > > > > There may be a better way, but off the top of my head, translate this to > > PHP: > > > > use information_schema; > > select SCHEMA_NAME from SCHEMATA where SCHEMA_NAME like '%_my_db'; > > > > Now of course you could have multiples there, like user_my_db and > > user2_my_db. Not sure about that, maybe it would be the last one in the > > returned records? > > > > Using mysql_list_dbs() and mysql_db_name() would acheive the same, > however from the man page of mysql_db_name() there is a neat contib: > > $result = mysql_query("SELECT DATABASE()"); > $dbname = mysql_result($result, 0); > > -- > Thanks! > -Shawn > http://www.spidean.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Re: mysql_query - CREATE DATABASE
thank you. On Mon, Feb 9, 2009 at 1:14 PM, Shawn McKenzie wrote: > R B wrote: > > I´m looking that i have another problem: > > > > I´m making a software to install in any server. > > > > The software needs a database, so i want to create a script install.php > > to create the database when this script is executed. > > > > At this point of the instalation, i don´t know none of the users that are > > defined in mysql. > > > > If i use this command: > > > > mysql_query("CREATE DATABASE my_db",$con) > > > > first i need to connect to mysql with the command > > > > mysql_connect > > > > But at this point, i don´t know none of the users that are defined in > mysql. > > > > So, what i do in this case? > > > > Thanks > > > > > > Well, obviously the user will have to supply the username and password. > There's no way around that. So after you know the username you can > create the db and then check if the db exists as you have named it > (my_db), and if not check for ($username_my_db), if not that then one of > the examples I gave you, or just skip right to listing the databases. > > > -- > Thanks! > -Shawn > http://www.spidean.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
[PHP] Execute flash files with PHP
Hello. I have two scripts in php that reads a .swf or .flv movie file, like this: SCRIPT # 1 SCRIPT # 2 The script # 1 with the .swf file works fine: the video is executed with streaming. The script # 2 with the .flv file is executed but without streaming. If i execute the movie.flv directly (without the php script), then it´s executed with streaming. Do you know how can i do to execute the .flv file with php and with straming? I tried with fopen, readfile, but don´t works. Thank you
[PHP] Amazon s3 and PHP
Hi, Do you know if amazon s3 hosting support php files? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Amazon s3 and PHP
To configure a AMI have some extra fee? Do you have a link to read how to run php files in amazon s3? Thanks. On Wed, Jun 3, 2009 at 11:13 AM, Bastien Koert wrote: > On Wed, Jun 3, 2009 at 12:27 PM, R B wrote: > > Hi, > > > > Do you know if amazon s3 hosting support php files? > > > > Thanks. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > yep, depending on the AMI you use to set up the server. There are many > supporting php5, but not many supporting mysql5 > > > -- > > Bastien > > Cat, the other other white meat >
[PHP] Problem with copy() function
Hi, I'm trying to copy a file like this: copy("home/xxx/public_html/yyy/zzz/index.php", "home/xxx/public_html/yyy/www/index.php") and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? Thanks,
[PHP] Premature end of script
Hello, 5 years ago, y developed a php system and was working fine. But 20 days ago, when y try to access to some pages (not all the pages), in the log appears this message and the page is not displayed: ==> /usr/local/apache/logs/error_log <== [Wed Jul 3 02:36:58 2013] [error] [client 10.30.6.161] Premature end of script headers: /home/capitale/public_html/miembros/myscript.php Can you help me please with this error? Thank you.
[PHP] PHP with C++
Hi, I have a C++ script containing the function hello(x, y, z) I want to access this C++ function from PHP, and output with PHP the return information. How can i do this? Thank you.
[PHP] Another way to send variables
Hello. I have this script (script1.php): I need to send the $a variable to script2.php, but i don´t want to send it in the url. Is there another method? Maybe with another header instruction without putting in the url? Thank you.
[PHP] Memory cache problem
Hello, I´m making a video manual, but i don´t want to be cached in the client machine. I make a script like this: With Internet explorer the script works fine. But Firefox have two types of cache: Memory cache and disk cache. With firefox disk cache, the script works fine, because don´t appears in the disk cache, but i have problems with the Memory cache. How can i avoid to appears in the firefox memory cache?
Re: [PHP] Memory cache problem
The video manual it´s not for me, it´s for a customer and he don´t want to be cached in the client machine... If you put in firefoxin the url area: about:cache , firefox display the Memory cache and the Disk cache... I search in both caches, and the video appears in the memory cache. On Fri, Jun 13, 2008 at 4:17 PM, Stut <[EMAIL PROTECTED]> wrote: > On 13 Jun 2008, at 23:12, R B wrote: > >> I´m making a video manual, but i don´t want to be cached in the client >> machine. >> >> I make a script like this: >> >> > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); >> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); >> header("Cache-Control: no-store, no-cache, must-revalidate"); >> header("Cache-Control: post-check=0, pre-check=0", false); >> header("Pragma: no-cache"); >> >> readfile($video_name); >> ?> >> >> With Internet explorer the script works fine. But Firefox have two types >> of >> cache: Memory cache and disk cache. >> With firefox disk cache, the script works fine, because don´t appears in >> the >> disk cache, but i have problems with the Memory cache. >> >> How can i avoid to appears in the firefox memory cache? >> > > Why don't you want it cached? > > What makes you think it's cached in memory on FF? > > -Stut > > -- > http://stut.net/
[PHP] copy, open, or manipulate an image hosted in a https server
Hello, I need to copy, open or manipulate a gif images that is hosted in a https server. But when i try to do this, i recive a warning like this: *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream: Invalid argument in . I recive a similar message if i use: copy(https:///aaa.gif,' bla bla bla '); fopen (https:///aaa.gif, ); How can i resolve this problem and use this image? Thanks, RB
Re: [PHP] copy, open, or manipulate an image hosted in a https server
It's not a syntaxis problem. On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2006-09-12 at 12:27 -0600, R B wrote: > Hello, > > I need to copy, open or manipulate a gif images that is hosted in a https > server. > > But when i try to do this, i recive a warning like this: > > *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream: > Invalid argument in . > > I recive a similar message if i use: > > copy(https:///aaa.gif,' bla bla bla '); > > fopen (https:///aaa.gif, ); > > How can i resolve this problem and use this image? Ummm, you're missing quotes around the URL portion of the argument. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `'
Re: [PHP] copy, open, or manipulate an image hosted in a https server
I think it's a security https problem. I was reading that with IIS, you can't use fopen in a https server... I think i have this problem also with copy... Some ideas? On 9/12/06, R B <[EMAIL PROTECTED]> wrote: It's not a syntaxis problem. On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2006-09-12 at 12:27 -0600, R B wrote: > > Hello, > > > > I need to copy, open or manipulate a gif images that is hosted in a > https > > server. > > > > But when i try to do this, i recive a warning like this: > > > > *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open > stream: > > Invalid argument in . > > > > I recive a similar message if i use: > > > > copy(https:///aaa.gif,' bla bla bla '); > > > > fopen (https:///aaa.gif, ); > > > > How can i resolve this problem and use this image? > > Ummm, you're missing quotes around the URL portion of the argument. > > Cheers, > Rob. > -- > .. > | InterJinn Application Framework - http://www.interjinn.com | > :: > | An application and templating framework for PHP. Boasting | > | a powerful, scalable system for accessing system services | > | such as forms, properties, sessions, and caches. InterJinn | > | also provides an extremely flexible architecture for | > | creating re-usable components quickly and easily. | > `' > >
[PHP] Recomended host
Hello. I'm looking for a host to put my website. I was looking godaddy.com, but i read in phplist forum that godaddy have limitations in the number of mail to send per day. Someone can recomend me a good host provider, with good stability, good support, good features, and no limitation in the use of a list of members...? Thanks
[PHP] PHP and Apache
Hello, I´m developing a PHP system that needs one of these lines in the .htaccess, depending of the server configuration: AddHandler application/x-httpd-php .xyz or AddHandler application/x-httpd-php4 .xyz or AddHandler application/x-httpd-php5 .xyz How can i detect "on the fly" which line i have to use?
Re: [PHP] PHP and Apache
The people that will install this system, don´t have programming knowledge. They have a website, buy don´t have knowledge of configurations. If i add all the lines, it don´t works, unless the last line is the correct for that particular server. > > > Why not just read the manual and add the appropriate line for your version > of PHP ? > > Makes the most sense. > > Or add all the lines. > > Pretty much an Apache list question though. > > Wolf >
[PHP] Sending POST variables without html code
Hi, I need to create a cron job PHP script to access every day the information of a webpage that is out of my server. This webpage needs POST variables to display the information. How can i send this POST variables from my PHP script without having a html form, and receive the required information? Thanks, RB
[PHP] Create PHP form from MySQL table structure
Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any suggestions. -- Ronnie MacGregor Scotland Ronnie at dBASEdeveloper dot co dot uk www.dBASEdeveloper.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Good Free PHP Editor?
On 12 Mar 2001 03:51:13 -0800, [EMAIL PROTECTED] (Nick Davies) wrote: >How about linux ones? > >I just tend to use vim or emacs but i'm sure there are some out there. I've used Xemacs. Do you know if there is a PHP mode for it? Otherwise you could check out Screem (www.screem.org) or Quanta (quanta.sourceforge.com). V -- PHP General 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] array_diff usage
I'm daft. I don't understand the PHP Manual. I have two arrays: Open[0] contains 1 2 3 4 5 Closed[0] contains 1 2 Now: $test = array_diff($Open, $Closed); $lines = count($test); print $lines; Gives me: 1 I thought it should be 3. While: for ($counter =0; $counter <= $lines -1; $counter++) { print $test[0]; } gives me "5". What I was hoping was that $lines should be 3 and that I'd get 3 4 5 printed. V e r b a l -- PHP General 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]