Re: [PHP] Link to .php page with session

2009-06-17 Thread santel
Stuart wrote: 2009/6/16 santel : Hi, I have a .php page that use sessions and shows a file .FLV by transcoding, on the fly, from any format video to FLV using a shell command [ system("/usr/bin/ffmpeg -re -i ./file.wmv -f flv -an -sameq -") ]. In a .php page: case 1): if j put a link to an

Re: [PHP] Link to .php page with session

2009-06-16 Thread Daniel Brown
On Tue, Jun 16, 2009 at 08:23, Stuart wrote: > > I may have interpreted your problem incorrectly, but I think your > problem is due to the session data not being saved until the script > has finished running, including the system call. To get around this > you can save and close the session before

Re: [PHP] Link to .php page with session

2009-06-16 Thread Stuart
2009/6/16 santel : > Hi, > > I have a .php page that use sessions and shows a file .FLV by > transcoding, on the fly, from any format video to > FLV using a shell command [ system("/usr/bin/ffmpeg -re -i ./file.wmv -f flv > -an -sameq -") ]. > > In a .php page: > case 1): if j put a link to any pag

Re: [PHP] Link problem - newbie question

2007-09-09 Thread brian
Suvarna Damodaran wrote: Hi, I think I am having an unusual problem - don't know where I am going wrong. This is the code that I use to display the page once the user is logged in. I want to display a Logout link so the user can logout. But, for some reason, I am unable to display both the wel

Re: [PHP] link counting

2007-04-06 Thread Paul Novitski
At 4/6/2007 06:01 AM, Sebe wrote: i thought of an idea of counting the number of links to reduce comment spam. I do this by counting the number of 'http://' instances in the text. You can use a variety of PHP functions: - substr_count() - preg_match_all() then count() the result array - st

RE: [PHP] link counting

2007-04-06 Thread Jay Blanchard
[snip] i thought of an idea of counting the number of links to reduce comment spam. unfortunately my methods is not reliable, i haven't tested it yet though.. anyone have maybe a better solution using some regexp? $links = array('http://', 'https://', 'www.'); $total_links = 0; foreach($links a

Re: [PHP] link counting

