sKunKbad
Members-
Posts
1,832 -
Joined
-
Last visited
-
Days Won
3
Everything posted by sKunKbad
-
Thanks thorpe. Everything is now working fine.
-
I have set up php/apache2/mysql on Ubuntu, and the "localhost" directory is in ~File System var/www. I want to create a folder in that location, but the option is ghosted out in the file menu. I am obviously new to Ubuntu. My current goal is to be able to use Filezilla to download and upload files from this www directory. I can't download to this directory right now. Thanks for any help.
-
Once you have inserted the data to database #1, just close the connection, and open up a second connection to database #2.
-
[SOLVED] Get a remote webpage's creation date
sKunKbad replied to shergar1983's topic in PHP Coding Help
The get_headers function is not going to show a header that wasn't generated by the script/server. It can't magically check for a last modified date. -
madmax, How would a visitor access this ini file? If I browse to http://www.mysite.com/rbg.ini I am not able to see the ini anymore. How is it possible for somebody to browse the ini file? I am on shared hosting, and they don't allow anything above root.
-
This is what ended up working: <Files rbg.ini> order deny,allow deny from all allow from mysite.com </Files>
-
I've got a shared hosting account, and my problem is that it allows viewing ini files. I tried using this: <Files rbg.ini> order deny,allow allow from localhost deny from all </Files> in an .htaccess file, but then the php script that needs to parse rbg.ini can't access it. Am I doing this wrong?
-
You might want to take a look at phpmailer or tectite. I have used these successfully for regular sendmail, PEAR, and SMTP.
-
You should use a database with two tables. One table for the actual images, and another table that logs the time that the user has spent on the site. Every time the user loads a page, or refreshes, check against the log to see how long the user has been on the site, and if it is longer than 5 mins, insert picture = x, and update the log with the new image time, repeat. Once the number of pictures has been used, have it start at pic #0 again.
-
The actual HTML isn't going to effect the output. I think what the host was talking about is the script that is sending the email. Sending email from your shared hosting account can be easy, and sometimes not so easy. I recently had an issue where the host reinstalled PEAR and I lost my packages, and my email stopped working. I finally figured out that I wasn't receiving emails, and got back to them, but lost about a week's worth of email due to the situation. You need to look in to the actual php script that is sending the email, and post that actual code here.
-
This is the most basic of all web database application programming. You should read a php/mysql book.
-
There are some updates at the bottom of the article: Update (Jul 9, 04): Note that if you use the dispatcher.php mod_rewrite rules above, you should also add dispatcher.php to your DirectoryIndex setting. Update (Jul 13, 04): Also see this. You'll probably want to change one of the above lines to "RewriteRule . %{REQUEST_FILENAME}.php%{PATH_INFO} [L]". Maybe one of these will fix your issue.
-
You are correct about wasting processing time if you only need one method inside your class.
-
I've seen it done using flash.
-
I figured it out. This script was above some other javascript in the head section. I put it below, and everything is fine.
-
I'd like to be able to use this javascript, because then the user doesn't have to see the lag of the mail processing script, but when I use it, the email gets sent twice for some reason. If I post to the mail processing script directly, then it works right. Actually, it's only Opera and IE6/IE7 that had the problem with the double posts. Firefox and Safari are OK. Any ideas? <script type='text/javascript'> <!-- var url = 'http://www.mysite.com/mailproc.php'; var params = 'realname=<?php echo $realname; ?>&email=<?php echo $email; ?>&mesg=<?php echo $mesg; ?>&recipients=rbg'; function createRequestObject() { var req; if(window.XMLHttpRequest){ req = new XMLHttpRequest(); } else if(window.ActiveXObject) { req = new ActiveXObject('Microsoft.XMLHTTP'); } else { alert('There was an error while submitting your message. Please try a different contact method.'); } return req; } var http = createRequestObject(); http.open('POST', url, true); http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); http.setRequestHeader('Content-length', params.length); http.setRequestHeader('Connection', 'close'); http.send(params); //--> </script>
-
use pre tags
-
Formating pages for different browsers script problem?
sKunKbad replied to martin mosley's topic in PHP Coding Help
Validating your HTML is a good start. Your validation currently is -> Result: 179 errors / 0 warnings. Here are the details: line 32 column 7 - Error: document type does not allow element "UL" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 34 column 70 - Error: document type does not allow element "BR" here; assuming missing "LI" start-tag line 66 column 63 - Error: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 114 column 17 - Error: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 116 column 54 - Error: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 125 column 17 - Error: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 140 column 25 - Error: document type does not allow element "DIV" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag line 145 column 6 - Error: an attribute specification must start with a name or name token line 145 column 6 - Error: element "ALIGN" undefined line 161 column 4 - Error: document type does not allow element "UL" here line 161 column 11 - Error: an attribute specification must start with a name or name token line 161 column 11 - Error: document type does not allow element "STYLE" here line 166 column 83 - Error: end tag for "STYLE" omitted, but its declaration does not permit this line 161 column 5 - Info: start tag was here line 166 column 83 - Error: "UL" not finished but containing element ended line 166 column 83 - Error: end tag for "UL" omitted, but its declaration does not permit this line 161 column 1 - Info: start tag was here line 166 column 83 - Error: "TABLE" not finished but containing element ended line 166 column 83 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 160 column 6 - Info: start tag was here line 166 column 83 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 140 column 6 - Info: start tag was here line 190 column 68 - Error: document type does not allow element "A" here line 193 column 10 - Error: end tag for element "SPAN" which is not open line 194 column 8 - Error: end tag for "TABLE" which is not finished line 207 column 57 - Error: document type does not allow element "A" here line 211 column 8 - Error: end tag for element "SPAN" which is not open line 212 column 8 - Error: end tag for "TABLE" which is not finished line 237 column 348 - Error: end tag for "B" omitted, but its declaration does not permit this line 237 column 22 - Info: start tag was here line 237 column 352 - Error: end tag for element "B" which is not open line 244 column 64 - Error: document type does not allow element "UL" here; missing one of "TH", "TD" start-tag line 246 column 49 - Error: "TABLE" is not a member of a group specified for any attribute line 246 column 55 - Error: "WIDTH" is not a member of a group specified for any attribute line 246 column 55 - Error: "90" is not a member of a group specified for any attribute line 247 column 76 - Error: document type does not allow element "TABLE" here line 248 column 49 - Error: document type does not allow element "SPAN" here; assuming missing "CAPTION" start-tag line 251 column 27 - Error: document type does not allow element "TR" here line 253 column 34 - Error: document type does not allow element "TR" here line 256 column 34 - Error: document type does not allow element "TR" here line 256 column 193 - Error: delimiter """ invalid: only S separators and TAGC allowed here line 258 column 34 - Error: document type does not allow element "TR" here line 260 column 34 - Error: document type does not allow element "TR" here line 262 column 34 - Error: document type does not allow element "TR" here line 264 column 34 - Error: document type does not allow element "TR" here line 266 column 34 - Error: document type does not allow element "TR" here line 268 column 34 - Error: document type does not allow element "TR" here line 270 column 34 - Error: document type does not allow element "TR" here line 276 column 33 - Error: document type does not allow element "TR" here line 278 column 33 - Error: document type does not allow element "TR" here line 280 column 33 - Error: document type does not allow element "TR" here line 282 column 33 - Error: document type does not allow element "TR" here line 284 column 33 - Error: document type does not allow element "TR" here line 286 column 33 - Error: document type does not allow element "TR" here line 288 column 33 - Error: document type does not allow element "TR" here line 290 column 33 - Error: document type does not allow element "TR" here line 292 column 33 - Error: document type does not allow element "TR" here line 294 column 33 - Error: document type does not allow element "TR" here line 296 column 33 - Error: document type does not allow element "TR" here line 298 column 33 - Error: document type does not allow element "TR" here line 300 column 33 - Error: document type does not allow element "TR" here line 302 column 26 - Error: end tag for "SPAN" omitted, but its declaration does not permit this line 248 column 30 - Info: start tag was here line 302 column 26 - Error: end tag for "CAPTION" omitted, but its declaration does not permit this line 248 column 30 - Info: start tag was here line 302 column 26 - Error: end tag for "TABLE" which is not finished line 304 column 34 - Error: document type does not allow element "DIV" here line 315 column 37 - Error: ID "INFO" already defined line 245 column 30 - Info: ID "INFO" first defined here line 316 column 56 - Error: "TABLE" is not a member of a group specified for any attribute line 316 column 62 - Error: "WIDTH" is not a member of a group specified for any attribute line 316 column 62 - Error: "90" is not a member of a group specified for any attribute line 317 column 86 - Error: document type does not allow element "TABLE" here line 318 column 59 - Error: document type does not allow element "SPAN" here; assuming missing "CAPTION" start-tag line 319 column 42 - Error: document type does not allow element "TR" here line 320 column 49 - Error: document type does not allow element "TR" here line 322 column 49 - Error: document type does not allow element "TR" here line 324 column 45 - Error: end tag for "SPAN" omitted, but its declaration does not permit this line 318 column 40 - Info: start tag was here line 324 column 45 - Error: end tag for "CAPTION" omitted, but its declaration does not permit this line 318 column 40 - Info: start tag was here line 324 column 45 - Error: end tag for "TABLE" which is not finished line 325 column 51 - Error: document type does not allow element "DIV" here line 328 column 51 - Error: ID "INFO" already defined line 245 column 30 - Info: ID "INFO" first defined here line 329 column 70 - Error: "TABLE" is not a member of a group specified for any attribute line 329 column 76 - Error: "WIDTH" is not a member of a group specified for any attribute line 329 column 76 - Error: "90" is not a member of a group specified for any attribute line 330 column 100 - Error: document type does not allow element "TABLE" here line 331 column 72 - Error: document type does not allow element "SPAN" here; assuming missing "CAPTION" start-tag line 332 column 51 - Error: document type does not allow element "TR" here line 333 column 58 - Error: document type does not allow element "TR" here line 334 column 58 - Error: document type does not allow element "TR" here line 335 column 58 - Error: document type does not allow element "TR" here line 336 column 53 - Error: end tag for "SPAN" omitted, but its declaration does not permit this line 331 column 53 - Info: start tag was here line 336 column 53 - Error: end tag for "CAPTION" omitted, but its declaration does not permit this line 331 column 53 - Info: start tag was here line 336 column 53 - Error: end tag for "TABLE" which is not finished line 337 column 60 - Error: document type does not allow element "DIV" here line 338 column 9 - Error: an attribute specification must start with a name or name token line 338 column 9 - Error: element "ALIGN" undefined line 342 column 33 - Error: ID "INFO" already defined line 245 column 30 - Info: ID "INFO" first defined here line 343 column 55 - Error: "TABLE" is not a member of a group specified for any attribute line 343 column 61 - Error: "WIDTH" is not a member of a group specified for any attribute line 343 column 61 - Error: "90" is not a member of a group specified for any attribute line 344 column 83 - Error: document type does not allow element "TABLE" here line 345 column 58 - Error: document type does not allow element "SPAN" here; assuming missing "CAPTION" start-tag line 346 column 43 - Error: document type does not allow element "TR" here line 347 column 50 - Error: document type does not allow element "TR" here line 348 column 50 - Error: document type does not allow element "TR" here line 349 column 50 - Error: document type does not allow element "TR" here line 350 column 50 - Error: document type does not allow element "TR" here line 351 column 50 - Error: document type does not allow element "TR" here line 352 column 44 - Error: end tag for "SPAN" omitted, but its declaration does not permit this line 345 column 39 - Info: start tag was here line 352 column 44 - Error: end tag for "CAPTION" omitted, but its declaration does not permit this line 345 column 39 - Info: start tag was here line 352 column 44 - Error: end tag for "TABLE" which is not finished line 353 column 51 - Error: document type does not allow element "DIV" here line 355 column 148 - Error: end tag for "I" omitted, but its declaration does not permit this line 355 column 6 - Info: start tag was here line 355 column 152 - Error: end tag for element "I" which is not open line 367 column 356 - Error: end tag for "I" omitted, but its declaration does not permit this line 367 column 22 - Info: start tag was here line 367 column 360 - Error: end tag for element "I" which is not open line 371 column 500 - Error: end tag for "I" omitted, but its declaration does not permit this line 371 column 397 - Info: start tag was here line 371 column 504 - Error: end tag for element "I" which is not open line 380 column 266 - Error: end tag for "I" omitted, but its declaration does not permit this line 380 column 22 - Info: start tag was here line 380 column 270 - Error: end tag for element "I" which is not open line 404 column 20 - Error: value of attribute "ALIGN" cannot be "CENTRE"; must be one of "LEFT", "CENTER", "RIGHT" line 408 column 46 - Error: document type does not allow element "UL" here; missing one of "TH", "TD" start-tag line 409 column 8 - Error: ID "INFO" already defined line 245 column 30 - Info: ID "INFO" first defined here line 410 column 13 - Error: value of attribute "ALIGN" cannot be "CENTRE"; must be one of "LEFT", "CENTER", "RIGHT" line 410 column 26 - Error: "TABLE" is not a member of a group specified for any attribute line 410 column 32 - Error: "WIDTH" is not a member of a group specified for any attribute line 410 column 32 - Error: "50" is not a member of a group specified for any attribute line 411 column 49 - Error: document type does not allow element "TABLE" here line 414 column 15 - Error: an attribute value must be a literal unless it contains only name characters line 414 column 16 - Error: document type does not allow element "TABLE" here line 415 column 73 - Error: an attribute specification must start with a name or name token line 415 column 73 - Error: element "CELLPADDING" undefined line 418 column 19 - Error: document type does not allow element "DIV" here line 428 column 20 - Error: value of attribute "ALIGN" cannot be "CENTRE"; must be one of "LEFT", "CENTER", "RIGHT" line 431 column 46 - Error: document type does not allow element "UL" here; missing one of "TH", "TD" start-tag line 432 column 8 - Error: ID "INFO" already defined line 245 column 30 - Info: ID "INFO" first defined here line 433 column 13 - Error: value of attribute "ALIGN" cannot be "CENTRE"; must be one of "LEFT", "CENTER", "RIGHT" line 433 column 26 - Error: "TABLE" is not a member of a group specified for any attribute line 433 column 32 - Error: "WIDTH" is not a member of a group specified for any attribute line 433 column 32 - Error: "50" is not a member of a group specified for any attribute line 434 column 49 - Error: document type does not allow element "TABLE" here line 437 column 15 - Error: an attribute value must be a literal unless it contains only name characters line 437 column 16 - Error: document type does not allow element "TABLE" here line 441 column 71 - Error: an attribute specification must start with a name or name token line 441 column 71 - Error: element "CELLPADDING" undefined line 444 column 19 - Error: document type does not allow element "DIV" here line 490 column 6 - Error: end tag for element "SPAN" which is not open line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 444 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 434 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 433 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 431 - Info: start tag was here line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 428 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 418 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 411 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 410 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 408 - Info: start tag was here line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 404 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 353 column 32 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 343 column 31 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 341 column 22 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 337 column 41 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 329 column 46 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 327 column 38 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 325 column 32 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 316 column 32 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 314 column 25 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 304 column 15 - Info: start tag was here line 491 column 4 - Error: "TABLE" not finished but containing element ended line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 246 column 25 - Info: start tag was here line 491 column 4 - Error: end tag for "UL" omitted, but its declaration does not permit this line 244 column 18 - Info: start tag was here line 491 column 4 - Error: end tag for "TABLE" omitted, but its declaration does not permit this line 240 column 11 - Info: start tag was here line 491 column 4 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 173 column 9 - Info: start tag was here line 494 column 4 - Error: end tag for element "TD" which is not open line 495 column 14 - Error: document type does not allow element "TD" here line 497 column 4 - Error: end tag for element "TR" which is not open line 498 column 3 - Error: document type does not allow element "TR" here line 502 column 7 - Error: end tag for element "TABLE" which is not open line 504 column 22 - Error: end tag for "DIV" omitted, but its declaration does not permit this line 19 - Info: start tag was here line 506 column 2 - Error: document type does not allow element "P" here -
If you want a footer, you will need to insert it after the SideBar div. You might try inserting a div between the two, with clear:both; width:100%. As for the SideBar div extending to 100% height. You should just make a background image, and repeat it in the Y direction. If you are pulling in all the content dynamically, you are probably looking at a much cleaner source code than I am, but your basic page structure would be as follows: <div class="Container"> <div class="UniversalHeader"> </div> <div class="NavBar"> </div> <div class="UnderNav"> </div> <div class="Content"> </div> <div class="SideBar"> </div> <div style="float:left; width:100%; clear:both"></div> <div id="footer"> </div> </div>
-
If you go to : http://www.criticaldevelopment.net/xml/doc.php and download the php4 parser class, and name it parser.php then you can save your xml file with the name tape.xml. I had to clean up your XML to get it to work: tape.xml <?xml version="1.0" encoding="iso-8859-1" ?> <mixtape Title="Crack RNB Vol 3" Artist="Various Artists" Artwork="http://www.domain.com/images/" Tracks="21" Rating="4" Listens="6,422"> <track id="238969" position="1" title="T.i.+ft.+tiny+-+lately" file="01-TI-ft-Tiny---Lately.mp3" length="235.55" /> <track id="238970" position="2" title="Ntl+-+jump+jump" file="02-NTL---Jump-Jump.mp3" length="240.2" /> <track id="238971" position="3" title="Jordin+sparks+ft.+chris+brown+-+no+air" file="03-Jordin-Sparks-ft-Chris-Brown---No-Air.mp3" length="248.53" /> <track id="238972" position="4" title="Kyonte+-+99" file="04-Kyonte---99.mp3" length="215.64" /> <track id="238973" position="5" title="Ne-yo+-+dream" file="05-Ne-Yo---Dream.mp3" length="189.26" /> <track id="238974" position="6" title="One+chance+-+one+girl" file="06-One-Chance---One-Girl.mp3" length="231.97" /> <track id="238975" position="7" title="Chris+brown+-+dying" file="07-Chris-Brown---Dying.mp3" length="110.42" /> <track id="238976" position="8" title="Issa+ft.+trina+-+boss+lady" file="08-Issa-ft-Trina---Boss-Lady.mp3" length="244.85" /> <track id="238977" position="9" title="Lyfe+jennings+-+never+never+land" file="09-Lyfe-Jennings---Never-Never-Land.mp3" length="232.91" /> <track id="238978" position="10" title="Akon+ft.+40+glocc+-+borrow+u" file="10-Akon-ft-40-Glocc---Borrow-U.mp3" length="243.62" /> <track id="238979" position="11" title="Lil+mama+ft.+t-pain+%26+chris+brown+-+shawty+get+loose+%28official+remix%29" file="11-Lil-Mama-ft-T-Pain-amp-Chris-Brown---Shawty-Get.mp3" length="201.95" /> <track id="238980" position="12" title="Slim+%28of+112%29+ft.+pitbull+-+i+ain%27t+scared" file="12-Slim-of-112-ft-Pitbull---I-Aint-Scared.mp3" length="288.44" /> <track id="238981" position="13" title="Lil+eddie+ft.+defy+-+easier+to+stay" file="13-Lil-Eddie-ft-Defy---Easier-To-Stay.mp3" length="201.72" /> <track id="238982" position="14" title="Uness+-+taste+your+heartbeat" file="14-Uness---Taste-Your-Heartbeat.mp3" length="180.74" /> <track id="238983" position="15" title="Razah+-+club+hobbing" file="15-Razah---Club-Hobbing.mp3" length="219.56" /> <track id="238984" position="16" title="Cheri+dennis+-+flow+wit+me" file="16-Cheri-Dennis---Flow-Wit-Me.mp3" length="170.29" /> <track id="238985" position="17" title="Lisha+ft.+scola+%28of+dru+hill%29+-+i+got+you" file="17-Lisha-ft-Scola-of-Dru-Hill---I-Got-You.mp3" length="197.15" /> <track id="238986" position="18" title="Tiffany+evans+ft.+bow+wow+-+i%27m+grown" file="18-Tiffany-Evans-ft-Bow-Wow---Im-Grown.mp3" length="197.77" /> <track id="238987" position="19" title="Ray+l+-+all+i+want+is+her" file="19-Ray-L---All-I-Want-Is-Her.mp3" length="189.68" /> <track id="238988" position="20" title="Joelle+-+drop+her+off" file="20-Joelle---Drop-Her-Off.mp3" length="176.51" /> <track id="238989" position="21" title="Deepside+ft.+dre+-+feelin+like+a+pimp" file="21-Deepside-ft-Dre---Feelin-Like-A-Pimp.mp3" length="209.95" /> </mixtape> and then this was the php that parsed the titles like you wanted: <?php require "parser.php"; $xml = file_get_contents('tape.xml'); $parser = new XMLParser($xml); $parser->Parse(); foreach($parser->document->tagChildren as $track){ $convert = get_object_vars($track); echo $convert['tagAttrs']['title']; echo "<br>"; } ?> Its really pretty easy when you use a parser class. php5 has its own called simpleXML, but I did this up in case you have php4. It still works in php5.
-
it really depends on what version of php you are running.
-
The table width is too wide for IE6. I downloaded it and tested it, and that is for sure the problem. You can set the table with to a max 558px, and it will work.
-
If you want to return something from the $funcName, then you have to return the result from inside the function, and then apply it to a variable for further use. Maybe I don't fully understand, but looking at your line of code, that was what came to mind. When I get stuck, I go back to basics. Check this out: <?php function getPath(){ $path = getcwd(); return $path; } echo "Your Absoluthe Path is: "; $whatever = getPath(); echo $whatever; ?>
-
Why use a cookie, why not use the posted name directly? Or if you need the cookie set, do both.
-
if you want to pass a value into a class, then the variable needs to be declared as public, and then on the outside you would use $obj->variableName = 'whatever'; is that what you are asking?