[PHP] db to xml using php
sir, i downloaded the zip from http://php.chregu.tv/sql2xml/. and then i couldnt know what i am suppose to do.. when i tried running the file am getting error Fatal error: main() [function.require]: Failed opening required 'XML/sql2xml.php' (include_path='.:/usr/local/lib/php') in /home/kkarthik/web/XML_sql2xml-0.3.2/sql2xml_ext.php on line 20 what shd i do.. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] db to xml using php
can anyone help me to write from db to xml using php. if there is any site please do refer me. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Fwd: db to xml using php]
--- Begin Message --- can anyone help me to write from db to xml using php. if there is any site please do refer me. thanks, karthik --- End Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-help
sir, i'll explain my problem.and if anyone could help me i'll be thankful. i am displaying a content read from a file into a text area of a form. when i make changes andretrieve back in the text area, i encounter a problem.. i.e., when i enter text="please enter" i have an outputas text= /" please enter/" thanks, kkarthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-help
hello sir, i am so happy about the immiediate response for any of my question. i would like to create a static html page. using cronjob regenerate it every 24 hours. how can i do it using php. thanks, kkarthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-help
sir, iam new to php i'll explain my problem .if u could help i'll be very thankful... in my mysql database i have two tables i.e., table1 and table2. i have an array of result from one query "select feild1 from table1 " i have to use this result in another query. "select field2 from table 2 where field1 = (array of first query iterated)" can u help me doing this in php. thanks, karthik
[PHP] php-help
dear friends, can u help me to find the current directory where my php files are.. using php. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help me
dear sir, i'd like to get a date from my database(mysql).and then show a combobox of calendar(date-month-year) with the retrieved data selected. can you help me doing this?? am new to php. thanks, karthikeyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help me
i am so surprised for the immediate reply.thank you so much. i'll be thank ful again if you could help me finding the current date and time using php. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [php] -help me
i have got string as "/home/karthik/welcome.php/view.php" i just need "view.php" how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] help me
can u help me to use $_SERVER['remote_addr'] to find the IP address ? i am new to php. i also want to find what page of my site he is viewing ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with nl2br
Hey, I would just suggest that you "Explode" the data based on \n and then "walk" through it adding and tags as necessary.. shouldn't be too diffcult. hth -K On Fri, 21 Jan 2005 14:19:38 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > Greetings all, > > Due to style sheet stuff I need to modify the nl2br (IE create or use a > different function). > > I am pulling data from a database and using nl2br, which does the standard. > > some text copy > > Some more copy > > What I want instead is > Some text copy > > some more text copy > > Again this is because of css and the designer I am workign with. Is there a > built in function that can do something like this or another function out > there. So far I cannot see anything. Or is there a way to view the coding of > the nl2br function so I can create a new function modifying how it does it. > > Just asking so I do not have to create something from scratch. > Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detecting image types for uploaded images
Hi, same thing mate - comes up as "image/jpeg image/jpeg" - The images in question are definitely pjpegs - i.e. checking file type during uploads registers them as pjpegs. Cheers, -K On Mon, 8 Nov 2004 01:17:24 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What about mime_content_type()... see what that returns. > > Nate > > -Original Message- > From: Karthik [mailto:[EMAIL PROTECTED] > Sent: Monday, November 08, 2004 12:35 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Detecting image types for uploaded images > > Hi, > > How do I differentiate between progressive and standard jpegs for > files "already" on the server ? getimagesize does return a mime type, > but doesn't seem to differentiate between image/jpeg and image/pjpeg > and returns image/jpeg for all jpeg images. > > Any ideas? > Thanks > -K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Detecting image types for uploaded images
Hi, How do I differentiate between progressive and standard jpegs for files "already" on the server ? getimagesize does return a mime type, but doesn't seem to differentiate between image/jpeg and image/pjpeg and returns image/jpeg for all jpeg images. Any ideas? Thanks -K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] plz check the warning message
Hi, What Renze Munnik said is absolutely right. U r trying to send headers after outputing something. So u either have to write ur code before outputing anything or if u want to keep ur code like that only, but still want it to work, go to php.ini and change the settings for output_buffering. Karthik. - Original Message - From: Balaji Ankem To: Yamin Prabudy Cc: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 2:44 PM Subject: [PHP] plz check the warning message This document contains frames, which cannot be edited. The original document is attached. -- -- 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]
Re: [PHP] HELP...session
Hi, I hope u r regisitering the session variable (i.e. username) on submit of index.php. If u r doing this then u can access the same by using $HTTP_SESSION_VARS['username'] assuming u r registering ur session variable as username. I hope all the frames have session_start also. karthik. - Original Message - From: "Yamin Prabudy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 10, 2001 10:02 AM Subject: [PHP] HELP...session Hi there I need help about session see i have a page (index.php) that used this session_start(); session_register(username); and i got input username after the submit button is click i move into a frame pages.. then in the frame i define again session_start(); for each frame...i got two frame.. i intended to parse the username into my frame...but got nothing i intended to parse the username all over the pages (in frame) until he/she log out can anyone help me with it Thanks in Advance Yamin Prabudy -- 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]
Re: [PHP] CGI error
Hi, In install.txt there seems to be settings on how to install under various web servers. There is nothing on CGI errors etc. And i have followed the procedure which was given in install.txt for configuring PHP. Still this problem occurs. Help, Karthik. - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "karthik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 09, 2001 1:50 PM Subject: Re: [PHP] CGI error > On Thursday 09 August 2001 07:47, karthik wrote: > > Hi, > > > > I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in CGI > > mode. > > > > I seem to be getting "CGI Error > > The specified CGI application misbehaved by not returning a complete set of > > HTTP headers. The headers it did return are: " > > > > > > Why is this error happening ? > > Read, and follow the instructions on this matter as documented towards the > end of the install.txt file which came with your distribution. > > Cheers > -- > Phil Driscoll > > -- > 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 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] CGI error
Hi, I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in CGI mode. I seem to be getting "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: " Why is this error happening ? Please dont ask me to shift to DLL mode of running PHP as it gives worse problems like access violations etc. It would be really helpful if someone could tell me as to how correct the same. Thanks, Karthik.
Re: [PHP] installation on windows
Hi, The best way would be to create a dir inside inetpub\wwwroot\ and give this directory execute permission in PWS. It should start working then. If it doesnt check ur php.ini for settings. best of luck, Karthik. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 3:59 PM Subject: [PHP] installation on windows > Dear Friends, > > I am new to PHP (but familiar with ASP,JSP) and would like to have some > guidance notes from you. > I am using windows 98 OS on my PC with PWS installed on it. > I want to install PHP that runs on windows using PWS. > For this I have done the following: > 1. Downloaded php for windows from www.php.net , its is of about 738 > bytes. > 2. I extracted the same in c:\php folder. > 3. shifted the php.ini in c:\windows folder. > > My queries are: > 1. In which folder I have to place my php files? whether in c: > \inetpub\wwwroot folder where other asp files I put. > Because, when I put test.php file in c:\inetpub\wwwroot folder and > called by using http://localhost/test.php , It showed a blank white > sheet that is without interpreting php. > 2. Whether I have omitted any step for installation? > >Pl. clarify. > > >Ajay K. Ratra >Ludhiana (INDIA) >[EMAIL PROTECTED] > > > > -- > 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 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]
Re: [PHP] splitting text after 25 words
Hi, Best way i guess would be traverse the whole string and check for space. Have a counter var which keeps count of the space. At the 25th occurence do something like this - $text_a = substr($text, 1, $i); i assume that $i is the increment var in the loop. $text_b = substr($text, $i+1); This should give u the strings in 2 vars. Now u can add anything with $text_a."...Click here ".$text_b Hope i was helpful, Karthik. - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 10:27 AM Subject: [PHP] splitting text after 25 words > Hi all, > > I'd like to split a text block at 25 words, as a teaser for the full > article. Now I know how to split at a certain character, but i don't > want a half word or anything, so I want (i guess) to hunt for the 25th > occurence of " " (a space), and split $text into two new variables, > $text_a and $text_b. > > Then I'll prolly want append something like "... click here to read > more" on the end of $text_a. > > Seems easy enough, but I can't see anything in the manual about > splitting on a numbered occurence of a string (but I could be looking > in the wrong spot :) > > Running PHP4 BTW > > > > Thanks heaps in advance > Justin French > > -- > 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 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] Header error!
Hi, I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in CGI mode. I seem to be getting "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: " Why is this error happening ? Please dont ask me to shift to DLL mode of running PHP as it gives worse problems like access violations etc. It would be really helpful if someone could tell me as to how correct the same. Thanks, Karthik.