2007-04-06 Thread Tijnema !
On 4/6/07, Sebe <[EMAIL PROTECTED]> wrote: i thought of an idea of counting the number of links to reduce comment spam. unfortunately my methods is not reliable, i haven't tested it yet though.. anyone have maybe a better solution using some regexp? $links = array('http://', 'https://', 'www.')

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Rahul Sitaram Johari
Yes, and while I dig up on glob(), to be quite honest, the exec is working very effectively and fast for my searches & download application - so can't complain about it one bit. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjo

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Tijnema !
On 3/30/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Rahul Sitaram Johari wrote: > Ave, > > This is actually a continuation of my previous ³Show files using Wildcards² > thread, but a different problem. > > Code: > > exec("find /Users/rjohari/Documents/XFER/espi -type f -name > ".$row['PHO

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Jochem Maas
Rahul Sitaram Johari wrote: > Ave, > > This is actually a continuation of my previous ³Show files using Wildcards² > thread, but a different problem. > > Code: > > exec("find /Users/rjohari/Documents/XFER/espi -type f -name > ".$row['PHONE']."*.vox", $files); > foreach ($files as $v

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Ave, You've actually raised pretty valid security issues. The files in that particular mounted share can be publicly accessible so I'm not worried about that. But I'll certainly validate phone number before executing the find command. Thanks! ~~~ Rahul Sitaram

Re: [PHP] Link to download files on another part of system - SOLVED!

2007-03-29 Thread Rahul Sitaram Johari
Ave, I think I did it! I created a sharepoint within my web server (inside my website) and mounted the share on that sharepoint. Once I did that, I specified correct paths and my downloads are now working. I created a ³jump menu² select list and this is what I¹ve come up with: function o

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Roberto Mansfield
Only do this if all the files should be publicly accessible. Otherwise, you'll need to create a php wrapper to do authorization before sending the file. -Roberto Rahul Sitaram Johari wrote: > Ave, > > I¹m going to try creating the sharepoint within my webserver, as suggested > by you and tijnem

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Ave, I¹m going to try creating the sharepoint within my webserver, as suggested by you and tijnema. I think that¹s probably the easiest and quickest solution to this. I¹ll report back! Thanks! On 3/29/07 4:48 PM, "Daniel Brown" <[EMAIL PROTECTED]> wrote: > > Rahul, > > Your best bet

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Zoltán Németh
2007. 03. 29, csütörtök keltezéssel 22.46-kor Tijnema ! ezt írta: > On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: > > Ave, > > > > This is actually a continuation of my previous ³Show files using Wildcards² > > thread, but a different problem. > > > > Code: > > > > >exec("find

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Tijnema !
On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem. Code: ".basenam e($value).""; } ?> The files I¹m linking to, in order to let the User download them, reside on

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Correction, please disregard previous post: Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem. Code: ".basenam e($value).""; } ?> The files I¹m linking to, in order to let the User download them, reside on a mounted sh

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:24 PM > To: 'Tana'; php-general@lists.php.net > Subject: RE: [PHP] link on user uploaded pic > > > -Original Message- > > From: Tana [mai

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
> -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM > To: php-general@lists.php.net > Subject: [PHP] link on user uploaded pic > > Hi > > which is the best way to change this code > > > > to > >src="images/user_upload/akarmi.jpg">

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Jake McHenry
Not quite sure what you mean, what you posted is what you need to do to make the image a link... And that's what you wanted... So.. What are you asking? Jake > -Original Message- > From: Tana [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 1:02 PM > To: php-general@lists.php

Re: [PHP] link problem

2006-08-03 Thread Richard Lynch
On Mon, July 31, 2006 4:38 pm, Ross wrote: > I have lots of folders and files some are in the main public_html > folder and > some are in their own foder. I need to find a way to make all the > links > relative to the public_html folder > > For example if I am in the 'gallery' folder, the main inde

Re: [PHP] link problem

2006-07-31 Thread Jochem Maas
Ross wrote: > I have lots of folders and files some are in the main public_html folder and > some are in their own foder. I need to find a way to make all the links > relative to the public_html folder > > For example if I am in the 'gallery' folder, the main index file is located > at ../index

Re: [PHP] link problem

2006-07-31 Thread Drew Butler
Try something like realpath( dirname(__FILE__)."../" ); __FILE__ should give you the full path of the file being run, dirname() will break the directory path from it and ../ will drop it down one dir ... real path will give you a solid final path. ~Drew On 7/31/06, Ross <[EMAIL PROTECTED]> wro

Re: [PHP] link generating script

2005-04-25 Thread Cas
> > > if ($n=$Pagenum) {print ' ' . $n;} > > > > > > > > else > > > > > > > > {print ' '.$n.'';} > > > > print ' '; > > > > > > > > > > > > >

RE: [PHP] link generating script

2005-04-25 Thread Ryan A
nt ' '.$n.'';} > > print ' '; > > > > > > > > -Original Message- > > From: Ryan A [mailto:[EMAIL PROTECTED] > > Sent: Monday, April 25, 2005 8:47 AM > > To: Ed Dorsch > > Cc: php > > Subject: Re: [PHP] link

Re: [PHP] link generating script

2005-04-25 Thread Ryan A
On 4/25/2005 5:23:16 PM, Ed Dorsch ([EMAIL PROTECTED]) wrote: > I'm scripting a photo gallery page that generates links (1 through $max), sends the selected number in the url, then displays a set of photos based on the number. However, I want it to display the number of the current gallery differe

Re: [PHP] link problem - Apache or PHP?

2005-04-03 Thread BAO RuiXian
germ germ wrote: In my HTML file the HREF tag is: google.com When clicked, the link in then directed to: http://10.10.1.5/test-a/ref/www.google.com Basically it seems like it appends the link to the URL path. Yes, guess you have a base tag on the page, which reads http://10.10.1.5/test-a/ref. Pl

Re: [PHP] link problem - Apache or PHP?

2005-04-03 Thread Burhan Khalid
germ germ wrote: In my HTML file the HREF tag is: google.com When clicked, the link in then directed to: http://10.10.1.5/test-a/ref/www.google.com Basically it seems like it appends the link to the URL path. This sounds like a base href problem; nothing related to php or apache. -- PHP General Mai

Re: [PHP] link problem - Apache or PHP?

2005-03-31 Thread John Nichel
germ germ wrote: In my HTML file the HREF tag is: google.com When clicked, the link in then directed to: http://10.10.1.5/test-a/ref/www.google.com Basically it seems like it appends the link to the URL path. Is this a PHP or Apache problem and how do I fix it? -Aaron It's not a 'problem' of either

Re: [PHP] link to specific position in page

2005-02-23 Thread Richard Lynch
Johannes wrote: > I am building a dynamic thumbnail gallery. When you click the thumbnail > the larger image appears in the same document(not using frames). My two > problems are: > *When I click on the thumb I would like the page to reload and be > scrolled to the exact same position as before the

RE: [PHP] link to specific position in page

2005-02-23 Thread Jay Blanchard
[snip] ...client side stuff... [/snip] If you send this one more time you will earn a spot on the dev/null list. Everything you ask is as a result of client side HTML rendering. PHP is server side and cannot control these things. Currently, the anchor tag is your best bet for this, although I am

Re: [PHP] link to specific position in page

2005-02-23 Thread John Nichel
Johannes wrote: 1) Please don't flood the list with the same message. 2) Your question has nothing to do with php. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link to content of Directory

2005-02-02 Thread Steve Buehler
At 10:52 AM 2/2/2005, Marquez Design: Steve Marquez wrote: Greetings all, I am currious if someone could point me to a script to list the content of a directory, then link to each file in that directory. Example: The directory contains 80 .GIF files. I want to create a page that will have links to

Re: [PHP] link in ModalDialog

2004-11-16 Thread vlad georgescu
first of all thanks for response. and second, some clarification. i have a main window (with a txtarea - html-editor), from this page I want to open a little page (upload_img.php) to handle the uploadimg2-onserver and return path2img-onserver (where was uploaded) on close. showModalDialog in js o

Re: [PHP] link to append to form

2004-09-21 Thread John Holmes
Dustin Krysak wrote: Hi there I have a VERY simple blogging system, and I want to add a link that will append a "" into the end of the existing text whenever it is clicked.. that way users do not need to remember the HTML code. How would i go about this? Javascript. -- ---John Holmes... Ama

RE: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Jay Blanchard
[snip] p.s. do you use backticks in all your qeuries? [/snip] It's just a good habit! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread barophobia
On Thu, 8 Jul 2004 13:14:50 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Do it with SQL > > SELECT DISTINCT(SUBSTRING(`productName`, 1, 1)) FROM `productTable` > > will give you only one of each of the starting letters that actually > occur in your database. good job. that works great. it's

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Matt M.
> 1. pull a list of products from the database > 2. truncate each product id down to it's first letter > 3. remove all the duplicates > 4. use this list to build the links. I would let sql do some of the work. select count(*) from products where product_name like 'A%' if count does not return 0

RE: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread Jay Blanchard
[snip] currently each letter is hyper linked but i'd like to only link the letters that have an occurrence in the database. in other words, if there are no products in the database that start with the letter 'Z' then i don't want it to have a hyper link. [/snip] Do it with SQL SELECT DISTINCT(SUB

Re: [PHP] Link only active letters in alphabetical search

2004-07-08 Thread deseavers
I doubt this function is going to make your script more efficient, but you could also make use of the array_intersect () function. -Original Message- From: barophobia <[EMAIL PROTECTED]> Sent: Jul 8, 2004 10:47 AM To: php-general <[EMAIL PROTECTED]> Subject: [PHP] Link only active letter

RE: [PHP] Link List

2004-03-04 Thread Martin Towell
; To: Phpgen (E-mail) > Subject: RE: [PHP] Link List > > > It's not on the Internet. Sorry. > The page is for an intranet service. > > Actually, the contents is pretty simple. It has 6 or 7 lines > with links in > the style of > > www.yahoo.com > > Kaleb >

RE: [PHP] Link List

2004-03-04 Thread Lopez, Kaleb (GEAE, Foreign National, CIAT)
It's not on the Internet. Sorry. The page is for an intranet service. Actually, the contents is pretty simple. It has 6 or 7 lines with links in the style of www.yahoo.com Kaleb -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED] Are you sure that file exists? When I try t

RE: [PHP] Link List

2004-03-04 Thread Sam Masiello
;>\n"; > > > Thanks > > > -Original Message- > From: Matt Matijevich [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 04, 2004 4:00 PM > To: Lopez, Kaleb (GEAE, Foreign National, CIAT); > [EMAIL PROTECTED] > Subject: Re: [PHP] Link List > >

RE: [PHP] Link List

2004-03-04 Thread Lopez, Kaleb (GEAE, Foreign National, CIAT)
($inputfile as $line_num => $linea) { echo "http://"; . htmlspecialchars($linea) . ">\n"; Thanks -Original Message- From: Matt Matijevich [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:00 PM To: Lopez, Kaleb (GEAE, Foreign National, CIAT); [EMAIL P

Re: [PHP] Link List

2004-03-04 Thread Matt Matijevich
I have tried to use readline to make this happen, but I'm getting error messages. Somebody with a suggestion about this? have any code samples or example error messages for us? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] link question

2003-10-22 Thread Pablo Gosse
link And on the receiving page access var via $_GET['var'] Of course, how you actually append the value in question to your link will depend on your own code. I use ADOdb for all my db work, so for me it would be something like this: echo ''; while (!$rs->EOF) { echo ' l

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
Good point...thanks for catching that I usually link into forms from other frames if I dont have a submit button in that form. -- BigDog On Fri, 2003-07-25 at 15:49, Comex wrote: > <[EMAIL PROTECTED]> > Ray Hunter: > > On Fri, 2003-07-25 at 05:30, Matt Palermo wrote: > >> I just remembered (I'm

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Ray Hunter: > On Fri, 2003-07-25 at 05:30, Matt Palermo wrote: >> I just remembered (I'm not sure if it makes a difference) that I am >> using frames on this page. Does this matter at all? Thanks. > > Yes it matters tons with the javascript call. > > Here is some info on it...

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Jim Lucas
EMAIL PROTECTED]> Sent: Friday, July 25, 2003 4:30 AM Subject: RE: [PHP] Link acting as a submit button > I just remembered (I'm not sure if it makes a difference) that I am using > frames on this page. Does this matter at all? Thanks. > > Matt > > > > >

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
Okay, I got it to work. I just put the "id" parameter in the submit button tag and it works fine now. Thanks for all your help guys... >= Original Message From [EMAIL PROTECTED] = >Why do you have a submit button and a link to submit the form. Dont u >want them to use the submit button

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
Why do you have a submit button and a link to submit the form. Dont u want them to use the submit button for the form? -- BigDog On Fri, 2003-07-25 at 09:02, Jay Blanchard wrote: > [snip] > I found out that it works fine without the submit button that I had in > there. > When I take the subm

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Jay Blanchard
[snip] I found out that it works fine without the submit button that I had in there. When I take the submit button out, it works, if I put it back in there I get the error message again. Any ideas? [/snip] Are you naming the submit buttons? Not just value, but id or name? You must keep them se

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I found out that it works fine without the submit button that I had in there. When I take the submit button out, it works, if I put it back in there I get the error message again. Any ideas? Matt >= Original Message From [EMAIL PROTECTED] = >On Fri, 2003-07-25 at 05:30, Matt Palermo

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
On Fri, 2003-07-25 at 05:30, Matt Palermo wrote: > I just remembered (I'm not sure if it makes a difference) that I am using > frames on this page. Does this matter at all? Thanks. Yes it matters tons with the javascript call. Here is some info on it...however, these questions are now javascri

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Ray Hunter
> (this is in a file called index.html) > this > page try this this page -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> skate: > what is the javascript on it? sorry, missed the start of the thread... http://tinyurl.com/i0un -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link acting as a submit button

2003-07-25 Thread skate
what is the javascript on it? sorry, missed the start of the thread... - Original Message - From: "Matt Palermo" <[EMAIL PROTECTED]> To: "Comex" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, July 25, 2003 1:05 PM S

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Matt Palermo: > Actually, I found out what the problem is. I have a normal submit > button in the same page, however when I take out the submit button, > the javascript code works fine. When I put the submit button back > in, I get the error again. Is there a fix for this, or

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
Actually, I found out what the problem is. I have a normal submit button in the same page, however when I take out the submit button, the javascript code works fine. When I put the submit button back in, I get the error again. Is there a fix for this, or do I need to make the submit button in

Re: [PHP] Link acting as a submit button

2003-07-25 Thread Comex
<[EMAIL PROTECTED]> Matt Palermo: > I just remembered (I'm not sure if it makes a difference) that I am > using frames on this page. Does this matter at all? Thanks. > > Matt No, it doesn't... well it shouldn't anyway. Check the source code of the outputted page. Is it exactly what you want it

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
ors... Got any more suggestions? > >Thanks for your help, > >Matt > >-Original Message- >From: Jim Lucas [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 24, 2003 6:40 PM >To: Matt Palermo >Subject: Re: [PHP] Link acting as a submit button > >Your javascrip

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I have tried this method as well, but I still seem to get the same error. I have the form tag put in there and everything, with this bit of script inside the tags, but still no luck. Is there an easier way to accomplish what I want to do? Please let me know if there is. Thanks. Matt >=

Re: [PHP] Link acting as a submit button

2003-07-24 Thread Curt Zirzow
* Thus wrote Matt Palermo ([EMAIL PROTECTED]): > I am trying to create a submit button out of a hyperlink using the > following > code: > > (this is in a file called index.html) > this > page > > > >