User Profile

Collapse

Profile Sidebar

Collapse
nothing1
nothing1
Last Activity: Dec 17 '09, 04:27 AM
Joined: Nov 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nothing1
    replied to Sorting Multi Dimensional Array.
    in PHP
    Wow! that worked beautifully thanx for the reference.
    See more | Go to post

    Leave a comment:


  • nothing1
    started a topic Sorting Multi Dimensional Array.
    in PHP

    Sorting Multi Dimensional Array.

    I've been getting better at arrays but I got stumped. Ok pretty much I have an array as such.

    [PHP]$row[0]
    [0] =>why
    [1] =>boo
    [2] =>120

    $row[1]
    [0] =>etc
    [1] =>hello
    [2] =>12

    $row[2]
    [0] =>straw
    [1] =>grape
    [2] =>20...
    See more | Go to post

  • nothing1
    replied to PHP file making from directory... Problem.
    in PHP
    I did check permissions and no errors... its actually happening with x, q, and u. very awkward . Might have to redo whole script. :(
    See more | Go to post

    Leave a comment:


  • nothing1
    started a topic PHP file making from directory... Problem.
    in PHP

    PHP file making from directory... Problem.

    Here is my code and what it does is create a page for every directory with the contents of choice.

    Its been working on all letters except "u" I can't seem to figure it out.

    Does someone see the flaw that I'm not seeing?

    [PHP]<?php
    $dir_build = "../data/pages/";
    $inside = array("0-9","A","B","C", "D","E","F","G" ,"H","I","J","K ","L","M",...
    See more | Go to post

  • [CGI] Securely Open Remote SSL Connection to Customer

    My situation is this. There is a remote server that requires authentication to access a file name that i sell and give them expiring link.

    Auth link
    Code:
    http://user:pass@s234.whatevasite.com:80/filename.exe
    But doing some hacking prevention found that with a tool such as Tamper Data from Firefox I can look at the headers as the pass by and therefor be able to look at the Auth link which no one is suppose to be able...
    See more | Go to post

  • [PHP]<?php date (H:i:s d:m:Y) ?>[/PHP]
    See more | Go to post

    Leave a comment:


  • Download from remote server to mine. Worked but now doesn't.

    My script is below. And it worked perfectly until this morning when i got up and went of to try it it didnt work anymore. The code stayed the same so im sure its not that. I think it has something to do with limits on cache or a temporary folder or some other type of limit that my host might have put on without me knowing.

    The file goes through the download with out error but when it finally outputs the link and you click on it you...
    See more | Go to post

  • nothing1
    replied to Adding Attribute to HTML Tag <a href=
    thanx! worked perfectly.
    See more | Go to post

    Leave a comment:


  • nothing1
    replied to Adding Attribute to HTML Tag <a href=
    Looking over the Javascript code for getElementByCla ss it seems like i might not even need the replace function if the getElementByCla ss code work by replacing the "style.display= "none"" to something else right? how do i set a rel?

    Please note that im a total Noob at Javascript im more of a php guy.
    See more | Go to post

    Leave a comment:


  • nothing1
    started a topic Adding Attribute to HTML Tag <a href=

    Adding Attribute to HTML Tag <a href=

    Ok here is my question i hope its something easy. I have CMS that generates images from whatever url I put with its corresponding syntax. Well I want to add a Lightbox to does images but instead of going into the CMS to find how where it outputs the actual code that appears i was thinking of using JS to add an attribute of rel="lightbox" to links within a certain div that have a class of media.

    Example:
    Here is a...
    See more | Go to post

  • There is no real way to do this. You would be able to control the page in the iframe only if it was in your same server and it would be done with javascript. Another only way to do this is if the page contained anchors the you can set the iframe along with the anchor. (ex. http://somesite.com/index.html#bott om)...
    See more | Go to post

    Leave a comment:


  • nothing1
    replied to Hi how to redirect http to https using php
    in PHP
    have you tried header() and remember that is has to be the first thing before anything is outputted?
    See more | Go to post

    Leave a comment:


  • nothing1
    replied to Logout Session - not working
    in PHP
    this is a quote from http://us3.php.net/session_unset
    You should go there and read more. Also it depends on what php version your using....
    See more | Go to post
    Last edited by pbmods; Dec 24 '07, 04:58 PM. Reason: Fixed link.

    Leave a comment:


  • nothing1
    started a topic How do you create a file and insert text?
    in Perl

    How do you create a file and insert text?

    I dont really know much about Perl but what i would like to do is name a file after a folder in my server and in that file contain whats in the text file. It works fine so far but what I would really like is to take that same name of the directory and put it in the "Artist Name Here" area within the text file.

    Is that possible or is there a better way of doing this?

    Perl Script
    Code:
    #!/usr/local/bin/perl
    ...
    See more | Go to post

  • nothing1
    replied to Registered users only can download
    in PHP
    In what way are the users logged in? sessions or cookies? either way this might help:


    [PHP]//the blank space is where it changes depending on sessions or cookies.
    if( _______ != ''){
    $logged_in = 'true';
    }else{
    $logged_in = 'false';
    }


    //in the body where ever the download link is
    <?php
    if($logged_in){ echo '<a href="http://mysite.com/donwload/file.zip">Downl oad</a>';}...
    See more | Go to post

    Leave a comment:


  • nothing1
    replied to PHP Form Question
    in PHP
    what about for every POST variable you put
    [PHP]
    $var = $_POST['answer1'];

    if($var != ''){print "Your response was $var";}[/PHP]

    I suggest you read up on if else statements

    http://www.htmlite.com/php015.php
    See more | Go to post

    Leave a comment:


  • nothing1
    replied to Unable to get my POST form working
    in PHP
    This has nothing to do with php its html errors, you have to be way more careful with your codes. Do what i put below and it should work. Remember that your coding everything has to be perfect. You made alot of minor error that rendered your form useless.

    Change:
    [HTML]<form action="process .php" method="post" name="LinkQuote " id="LinkQuote" form">[/HTML]

    To:...
    See more | Go to post

    Leave a comment:


  • It doesn't really seem like you've read a lot. You would first want that uploaded image to be saved on to a specific directory (ex. /uploadedimages/)

    then grab whatever that file was named and insert that into you DB when you extract it you would extract it into a string. and display it.

    [HTML]<a href="$image">< img src="$image" />[/HTML]

    Within php of course.
    See more | Go to post

    Leave a comment:


  • Well now I know how to use TRIM properly and you explained it pretty well. Everything is running smoothly. Thanx Again.
    See more | Go to post

    Leave a comment:


  • I was going to try trim but looking at the manual it made it seem like it will remove all the '_' in a URL which makes : http://somesite.com/which_one.php useless. I know it states only from beginning and end of string but then this example doesn't really make sense.

    [PHP]
    $hello = "Hello World";

    $trimmed = trim($hello, "Hdle");
    var_dump($trimm ed);

    //output: string(5)...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...