[PHP] Concerning SSL
Hello everyone, I hope you all had a great new year. I'm having an issue with a website where changing the URL from http:// to https:// makes the images disappear. The images are all relative and not absolute. How can I fix this? Thanks, -Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Concerning SSL
How do you correct the image URLs? That's what I'm asking. I have a website that is secure. When you change the URL from http://www.mywebsite.com to https://www.mywebsite.com the images disappear. The images are codes as relative links: http://www.mywebsite.com/images/myimage.jpg is coded as img src=images/myimage.jpg / if a root file is coded as img src=../images/myimage.jpg / if in a directory -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 11:27 AM To: R. Van Tassel Cc: php-general@lists.php.net Subject: Re: [PHP] Concerning SSL R. Van Tassel wrote: Hello everyone, I hope you all had a great new year. I'm having an issue with a website where changing the URL from http:// to https:// makes the images disappear. The images are all relative and not absolute. How can I fix this? correct the image URLs? clear your cache? we gave up mind-reading on the list last year, please provide us with some actual info otherwise we can't help you. Thanks, -Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Concerning SSL
Thanks. http://www.loudmerch.com/clientservices/ user: php pass: list -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 11:52 AM To: R. Van Tassel Cc: php-general@lists.php.net Subject: Re: [PHP] Concerning SSL R. Van Tassel wrote: How do you correct the image URLs? That's what I'm asking. how I am supposed to know how to correct your URLs without being able to see your code or the source of your pages??? PS - you domain name is not mywebsite.com AFAICT I have a website that is secure. When you change the URL from http://www.mywebsite.com to https://www.mywebsite.com the images disappear. The images are codes as relative links: http://www.mywebsite.com/images/myimage.jpg is coded as img src=images/myimage.jpg / if a root file is coded as img src=../images/myimage.jpg / if in a directory -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 11:27 AM To: R. Van Tassel Cc: php-general@lists.php.net Subject: Re: [PHP] Concerning SSL R. Van Tassel wrote: Hello everyone, I hope you all had a great new year. I'm having an issue with a website where changing the URL from http:// to https:// makes the images disappear. The images are all relative and not absolute. How can I fix this? correct the image URLs? clear your cache? we gave up mind-reading on the list last year, please provide us with some actual info otherwise we can't help you. Thanks, -Roy -- 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
[PHP] PHP Forms
I am having an issue with a form, basically an order form, with 10 rows. Each row is the same, the rows are being generated by a loop and I am appending the counter of the loop to the name of the form elements (i.e. quantity1, type1, next row = quantity2, type2, etc) I can't seem to receive the variables without using sessions, which I'm trying not to do. If only the first 2 rows are being filled out and submitted I need to be able to loop through, grab all the variables and print them out. Can anyone give any suggestion?
RE: [PHP] Routing downloads through PHP - Thanks!
To develop locally try using the xampp package at www.apachefriends.org, really easy to set up. Thanks, -Roy http://www.myspace.com/GhostOrgy http://www.myspace.com/SuitOfLights Please add these artists as your friend on MySpace -Original Message- From: J_K9 [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 6:39 PM To: php-general@lists.php.net Subject: Re: [PHP] Routing downloads through PHP - Thanks! Thanks everyone, especially Barry for that great script which I've tested on a home server and _does_ work... So, I'm going to wait for my external hosting company to get back to me and alter the files there so that it'll work on my website. Thanks again! ;-) J_K9 -- 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
[PHP] Smarty Templates?
I'm contemplating using Smarty Templates for a website and was wondering what opinions on them, pro or con, may be. Thanks in advance for all your help. -Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Levels of Site Protection
I'm working on a website for a musical outfit where different levels of access are required depending on the specific section. Writers will have access to a section of the site where they can listen to an entire album (for review). Radio personnel will have access to a section of the site where they can download radio-quality mp3 versions of singles. Can anyone suggest how to approach this? Is the easiest way to set up a table of username and passwords associated with an id which would let me know what level of access they have and direct them accordingly? Thanks in advance... -R. Van Tassel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] passing variables between pages without sessions
Pass the variables through the URL string a href=mypage.php?myvariable=myvalueClick Here/a On the next page echo $myvariable and get myvalue. -Original Message- From: Ross Hulford [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 3:06 PM To: php-general@lists.php.net Subject: [PHP] passing variables between pages without sessions I am creating a form but instead of having a long form I want to break it down into a few stages but need to pass the variables bewteen the pages. I have done this before using sessions but would like to know if there is an alternative way to do this? R. -- 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
[PHP] PHP Array question
I have an array with image names like: $arrayone = array(1.jpg, 2.jpg); $arraytwo = array(a.jpg, b.jpg); Then I have a variable for each to count the number of elements: $arrayoneElements = count($arrayone); $arraytwoElements = count($arraytwo); I'm using the element variables to control the loop to display all the array elements. This is it: for($ctr=1; $ctr $elemcount; $ctr++){ if($ctr%5){ echo td width=\20%\a href=\javascript:popup_pic('.$gallerypath./$arr[$ctr]')\img src=\.$gallerypath.thumbs/$arr[$ctr]\ alt=\no image\ //a/td; }else{ echo td width=\20%\a href=\javascript:popup_pic('.$gallerypath./$arr[$ctr]')\img src=\.$gallerypath.thumbs/$arr[$ctr]\ alt=\no image\ //a/td/tr\ntr; } } What I want to do is to only show 20 pictures at a time with a Next link and a Previous link. For the first 20 only the Next link would show and whenever the last set would show only the Previous link would. Every other time both would show. Can someone point me in the right direction on how to count through the elements until the end and back to display them? I just can't figure it out. Thanks, -Roy
[PHP] Classes and Functions
Can someone give me a distinction between the two and when to use / not use them? I want to thank everyone who replied about myFor loop question. All the answers were VERY helpful! Thanks very much. ~ R. Van Tassel
[PHP] For Loop
I have a question about the following code: ** $months_arr = array(JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC); $months_arr_length = count($months_arr); for($i = 0; $i = $months_arr_length; $i++){ echo $months_arr[1]. br /; } *** When I run the code above it continues and never stops. According to the PHP documentation the second condition works as follows: In the beginning of each iteration, expr2 is evaluated. If it evaluates to TRUE, the loop continues and the nested statement(s) are executed. If it evaluates to FALSE, the execution of the loop ends. In the first iteration of the loop $i would equal 0 and the array length is 12. 12 is consistent. To it seems that the loop should STOP when the counter reaches 12, equal to the length of the array. Why is it continuing in a neverending loop? What am I missing? Changing the condition of the for loop to $i = $months_arr_length; fixes everything and it works properly. Can someone please explain where my confusion is? Thanks, ~R. Van Tassel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $this -
Can someone please point me to the php documentation where it explains $this - What is the symbol - and is $this something only used in classes? I can't find any information that explains this specifically but see it used everywhere. Thanks, ~ R. Van Tassel
[PHP] Sessions and Shopping Cart
I am programming a site using sessions and a shopping cart and was wondering if someone could point me to some good tutorials online about using sessions and a shopping cart. I have books and can read through both (and am) but want some good *practical* and *functional* examples. Thanks in advance. ~ R. Van Tassel
RE: [PHP] PHPmysqladmin
http://www.phpmyadmin.net/home_page/downloads.php -R. Van Tassel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, November 27, 2004 1:27 PM To: PHP general Subject: [PHP] PHPmysqladmin Where can you get PHPmysqladmin? I would like to load it on my test server to make updating and entering Mysql data easier. Thanks for your help! Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions and AOL?
Hi everyone. I have a problem with a website that I don't understand. It seems that people using AOL can't see certain sections of this website. It is a directory section where a drop-down menu exists, you select the section you want to see and the page reloads with the information. The only problem is that AOL users don't see any content. The page comes up blank where the information should appear! I use sessions to see if a user is new to the site or if they've already been at the site by visiting a previous page. A session starts at the top of every page and the session id is stored in a mysql database. Every time someone visits a page a search is done to see if the session id exists. If it does it stores the page they are currently on as a last page. If it doesn't exist a new record is created storing the session id and some other stuff. Has anyone had problems with AOL and sessions before? Anyone have any suggestions on what I can do? It's a death wish for AOL users not to see this site as it's a community website with a lot of people using AOL. Thanks, Roy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php