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
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
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
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
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
[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
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.')
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
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
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
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
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
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
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
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
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
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
> -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
> -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">
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
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
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
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
>
> > if ($n=$Pagenum) {print ' ' . $n;}
> >
> >
> >
> > else
> >
> >
> >
> > {print ' '.$n.'';}
> >
> > print ' ';
> >
> >
> >
> >
> >
> >
>
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
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
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
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
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
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
[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
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
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
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
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
[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
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
> 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
[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
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
; 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
>
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
;>\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
>
>
($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
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
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
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
<[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...
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
>
>
>
> >
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
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
[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
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
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
> (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
<[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
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
<[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
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
<[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
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
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
>=
* 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
>
>
>
>